summaryrefslogtreecommitdiff
path: root/gxp-firmware-data.c
AgeCommit message (Collapse)Author
2023-05-11gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gxp: remove legacy TODOs gxp: remove vd config version Bug: 281609488 gxp: remove unreferenced macros and functions Bug: 281609488 (repeat) gxp: remove gxp_fw_data_use_per_vd_config Bug: 281609488 (repeat) gxp: reject loading legacy firmware Bug: 281609488 (repeat) gxp: fix max num of debug dump segments Bug: 281636081 gxp: remove unneeded log on memory alloc failure gxp: unittests: test MCU FW sending FW_CRASH while stopping Bug: 281088523 gxp: make MCU crash handler scheduled work Bug: 281088523 (repeat) gxp: reorder locks in the MCU crash handler Bug: 281088523 (repeat) gxp: refine vd_semaphore usage to prevent deadlock Bug: 281007294 gxp: turn on slow clock on idle Bug: 279201155 gxp: decouple PM from client->semaphore Bug: 280724971 gxp: fix UAF on awaiter releasing Bug: 280737201 gxp: cancel KCI workers before CSR reset Bug: 280548609 gxp: make MCU crash handler scheduled work Bug: 281088523 (repeat) Test: Passed the unittests gxp: reorder locks in the MCU crash handler Bug: 281088523 (repeat) gxp: refine vd_semaphore usage to prevent deadlock Bug: 281007294 (repeat) gxp: turn on slow clock on idle Bug: 279201155 (repeat) gxp: decouple PM from client->semaphore Bug: 280724971 (repeat) (cherry picked from commit 8e46531e8a3898b6689c3a192bb42e10bb4bf633) GitOrigin-RevId: ce20da14dbffd8d462bc8903dae72b615ae203e4 Change-Id: I23f032ddb88acc92669b77a7d7e6f8f52f414dfd
2023-04-10gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gxp: Fix for debug dump in direct mode Bug: 275477663 gxp: release awaiter while cleaning up dest_queue Bug: 275650894 gxp: map first page of system config region as RO Bug: 273923526 gxp: twice the time limit of LPM transition Bug: 270655971 gxp: notify ACPM Tj status for AUR on/off Bug: 270589821 gcip: KCI accept out-of-order responses Bug: 274574929 GCIP_MAIN_REV_ID: 10df044567ceb004b88e7889568367a8614abc71 gcip: Define new gcip_kci_code for setting device properties Bug: 273578844 GCIP_HEADERS_REV_ID: 571259837fd27887e9628169ed6d351f36706fcd gxp: bump version 1.13 gxp: Pass down system properties to firmware Bug: 273578844 (repeat) gxp: Use scmversion instead of GIT_REPO_TAG Bug: 274893782 gxp: hardcode git command path Bug: 274893782 (repeat) gxp: remove unnecessary log of skipping config gxp: fix gem5 compatibility with gcip-iommu gxp: Clarify usage of dma_sync_sg_for_* GitOrigin-RevId: 84b983638068246128beb77ec3200253e0d00ccc Change-Id: I560b82e7f2e26e055e57829f963d581b02503543
2023-03-14gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gcip: temporary disable gcip-iommu GCIP_MAIN_REV_ID: e1d3d01f0c2bb5da0b7cc986321c70287138c8ef gxp: remove non-carveout scratchpad region support Bug: 265562894 gxp: set default work mode to MCU Bug: 272600756 gxp: Add ftrace events Bug: 271933339 gxp: fix compiler warning in gxp-thermal gcip: implement a function returning default IOMMU domain Bug: 243479562 gcip: implement map/unmap in legacy mode Bug: 243479562 (repeat) gcip: implement gcip_iommu_domain_{map,unmap}_sg Bug: 243479562 (repeat) gcip: implement gcip_iommu_domain_pool_{alloc,free}_domain Bug: 243479562 (repeat) gcip: add granule alignment functions Bug: 243479562 (repeat) gcip: introduce gcip_iommu_domain_type Bug: 243479562 (repeat) gcip: implement funcs of gcip_iommu_domain_pool Bug: 243479562 (repeat) GCIP_MAIN_REV_ID: 848032f4c19ee517b799498630dc9b0f5cf30bf0 gxp: move fw_rw_section into if-guard gxp: fix memory leak with invalid telemetry type Bug: 273254318 gxp: remove unneeded checks in vd.c gxp: skip configuring when missing VD config gxp: remove unused host-dev structs Bug: 265748027 gxp: remove unused range-alloc module gxp: entirely remove app_metadata Bug: 265748027 (repeat) gxp: remove legacy firmware data init Bug: 265748027 (repeat) gxp: remove legacy telemetry descriptor Bug: 265748027 (repeat) gxp: move system cfg population to device probe Bug: 265748027 (repeat) gxp: add gxp_fw_data_system_cfg Bug: 265748027 (repeat) gxp: add gxp_fw_data_resource Bug: 265748027 (repeat) gcip: kci: add usage-stats metrics v1 / v2 commands gcip: pm power_up callback add comments for thermal suspend suggestion gcip: introduce a function returning default IOMMU domain Bug: 243479562 (repeat) gcip: introduce gcip_iommu_domain_{map,unmap}_sg Bug: 243479562 (repeat) gcip: introduce gcip_iommu_domain_pool_{alloc,free}_domain Bug: 243479562 (repeat) gcip: introduce gcip_iommu_domain_ops Bug: 243479562 (repeat) gcip: introduce gcip_iommu_domain Bug: 243479562 (repeat) gcip: introduce gcip_iommu_domain_type Bug: 243479562 (repeat) gcip: introduce gcip_iommu_domain_pool and its funcs Bug: 243479562 (repeat) GCIP_HEADERS_REV_ID: b3f05e2139e6215ce8e4ad90d9fa621c8084d53c GitOrigin-RevId: 543bd26edbc76d22cff7e16627955e7a66f78e59 Change-Id: I3dbe4170269ba87c9f411fb1fbf5b6e3c9e55fe5
2023-03-12gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gxp: bump version 1.11 Bugs: gxp: fix panic on buffer flushing Bug: 268389591 gxp: Do not put core in reset if already in ACG Bug: 272664140 gxp: add cached core telemetry desc Bug: 265748027 gxp: Adpot GCIP thermal Bug: 264729080 Bug: 213272324 gxp: Acquire PM lock before power state transition Bug: 264729080 (repeat) gxp: remove core_boot parameter Bug: 251612313 gcip: Add gcip_pm_lock Bug: 264729080 (repeat) GCIP_HEADERS_REV_ID: 126a2bd1e5ac72231c88425fbddb4b9fe2fd85b1 GitOrigin-RevId: 0016adcc63d0c67e605cfee179041d15d26cf861 Change-Id: I156cc4b83564d06049764ee15510571305f84f74
2023-03-09gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gcip: Make gcip_pm_{get_count,is_powered} lockless Bug: 271756295 gcip: generalize mem_pool GCIP_HEADERS_REV_ID: 5ac83c6a2c630e09be378f657bd8be9bc0523b34 gxp: rollback GPL change for gsa_image_auth Bug: 271797962 gcip: Make gcip_pm_{get_count,is_powered} lockless Bug: 271756295 (repeat) gcip: generalize mem_pool gcip: utilize mock files on unittests Bug: 272216562 GCIP_MAIN_REV_ID: a5b6843ab58f30d6ce086016214cbf56a46610a8 gxp: use GPL-2.0-only license Bug: 271797962 (repeat) gxp: not program MCU iremap and doobell in TZ priv Bug: 260533620 gxp: authenticates firmware through GSA Bug: 260533620 (repeat) gxp: Enable debug dump for imageconfig 2. Bug: 271371895 gcip: use GPL-2.0-only license Bug: 271797962 (repeat) gcip: Remove gcip_pm_put_async Bug: 271756295 (repeat) gcip: Only call .power_up if needed GCIP_MAIN_REV_ID: 210c9f18b07dff1f6eee8deadb571619c9d8d864 gcip: use GPL-2.0-only license Bug: 271797962 (repeat) gcip: Remove gcip_pm_put_async Bug: 271756295 (repeat) gcip: Add gcip_pm_trylock Bug: 271756295 (repeat) GCIP_HEADERS_REV_ID: 97eb89f481a48030259ec90691ff4b5126a463c2 gxp: Add size check while loading image to memory Bug: 265105909 gxp: refactor MCU firmware life cycle Bug: 233159020 gxp: Create a function for gxp_core_boot Bug: 271716712 gxp: Increase UCI command timeout to 2 seconds Bug: 271622596 gxp: minor style fixes gxp: fix memory leak of eventfd Bug: 270657146 gxp: remove checks of data_mgr gxp: skip mapping core resources in MCU mode gxp: add gxp_firmware_loader module gcip: Print GCIP_FW_LOG_LEVEL_FATAL as error message Bug: 271596603 gcip: Postfix gcip_firmware_tracing_restore gcip: fix undefined variable on !THERMAL gcip: always return NULL on domain alloc error GCIP_MAIN_REV_ID: 92addd19b0b6f01ca127402d29f862d26895add4 gcip: Add level -3 (FATAL) for firmware log Bug: 271596603 (repeat) gcip: Update outdated comments gcip: Postfix gcip_firmware_tracing_restore GCIP_HEADERS_REV_ID: 3e296e62e800e70f68fa4bd63504394dce0f2e75 GitOrigin-RevId: b83c2bc8112562304e23fd28c0dbd3c97e076476 Change-Id: I9ebcdf6b813d321ab467a7a23a95e897c504dca0
2023-02-09gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gxp: fix missing up_read in ioctl UCI command Bug: 268449263 gxp: introduce debug_dump_lock per vd Bug: 234172464 gxp: gxp_vd_{run,stop} holds vd_sema for writing Bug: 234172464 (repeat) gxp: pass vd to the static functions of debug dump Bug: 234172464 (repeat) gcip: call before_enqueue_wait_list Bug: 267713283 GCIP_MAIN_REV_ID: 442aa3a49affc15c9db72240cd2d0692b242a82a gxp: fix up HAS_TPU_EXT gxp: telemetry refactor for config_version 2 Bug: 266886853 gxp: fix deleting async_resp before putting Bug: 267713283 (repeat) gcip: introduce before_enqueue_wait_list Bug: 267713283 (repeat) GCIP_HEADERS_REV_ID: 16235f58e3f50f260c7b13f939857a414fc7eb21 GitOrigin-RevId: 093323949cc38e8af2e9951cf116df936c9b13c1 Change-Id: Iba85dcaa5af22bd89d2f2cd5646268cfd25e2e66
2023-02-03gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gcip: Add a new KCI code for fw tracing level request Bug: 262916889 GCIP_HEADERS_REV_ID: 1ccef212a8527c82700f3ec96983394be13b823f gxp: bump interface version to 1.8 gxp: allocate domain pool according to mode Bug: 267714051 gxp: callisto reduce number of active VD to 7 Bug: 265730182 gxp: do instruction reampping even if GSA exists gxp: remove fw data init from debugfs firmware run gxp: guard core INT and reset with core_boot Bug: 267713333 Bug: 267713028 gxp: fix up COPY_FIELDS macro in firmware-data gxp: handle sync fence ioctl calls Bug: 258876786 gxp: associate DMA fence with VD Bug: 264855736 gcip: use v*alloc without node GCIP_MAIN_REV_ID: e48d8c14dff78d70064f93e5faee61c17b0479c2 gcip: fix up DMA fence macros GCIP_HEADERS_REV_ID: 7b38b174c3b7a1816d65bb5d11811f95562f9bda GitOrigin-RevId: 5578e2e5368f5874f57ca6c6ee3a44009b8d0d6e Change-Id: Icbf5f7928f4536d750d774caa38760cab2564ede
2023-02-02gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gxp: create debug dir root earlier on probe gxp: fix code style/formatting issues gxp: Implement debug dump handling for mcu mode Bug: 265092842 gcip: fix code style/formatting issues GCIP_HEADERS_REV_ID: 8f57799df52bf60cb1805ab5e9ee48034bb139c8 GitOrigin-RevId: a40874e012eca6f104c74e754d7c10ae0284772b Change-Id: Id15d4c14d7964ed7a52771ba7d6e9dfa992f4cd1
2023-01-17gxp: [Copybara Auto Merge] Merge branch 'zuma' into 'android14-gs-pixel-5.15'Aurora zuma automerger
gxp: move core config region to second half of buf gcip: conditionally zero the non-contiguous region GCIP_MAIN_REV_ID: 0a2e7b7e345705db78c8108890781cbe5c8c4eb7 gxp: boot status and doorbell for suspend/resume Bug: 265742153 gxp: set VD and core config region Bug: 265742153 (repeat) gxp: use core cfg region for firmware handshake Bug: 265742153 (repeat) gxp: boot with virt_core on per-VD config method Bug: 265742153 (repeat) gxp: only map fwdata region in legacy protocol Bug: 265742153 (repeat) gxp: populate system config on fw data create Bug: 265742153 (repeat) gxp: flush SGT after map iova sgt Bug: 265564221 gxp: remove gxp_vd_phys_core_list gxp: signal eventfd when client is invalidated Bug: 264830822 gxp: introduce GXP_(UN)REGISTER_INVALIDATED_EVENTFD ioctl Bug: 264830822 (repeat) gxp: add create/destroy app legacy functions Bug: 265742153 (repeat) gxp: pass vd to fw_data_create_app Bug: 265742153 (repeat) gxp: add structures for new app config Bug: 265742153 (repeat) gxp: add sys_cfg mapping support Bug: 265605775 gxp: all chips/modes have shared region Bug: 265605775 (repeat) gxp: map config regions per image config Bug: 265605775 (repeat) gxp: set shared_buf vaddr Bug: 265605775 (repeat) gxp: map image config NS mappings Bug: 265564221 (repeat) gxp: use per VD scratchpad region Bug: 261797596 gxp: conditionally map FW image region Bug: 265105395 gxp: add lock_class_key to struct client gxp: add image config parser to VD Bug: 265105395 (repeat) gxp: record image config on firmware requested Bug: 265105395 (repeat) gxp: add missing up_read in gxp_debugfs_mailbox gxp: implement vd invalidation Bug: 264831024 gxp: implement MCU fw crash handler Bug: 237739631 gxp: implement gxp_mcu_firmware_restart_locked Bug: 233159020 gxp: pass timeout_ms to gxp_pm_is_blk_down gxp: set is_firmware_requested on SysFS FW load gxp: set SSMT to bypass in MCU mode Bug: 264950137 Revert "gxp: fetch segment boundaries from ELF header" gxp: add gcip_dma_fence_manager to gxp_dev Bug: 258876786 gxp: add gxp-dma-fence support Bug: 258876786 (repeat) gxp: introduce GXP_NAME macro gxp: prevent unloading MCU fw before UCI sync resp returns gcip: expose config size calculation to header Bug: 265605775 (repeat) gcip: sync RKCI codes with fw gcip: update comments of gcip_dma_fence_init Bug: 264220687 gcip: add to_gcip_fence to gcip-dma-fence Bug: 264220687 (repeat) GCIP_HEADERS_REV_ID: 0a85dc4b06195de6efa46e2ca314548f07f30097 gcip: expose config size calculation to header Bug: 265605775 (repeat) gcip: Use strscpy instead of memcpy gcip: enhance image config NS mapping decoding Bug: 265565307 gcip: don't fail dma_fence_init on long name Bug: 264220687 (repeat) GCIP_MAIN_REV_ID: e0d9923db0788f7de94c7b41e580dee62deb192f GitOrigin-RevId: 26871ed8b04b195ef351d46bb52795d62ee0d529 Change-Id: I8c3d55b379df8c7ac8c29aaaf7b756968a10cd3c
2022-10-04[Copybara Auto Merge] Merge branch 'zuma' into 'android13-gs-pixel-5.15'Aurora zuma automerger
gxp: fix typo an core gxp: Call MCU telemetry irq handler when KCI irq is fired BUg: 237099103 gxp: move DVFS macro out from lpm.h gxp: use BIT() for shifting operations gxp: introduce coherent buffer data structure Bug: 248436918 gxp: add europa platform driver Bug: 235918085 gxp: address review comments on gdomain alloc gxp: pass TPU client ID to allocate_vmbox Bug: 246520556 gxp: store client IDs in gxp_virtual_device Bug: 246520556 (repeat) gxp: clang-format gxp.h gxp: introduce {after,before}_{map,unmap}_tpu_mbx_queue callbacks Bug: 246520556 (repeat) gxp: call GCIP consume funcs from gxp-mailbox Bug: 245455607 gxp: remove gcip_{mailbox,kci} from gxp_{dci,uci,kci} Bug: 245455607 (repeat) gxp: manage gcip_{mailbox,kci} from gxp_mailbox Bug: 245455607 (repeat) gxp: expose GXP_KCI_TIMEOUT Bug: 245455607 (repeat) gxp: pass data size and wrap bit to gxp_mailbox_args Bug: 245455607 (repeat) gxp: pass GCIP operators to gxp_mailbox Bug: 245455607 (repeat) gxp: introduce enum gxp_mailbox_type Bug: 245455607 (repeat) gxp: call exposed response consuming funcs of gxp-mailbox-impl.h Bug: 245455607 (repeat) gxp: Add MCU telemetry support Bug: 237099103 (repeat) gxp: Add chip specific mmap handler Bug: 237099103 (repeat) gxp: Prefix the telemetry with core Bug: 237099103 (repeat) gxp: Rename gxp-telemetry to gxp-core-telemetry Bug: 237099103 (repeat) gcip: use rate limiting for reverse KCI failure warning GCIP_MAIN_REV_ID: 9292565f420c1c72373cd25b5254db01e1bdaccf gxp: add wrappers around iommu domain Bug: 248436918 (repeat) gxp: remove A0 coherency workaround Bug: 245238253 gxp: shrink the sem scope on uci cmd handling gxp: introduce gxp-mailbox-impl.[c|h] Bug: 237908534 gxp: Hide Amalthea only things of gxp-mailbox from Callisto Bug: 237908534 (repeat) gxp: introduce GXP_LEGACY_MAILBOX Bug: 245455607 (repeat) gxp: Remove the dependency of gxp_async_response from UCI Bug: 237908534 (repeat) gxp: update `allocate_vmbox` KCI command to support TPU offloading Bug: 246520556 (repeat) gxp: return error when gxp_fw_data_create_app fails Bug: 249402363 gcip: remote unnecessary pointer cast GCIP_MAIN_REV_ID: bdad0ac3a11f1d34b22f9640ca8ea0d19c400df6 gxp: fix memory leak on VD allocate resp queues Bug: 247662695 GitOrigin-RevId: efc002d6271c2ccb965f35ad53857379a9ec629d Change-Id: Ibe5397d5cfda935e983261f1297691dc673b114d
2022-07-29[Copybara Auto Merge] Merge branch 'zuma' into 'android13-gs-pixel-5.15'Aurora zuma automerger
Initial commit for porting Zuma GXP drivers. Bug: 239766974 GitOrigin-RevId: c3436b0c942dd009060c865c9b11d21b24de8d1b Change-Id: Icf7b5fea1929c1786d2ed979460d5290c3a11f13