summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-06Merge android13-gs-pixel-5.10-udc into android13-gs-pixel-5.10-udc-qpr1android-u-qpr3-beta-2_r0.7android-u-qpr3-beta-2_r0.6android-u-qpr3-beta-2_r0.5android-u-qpr3-beta-2_r0.4android-u-qpr3-beta-2_r0.3android-u-qpr3-beta-2_r0.2android-u-qpr3-beta-2.1_r0.7android-u-qpr3-beta-2.1_r0.5android-u-qpr3-beta-2.1_r0.4android-u-qpr3-beta-2.1_r0.3android-u-qpr3-beta-2.1_r0.2android-u-qpr3-beta-2.1_r0.1android-u-qpr3-beta-1_r0.7android-u-qpr3-beta-1_r0.5android-u-qpr3-beta-1_r0.4android-u-qpr3-beta-1_r0.3android-u-qpr3-beta-1_r0.2android-u-qpr3-beta-1_r0.1android-u-qpr2-beta-3_r0.7android-u-qpr2-beta-3_r0.6android-u-qpr2-beta-3_r0.5android-u-qpr2-beta-3_r0.4android-u-qpr2-beta-3_r0.3android-u-qpr2-beta-3_r0.2android-u-qpr2-beta-3.1_r0.7android-u-qpr2-beta-3.1_r0.5android-u-qpr2-beta-3.1_r0.4android-u-qpr2-beta-3.1_r0.3android-u-qpr2-beta-3.1_r0.2android-u-qpr2-beta-3.1_r0.1android-u-qpr2-beta-2_r0.7android-u-qpr2-beta-2_r0.5android-u-qpr2-beta-2_r0.4android-u-qpr2-beta-2_r0.3android-u-qpr2-beta-2_r0.2android-u-qpr2-beta-2_r0.1android-u-qpr2-beta-1_r0.6android-u-qpr2-beta-1_r0.5android-u-qpr2-beta-1_r0.4android-u-qpr2-beta-1_r0.3android-u-qpr2-beta-1_r0.2android-u-qpr2-beta-1_r0.1android-u-qpr1-beta-2_r0.7android-u-qpr1-beta-2_r0.5android-u-qpr1-beta-2_r0.4android-u-qpr1-beta-2_r0.3android-u-qpr1-beta-2_r0.2android-u-qpr1-beta-2_r0.1android-u-qpr1-beta-2.2_r0.6android-u-qpr1-beta-2.2_r0.5android-u-qpr1-beta-2.2_r0.4android-u-qpr1-beta-2.2_r0.3android-u-qpr1-beta-2.2_r0.2android-u-qpr1-beta-2.2_r0.1android-u-qpr1-beta-2.1_r0.7android-u-qpr1-beta-2.1_r0.5android-u-qpr1-beta-2.1_r0.4android-u-qpr1-beta-2.1_r0.3android-u-qpr1-beta-2.1_r0.2android-u-qpr1-beta-2.1_r0.1android-u-qpr1-beta-1_r0.7android-u-qpr1-beta-1_r0.5android-u-qpr1-beta-1_r0.4android-u-qpr1-beta-1_r0.3android-u-qpr1-beta-1_r0.2android-u-qpr1-beta-1_r0.1android-15-dp-2_r0.6android-15-dp-2_r0.5android-15-dp-2_r0.4android-15-dp-2_r0.3android-15-dp-2_r0.2android-15-dp-2_r0.1android-15-dp-1_r0.7android-15-dp-1_r0.5android-15-dp-1_r0.4android-15-dp-1_r0.3android-15-dp-1_r0.2android-15-dp-1_r0.1android-15-beta-3_r0.6android-15-beta-3_r0.5android-15-beta-3_r0.4android-15-beta-3_r0.3android-15-beta-3_r0.2android-15-beta-3_r0.1android-15-beta-2_r0.6android-15-beta-2_r0.5android-15-beta-2_r0.4android-15-beta-2_r0.3android-15-beta-2_r0.2android-15-beta-2_r0.1android-15-beta-1_r0.6android-15-beta-1_r0.5android-15-beta-1_r0.4android-15-beta-1_r0.3android-15-beta-1_r0.2android-15-beta-1_r0.1android-14.0.0_r0.97android-14.0.0_r0.96android-14.0.0_r0.95android-14.0.0_r0.94android-14.0.0_r0.93android-14.0.0_r0.92android-14.0.0_r0.76android-14.0.0_r0.75android-14.0.0_r0.74android-14.0.0_r0.73android-14.0.0_r0.72android-14.0.0_r0.71android-14.0.0_r0.66android-14.0.0_r0.65android-14.0.0_r0.64android-14.0.0_r0.63android-14.0.0_r0.62android-14.0.0_r0.61android-14.0.0_r0.56android-14.0.0_r0.55android-14.0.0_r0.54android-14.0.0_r0.53android-14.0.0_r0.52android-14.0.0_r0.51android-14.0.0_r0.44android-14.0.0_r0.43android-14.0.0_r0.42android-14.0.0_r0.41android-14.0.0_r0.40android-14.0.0_r0.39android-14.0.0_r0.37android-14.0.0_r0.36android-14.0.0_r0.35android-14.0.0_r0.34android-14.0.0_r0.33android-14.0.0_r0.31android-14.0.0_r0.25android-14.0.0_r0.23android-14.0.0_r0.22android-14.0.0_r0.21android-14.0.0_r0.19android-gs-tangorpro-5.10-u-qpr1-beta2android-gs-tangorpro-5.10-android15-dpandroid-gs-tangorpro-5.10-android15-betaandroid-gs-tangorpro-5.10-android14-qpr3-betaandroid-gs-tangorpro-5.10-android14-qpr3android-gs-tangorpro-5.10-android14-qpr2-betaandroid-gs-tangorpro-5.10-android14-qpr2android-gs-tangorpro-5.10-android14-qpr1-betaandroid-gs-tangorpro-5.10-android14-qpr1android-gs-raviole-5.10-u-qpr1-beta2android-gs-raviole-5.10-android15-dpandroid-gs-raviole-5.10-android15-betaandroid-gs-raviole-5.10-android14-qpr3-betaandroid-gs-raviole-5.10-android14-qpr3android-gs-raviole-5.10-android14-qpr2-betaandroid-gs-raviole-5.10-android14-qpr2android-gs-raviole-5.10-android14-qpr1-betaandroid-gs-raviole-5.10-android14-qpr1android-gs-pantah-5.10-u-qpr1-beta2android-gs-pantah-5.10-android15-dpandroid-gs-pantah-5.10-android15-betaandroid-gs-pantah-5.10-android14-qpr3-betaandroid-gs-pantah-5.10-android14-qpr3android-gs-pantah-5.10-android14-qpr2-betaandroid-gs-pantah-5.10-android14-qpr2android-gs-pantah-5.10-android14-qpr1-betaandroid-gs-pantah-5.10-android14-qpr1android-gs-lynx-5.10-u-qpr1-beta2android-gs-lynx-5.10-android15-dpandroid-gs-lynx-5.10-android15-betaandroid-gs-lynx-5.10-android14-qpr3-betaandroid-gs-lynx-5.10-android14-qpr3android-gs-lynx-5.10-android14-qpr2-betaandroid-gs-lynx-5.10-android14-qpr2android-gs-lynx-5.10-android14-qpr1-betaandroid-gs-lynx-5.10-android14-qpr1android-gs-felix-5.10-u-qpr1-beta2android-gs-felix-5.10-android15-dpandroid-gs-felix-5.10-android15-betaandroid-gs-felix-5.10-android14-qpr3-betaandroid-gs-felix-5.10-android14-qpr3android-gs-felix-5.10-android14-qpr2-betaandroid-gs-felix-5.10-android14-qpr2android-gs-felix-5.10-android14-qpr1-betaandroid-gs-felix-5.10-android14-qpr1android-gs-bluejay-5.10-u-qpr1-beta2android-gs-bluejay-5.10-android15-dpandroid-gs-bluejay-5.10-android15-betaandroid-gs-bluejay-5.10-android14-qpr3-betaandroid-gs-bluejay-5.10-android14-qpr3android-gs-bluejay-5.10-android14-qpr2-betaandroid-gs-bluejay-5.10-android14-qpr2android-gs-bluejay-5.10-android14-qpr1-betaandroid-gs-bluejay-5.10-android14-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: I2ece8a1a1b31db9484f0e98e8f026d2e49fcf119 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-07-12gxp: introduce locked mapping search and removeandroid-u-beta-5.3_r0.7android-u-beta-5.3_r0.5android-u-beta-5.3_r0.4android-u-beta-5.3_r0.2android-u-beta-5.3_r0.1android-14.0.0_r0.7android-14.0.0_r0.6android-14.0.0_r0.5android-14.0.0_r0.4android-14.0.0_r0.3android-14.0.0_r0.2android-14.0.0_r0.17android-14.0.0_r0.16android-14.0.0_r0.15android-14.0.0_r0.14android-14.0.0_r0.13android-14.0.0_r0.11android-gs-tangorpro-android14-releaseandroid-gs-tangorpro-5.10-u-beta5.3android-gs-tangorpro-5.10-android14android-gs-raviole-android14-releaseandroid-gs-raviole-5.10-u-beta5.3android-gs-raviole-5.10-android14android-gs-pantah-android14-releaseandroid-gs-pantah-5.10-u-beta5.3android-gs-pantah-5.10-android14android-gs-lynx-android14-releaseandroid-gs-lynx-5.10-android14android-gs-felix-android14-releaseandroid-gs-felix-5.10-u-beta5.3android-gs-felix-5.10-android14android-gs-bluejay-android14-releaseandroid-gs-bluejay-5.10-u-beta5.3android-gs-bluejay-5.10-android14Junghoon Jang
Bug: 289470723 Test: Passed the unittests; Can't reproduce the bug with Syzkaller Signed-off-by: Junghoon Jang <junghoonjang@google.com> Change-Id: I99d04201a27126e6a2a9a4e37b619601b9636a16 (cherry picked from commit b66c271952702040b61ceeb420d626e7c2651421)
2023-03-28gxp: [Copybara Auto Merge] Merge branch 'gs201-u' into ↵android-u-beta-4_r0.7android-u-beta-4_r0.5android-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-u-beta-4_r0.1android-u-beta-3_r0.3android-u-beta-3_r0.2android-u-beta-2.1_r0.4android-u-beta-2.1_r0.3android-u-beta-2.1_r0.2android-gs-tangorpro-5.10-u-beta4android-gs-raviole-5.10-u-beta4android-gs-raviole-5.10-u-beta3android-gs-raviole-5.10-u-beta2android-gs-pantah-5.10-u-beta4android-gs-pantah-5.10-u-beta2android-gs-lynx-5.10-u-beta4android-gs-felix-5.10-u-beta4android-gs-bluejay-5.10-u-beta4android-gs-bluejay-5.10-u-beta3android-gs-bluejay-5.10-u-beta2Aurora pro automerger
'android13-gs-pixel-5.10-udc' gxp: fix compiler warning in gxp-thermal 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) 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 (repeat) gxp: Adpot GCIP thermal Bug: 264729080 Bug: 213272324 gxp: remove core_boot parameter Bug: 251612313 gxp: use GPL-2.0-only license Bug: 271797962 gxp: authenticates firmware through GSA Bug: 260533620 gxp: Enable debug dump for imageconfig 2. Bug: 271371895 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: remove checks of data_mgr gxp: skip mapping core resources in MCU mode gxp: add gxp_firmware_loader module gxp: log a warning on failing to map CMU reg gxp: disable out-dated auth mechanism in MCU mode Bug: 260533620 (repeat) gxp: refactor core firmware loading gxp: stop mapping core->TPU queues gxp: get core_count by counting bits Bug: 270097855 gxp: set SSMT to bypass in both mode Bug: 269855604 gxp: Skip gxp_vd_block_unready if gxp_vd_block_ready was not executed Bug: 268427254 gcip: Make gcip_pm_{get_count,is_powered} lockless Bug: 271756295 gcip: generalize mem_pool gcip: utilize mock files on unittests Bug: 272216562 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: 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: Add gcip_thermal_destroy Bug; 264729080 (repeat) gcip: Add thermal votes Bug: 271194361 Bug: 264729080 (repeat) gcip: Cleanup abandoned domains on domain-pool destroy gcip: Prefix MAX_NUM_THERMAL_STATES Bug: 264729080 (repeat) gcip: Add const to thermal_cooling_device_ops Bug: 264729080 (repeat) gcip: Add thermal support Bug: 264729080 (repeat) gcip: remove redundant else in pm.c GCIP_MAIN_REV_ID: a5b6843ab58f30d6ce086016214cbf56a46610a8 gcip: Add gcip_pm_lock Bug: 264729080 (repeat) gcip: Make gcip_pm_{get_count,is_powered} lockless Bug: 271756295 (repeat) gcip: generalize mem_pool 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: Add level -3 (FATAL) for firmware log Bug: 271596603 (repeat) gcip: Update outdated comments gcip: Postfix gcip_firmware_tracing_restore gcip: Add gcip_thermal_destroy Bug: 264729080 (repeat) gcip: Add thermal votes Bug: 271194361 (repeat) Bug: 264729080 (repeat) gcip: Add missing includes to gcip-domain-pool.h gcip: Add list of dynamic domains to domain-pool gcip: Prefix MAX_NUM_THERMAL_STATES Bug: 264729080 (repeat) gcip: add watchdog timeout crash type Bug:255416846 gcip: Add thermal header Bug: 264729080 (repeat) GCIP_HEADERS_REV_ID: 126a2bd1e5ac72231c88425fbddb4b9fe2fd85b1 GitOrigin-RevId: 03d9970af576cb6267f25715de67d4ffd3e2934c Change-Id: Ia0e7a0d8113d209e0bb57e160bc3f2d89b1d4c5e
2023-03-09gxp: [Copybara Auto Merge] Merge branch 'gs201-u' into ↵android-u-beta-2_r0.4android-u-beta-2_r0.3android-u-beta-2_r0.2Aurora pro automerger
'android13-gs-pixel-5.10-udc' gcip: fixup: Use devm_* for gcip-pm Bug: 265870718 gcip: Use devm_* for gcip-pm Bug: 265870718 (repeat) gcip: Remove the start log of async power down Bug: 265870718 (repeat) gcip: Add firmware dynamic tracing support Bug: 262916889 gcip: Add PM support Bug: 265870718 (repeat) GCIP_MAIN_REV_ID: c359c8b4c8e11ff2655dbfd8457605b760db383c gxp: remove redundant domain_attach from vd resume Bug: 269587251 gxp: bump version 1.10 Bug: 269587251 (repeat) gxp: move domain detach to block_unready Bug: 269587251 (repeat) gxp: add mcu_crashed flag to gxp_virtual_device Bug: 269587251 (repeat) gxp: use MCU PSM to handle MCU fw crash Bug: 264621513 gxp: add IDs to VD suspend/resume log gxp: skip suspend/resume in full MCU mode Bug: 269717931 gxp: load core FW only once per image Bug: 267713927 gxp: Adopt GCIP PM Bug: 265870718 (repeat) gxp: Log the clients with a wakelock in gxp_platform_suspend Bug: 265870718 (repeat) gxp: Remove suspended from gxp_wakelock_manager Bug: 265870718 (repeat) gxp: support loading DSP core FW in raw binary format Bug: 259215977 gxp: introduce gxp_vd_invalidate_with_client_id Bug: 263994153 gxp: introduce gxp_vd_generate_debug_dump Bug: 263994153 (repeat) gxp: move vd_invalid_eventfd from client to vd Bug: 263994153 (repeat) gxp: gxp_vd_block_unready needs vd_semaphore write lock Bug: 263994153 (repeat) gxp: bump to version 1.9 Bug: 245751727 Bug: 268449263 gxp: unittest: add a unittest for gxp_mapping_iova_log Bug: 245751727 (repeat) gxp: Add a module flag to enable IOVA-space logging Bug: 245751727 (repeat) 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: Add a comment about suspend/resume in gcip-pm Bug: 265870718 (repeat) gcip: Add firmware dynamic tracing header Bug: 262916889 (repeat) gcip: Add PM header Bug: 265870718 (repeat) GCIP_HEADERS_REV_ID: 21105099cc4be7a0fec32f06f34cce5026015601 GitOrigin-RevId: 775c7ff3381a68301beb1d3b790d0954e211244c Change-Id: I9637cc7a2ef6bc3b8b184035834ac1ab13ebafb4
2023-02-09gxp: [Copybara Auto Merge] Merge branch 'gs201-u' into ↵android-u-preview-2_r0.2android-u-beta-1_r0.5android-u-beta-1_r0.4android-u-beta-1_r0.3android-gs-raviole-5.10-u-preview-2android-gs-raviole-5.10-u-beta1android-gs-pantah-5.10-u-beta1android-gs-bluejay-5.10-u-beta1Aurora pro automerger
'android13-gs-pixel-5.10-udc' gcip: introduce before_enqueue_wait_list Bug: 267713283 gcip: Add a new KCI code for thermal control Bug: 266837631 gcip: Add a new KCI code for fw tracing level request Bug: 262916889 gcip: fix up DMA fence macros GCIP_HEADERS_REV_ID: 16235f58e3f50f260c7b13f939857a414fc7eb21 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) gxp: define and use common interface for iommu_map Bug: 248436918 gxp: Merge identical parts in [callisto|europa]-platform.c. Bug: 249918544 gxp: bump interface version to 1.8 gxp: allocate domain pool according to mode Bug: 267714051 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: call before_enqueue_wait_list Bug: 267713283 (repeat) GCIP_MAIN_REV_ID: 442aa3a49affc15c9db72240cd2d0692b242a82a GitOrigin-RevId: c547ad68da23508ea20b3d67ecf9fdd3d74fbb79 Change-Id: I907e4bac60a0da03101854d06c66d20f92621598
2023-02-02gxp: [Copybara Auto Merge] Merge branch 'gs201-u' into ↵android-u-preview-2_r0.4android-u-preview-2_r0.3android-gs-pantah-5.10-u-preview-2android-gs-bluejay-5.10-u-preview-2Aurora pro automerger
'android13-gs-pixel-5.10-udc' gcip: use v*alloc without node GCIP_MAIN_REV_ID: e48d8c14dff78d70064f93e5faee61c17b0479c2 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 gcip: expose config size calculation to header Bug: 265605775 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: fix GCIP_DMA_FENCE_LIST_UNLOCK Bug: 258876786 gcip: correct path of gcip-dma-fence.h Bug: 258876786 (repeat) gcip: add gcip-dma-fence.h Bug: 258876786 (repeat) gcip: introduce firmware crash type Bug: 237739631 GCIP_HEADERS_REV_ID: 0a85dc4b06195de6efa46e2ca314548f07f30097 gxp: move core config region to second half of buf 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 (repeat) 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: 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 (repeat) gxp: add gxp-dma-fence support Bug: 258876786 (repeat) gxp: introduce GXP_NAME macro gxp: return vdid on VD allocation ioctl Bug: 264827584 gxp: add VDID support Bug: 264827584 (repeat) gxp: remove a cleanup TODO from vd.h gxp: add refcount to virtual device Bug: 264739996 gxp: add sync fence interfaces Bug: 258876786 (repeat) gxp: detach vd->domain when the state is invalid Bug: 263830035 gxp: call vd_block_unready when failed to run core fw Bug: 263830035 (repeat) gxp: apply clang-format to gxp-vd.c Bug: 263830035 (repeat) gxp: allow debugfs mailbox only with valid vd Bug: 264629015 gxp: add debugfs_client to client_list Bug: 264629015 (repeat) gxp: hold vd_semaphore only when direct mode Bug: 263830035 (repeat) gxp: fix vd_semaphore locking Bug: 263215610 gxp: revert VD state on after_vd_block_ready fail Bug: 263215610 (repeat) gcip: conditionally zero the non-contiguous region 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: implement gcip_dma_fence_show Bug: 264220687 (repeat) gcip: implement DMA fence status and signal Bug: 264220687 (repeat) gcip: add gcip-dma-fence.c Bug: 258876786 (repeat) GCIP_MAIN_REV_ID: 0a2e7b7e345705db78c8108890781cbe5c8c4eb7 GitOrigin-RevId: 277fffe779cbaf54c2d811928835e9a5ec67e832 Change-Id: Ied761f3000df6a44856db9438d21afd9b3ccb9aa
2023-01-06gxp: [Copybara Auto Merge] Merge branch 'gs201-u' into ↵Aurora pro automerger
'android13-gs-pixel-5.10-udc' gxp: amalthea uses different edgetpu path Bug: 263918299 gxp: fix uninit warn of gxp_debugfs_mailbox gcip: style fix up gcip: implement noncontiguous alloc Bug: 262684159 gcip: Change hard-coded magic numbers to MACROs Bug: 257300340 gcip: Update the size encoding of image config Bug: 257300340 (repeat) gcip: unittests: implement timeout race trigger Bug: 261822585 gcip: implement reference count to the awaiter Bug: 261822585 (repeat) gcip: implement gcip_mailbox_cancel_awaiter Bug: 261822585 (repeat) gcip: fix log style in gcip domain pool gcip: Add domain pool Bug: 228907682 gcip: init ignore_seq_order of KCI gcip: Use term awaiter instead of async_resp Bug: 249642792 gcip: constantize gcip_kci_args gcip: use rate limiting for reverse KCI failure warning gcip: remote unnecessary pointer cast gcip: Check telemetry buffer size gcip: Remove redundant error gcip: support arbitrary seq order commands Bug: 247414706 gcip: Add gcip-telemetry Bug: 239374826 gcip: use pad/pap instead of llx for logging gcip: implement gcip image config utilities Bug: 243500340 gcip: Don't pass mailbox param when calling the release_async_resp_data callback Bug: 239804137 gcip: Call release_data callback instead of ops->release_async_resp_data Bug: 239804137 (repeat) gcip: fix typo 'timedout' gcip: Implement gcip-firmware.c Bug: 239637765 gcip: Free arrived or timedout, but not handled async_resp Bug: 239010918 gcip: Set base_paddr of gcip_mem_pool Bug: 236673496 gcip: Adopt gcip-mailbox to gcip-kci Bug: 236679300 gcip: Implement the generalized mailbox (gcip-mailbox.c) Bug: 236679300 (repeat) gcip: Make gcip_kci_push_cmd static Bug: 223764481 gcip: implement gcip-mem-pool Bug: 236673496 (repeat) gcip: Add KCI support Bug: 223764481 (repeat) gcip: unittests: Add initial Kconfig and Makefile Bug: 222416109 gcip: Add initial Kconfig and Makefile Bug: 222416109 (repeat) GCIP_MAIN_REV_ID: a1895a61a873d1f52896f955e09d2e263b22a0e8 gxp: bump GXP version to 1.7 gxp: remove debugfs earlier than before_remove Bug: 263830035 gxp: adopt updated gxp_client_allocate_virtual_device gxp: debugfs utilizes UCI in the MCU mode Bug: 263830035 (repeat) gxp: call gxp_client_* funcs from firmware_run debugfs Bug: 263830035 (repeat) gxp: apply clang-format to gxp-debugfs.c gxp: update the interface of execute_cmd callback Bug: 263830035 (repeat) gxp: power off core on mbox allocation failure Bug: 264184974 gxp: Set special client ID to secure VD Bug: 263685745 gxp: Allocate secure VD Bug: 263836991 gxp: Add a secure VD field to struct gxp_dev Bug: 263685535 gxp: Add 'flags' to struct gxp_virtual_device_ioctl Bug: 263836981 gxp: Remove warnings during compilation Bug: 264010198 gxp: cleanup common platform probe Bug: 263844135 gxp: amalthea use GCIP Bug: 263918299 (repeat) gxp: update Makefile for kleaf support gxp: use PMU register Bug: 263830026 gxp: map private firmware data region Bug: 261797596 gxp: introduce gxp_dma_map_iova_sgt Bug: 262825536 gxp: allocate per VD firmware data Bug: 261797596 (repeat) gxp: Correct the lpm offsets calculations Bug: 263239197 gxp: Move shareability config with block power configuration Bug: 263310466 gxp: Enable new telemetry Bug: 247955426 gxp: enable dynamic slice index Bug: 255706432 gxp: Add support for core_boot insmod parameter Bug: 251612313 gxp: Add first_open support to VMBox Bug: 263296400 gxp: new UCI ioctl interfaces Bug: 261667704 gxp: remove unused virt_core in vd_suspend gxp: move system memory rates to config files Bug: 262964769 gxp: increase shared buffer size from 192K to 512K Bug: 262686729 gxp: introduce wait_queue for waiting responses Bug: 261822585 (repeat) gxp: rename queue to dest_queue Bug: 261822585 (repeat) gxp: adopt gxp-mcu-platform Bug: 249918544 gxp: revert tpu mapped checking logic gxp: Add telemetry buffer size fields to specs ioctl Bug: 259404526 gxp: fix error handling of gxp_map_tpu_mbx_queue gxp: fix logic of checking tpu_file when destroying clients gxp: europa: add mailbox array csrs Bug: 261150717 gxp: Implement mmap for new telemetry flow. Bug: 259404466 gxp: add 'features' field to specs Bug: 256073820 gxp: fix up reserved fields in gxp_specs_ioctl gxp: Add missing include Bug: 261550238 gxp: Apply gcip domain pool Bug: 228907682 (repeat) gxp: Move mailbox CSR based calls to chip specific file Bug: 261150717 (repeat) gxp: Make mailbox csr offset chip specific Bug: 261150717 (repeat) gxp: Allocate telemetry buffers during init Bug: 247955426 (repeat) gxp: introduce gxp-mcu-fs Bug: 249918544 (repeat) gxp: move client_has_vd check to client.c Bug: 249918544 (repeat) gxp: use entry point in elf header instead of fixed IOVA Bug: 260647260 gxp: Add _legacy postfix to telemetry function Bug: 247955426 (repeat) gxp: Refactor LPM to accommodate new chips Bug: 254168276 gxp: introduce gxp_pm_update_pm_qos Bug: 239638427 gxp: map tpu mbx queue even in MCU mode Bug: 237624453 gxp: fetch segment boundaries from ELF header Bug: 259197130 gxp: add ifdef guard for edgetpu_ext interface Bug: 259357745 gxp: set VD credit to 256 Bug: 257137038 gxp: Indroduce config-pwr-state.h Bug: 258154981 gxp: add cmd credit to virtual device Bug: 257137038 (repeat) gxp: fix the default domain cache gxp: revert ignore_seq_order settings gxp: Map TPU mbx only in the direct mode Bug: 249440369 gxp: Forward the thermal request to MCU when possible Bug: 255613035 gxp: Introduce gxp_wakelock_acquire_if_powered Bug: 255613035 (repeat) gxp: Add GXP_HAS_MCU config gxp: Roll back aur_power_state2rate changes in thermal gxp: Use aur_power_state2rate for thermal gxp: Fix reader/writer lock for vd allocation Bug: 257049139 gxp: Add a static debug pointer to driver state Bug: 255451381 gxp: fixup headers in platform.c gxp: remove obsolete ACPI support Bug: b/230701592 gxp: Add namespace import for DMA_BUF for 5.16 Bug: 232003048 gxp: Handle Core TelemetryRead rcki Bug: 249096610 gxp: Add GXP_HAS_LAP to config Bug: 249227451 gxp: remove explicit values of LPM PSM enum gxp: temporarily set slice_index to 0 Bug: 255706432 (repeat) Bug: 242011394 gxp: do power votes in VD wakelock acquisition Bug: 253990922, 253555787 gxp: Remove redundant state settings Bug: 189396709 gxp: LPM interfaces accepts enum psm Bug: 254168276 (repeat) gxp: Reduce mailbox timeout to 1s Bug: 250265514 gxp: Adopt awaiter of GCIP Bug: 249642792 (repeat) gxp: disable core interrupts before core releasing Bug: 252915360 gxp: remove response consuming callbacks Bug: 245455607 gxp: abstract GCIP send/put funcs from gxp-mailbox Bug: 245455607 (repeat) gxp: re-purpose GXP_LEGACY_MAILBOX Bug: 245455607 (repeat) gxp: use const args for mailbox init gxp: bump uapi version to 1.5 gxp: remove unnecessary coherent buf cast 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: store client IDs in gxp_virtual_device Bug: 246520556 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 (repeat) gxp: manage gcip_{mailbox,kci} from gxp_mailbox 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: expose response consuming functions to 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) gxp: add wrappers around iommu domain Bug: 248436918 (repeat) 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: return error when gxp_fw_data_create_app fails Bug: 249402363 gxp: fix memory leak on VD allocate resp queues Bug: 247662695 gxp: Wait for PS0 before powering down BLK_AUR Bug: 247273478 gxp: Enable best-fit IOVA allocator Bug: 241190719 gxp: remove compat ioctl interfaces gxp: remove cache invalidate of telemetry buffers Bug: 247772036 Bug: 245238253 gxp: cache invalidate on signal telemetry eventfd Bug: 247772036 (repeat) gxp: fix passing a NULL pointer to the gxp_vd_block_ready Bug: 247660434 gxp: Sort the GXP_IOCTL defines gxp: accept finalizing non-initalized modules Bug: 245690393 gxp: introduce IS_GXP_TEST Bug: 245690393 (repeat) gxp: define chip_rev module param gxp: sync with the fake core firmware Bug: 245270826 gxp: invalidate cache before fetching responses Bug: 242326098 gxp: make load_dsp_firmware return error properly Bug: 245270826 (repeat) gxp: support VD suspend/resume in Zuma direct mode Bug: 244699959 gxp: bump version to 1.4 Revert "gxp: Update gxp.h to reflect OFF being allowed in mbox IOCTL" Revert "gxp: remove GXP_POWER_STATE_OFF check in mbox cmd" gxp: Removing printing the log buff Bug: 244270315 gxp: support both coherent/non-coherent mappings Bug: 205831251 gxp: fix the unused warning on gem5 platform gxp: Update gxp.h to reflect OFF being allowed in mbox IOCTL Bug: 243737206 gxp: add wakelock_{after,before}_blk_{on,off} Bug: 241044848 gxp: Attach device after iommu domain allocated Bug: 243328707 gxp: Introduce {after,before}_vd_block_{ready,unready} callbacks Bug: 241057541 gxp: Rollback {after,before}_{allocate,release}_vd callbacks Bug: 241057541 (repeat) gxp: Introduce the `gxp_vd_block_unready` function. Bug: 241057541 (repeat) gxp: Make the `gxp_vd_stop` can work with READY state Bug: 241057541 (repeat) gxp: wrap power states into a struct Bug: 242155424 gxp: fix various typos gxp: Protect telemetry status in vd alloc/release Bug: 242145264 gxp: Fail to allocate VD if initial mapping fails Bug: 242145264 (repeat) gxp: Use one gxp_mailbox_create_manager Bug: 242939166 gxp: Extract mailbox manager from gxp-mailbox.h Bug: 242939166 (repeat) gxp: Implement the mailbox manager operator setting function of UCI Bug: 242178774 gxp: Add init functions for the legacy mailbox and DCI Bug: 242178774 (repeat) gxp: Introduce `GXP_HAS_DCI` definition Bug: 242964051 gxp: fix error handling on probing gxp: append internal headers after EXTRA_CFLAGS Bug: 242960640 gxp: remove GXP_POWER_STATE_OFF check in mbox cmd gxp: Add power states requests callback Bug: 241782481 gxp: Allocate resources on VD creation Bug: 241206240 gxp: handle VD allocation in gxp-client.c Bug: 241206240 (repeat) gxp: handle wakelock request in gxp-client.c Bug: 241206240 (repeat) gxp: gxp_mapping_create accepts domain Bug: 240415495 gxp: split out gxp_vd & gxp_fw module init/destroy Bug: 193180931 gxp: fixup DVFS requests Bug: 242785262 gxp: Only (un)map telem if enabled on vd start/stop Bug: 241090227 gxp: release TPU file after VD stop Bug: 241085004 gxp: increase the ref to TPU FD on TPU buffer map Bug: 241085004 (repeat) gxp: misc_register as the last step of probe Bug: 241718472 gxp: remove unneeded devm_kfree Bug: 241517691 gxp: Cancel last worker when power req queue is full Bug: 240533763 gxp: Map slice of shared buffer to IOMMU domain instead of whole of it Bug: 240128962 gxp: Allocate slice_index when allocating virtual device Bug: 240128962 (repeat) gxp: Add ID allocator for the slice index of shared buffer Bug: 240128962 (repeat) gxp: Introduce slice_index of the virtual device Bug: 240128962 (repeat) gxp: unittests: Introduce gxp-debug-dump-test.c and enable debug dump test Bug: 241086197 Bug: 234892966 gxp: remove domain attach on VD creation Bug: 241057799 gxp: Add `num_cores` in command ioctls for UCI Bug: 232310140, 237660465 gxp: Disallow /d/gxp/firmware_run if VDs are running Bug: 240764261 gxp: remove unneeded warnings from in PM gxp: Review feedback from 7/21 release Bug: 240315433 gxp: work around thermal_cdev_update Bug: 235433985 gxp: remove virt_core_list from gxp_dmabuf_map Bug: 240661491 gxp: remove virt_core_list from gxp_mapping Bug: 240661491 (repeat) gxp: add gxp_vd_phys_core_list gxp: remove ZEBU_SYSMMU_WORKAROUND gxp: Replace (resp_queue, eventfd) params with (client, virt_core) of async ops gxp: remove virt_core_list from tpu_mbx_desc gxp: check VD is non-null in gxp_client_destroy gxp: remove core_domains from vd Bug: 240415495 (repeat) gxp: remove gxp_vd_phys_core_to_virt_core gxp: clean up gxp-dma.h descriptions Bug: 240415495 (repeat) gxp: dma_map_tpu_buffer accepts domain Bug: 240415495 (repeat) gxp: gxp_dma_alloc_coherent takes domain Bug: 240415495 (repeat) gxp: map_allocated_coherent_buffer takes domain Bug: 240415495 (repeat) gxp: dma_map_dmabuf accepts domain as the arg Bug: 240415495 (repeat) gxp: dma_map_sg accepts domain as arg Bug: 240415495 (repeat) gxp: dma_map_core_resources accepts domain Bug: 240415495 (repeat) gxp: dma_domain_attach_device accepts domain Bug: 240415495 (repeat) gxp: Add callbacks for after allocating / before releasing the vd Bug: 237955391 gxp: program SSMT to the first domain Bug: 240415495 (repeat) gxp: deprecate virtual_core_list Bug: 240514360 gxp: map telemetry buffers to all domains Bug: 240415495 (repeat) gxp: map all core resources to all domains in VD Bug: 240415495 (repeat) gxp: remove the core parameter from dbg dump buf gxp: Map telemetry buffs before writing descriptor Bug: 239640408 gxp: Decide generating interrupt after allocating mailbox according to interface gxp: Add common operators of gcip-mailbox-ops to the gxp-mailbox-driver gxp: Merge resp_queue wait macro into the gxp-mailbox.h gxp: fix typos in comments Bug: 240315433 (repeat) gxp: rename callisto.ko to gxp.ko Bug: 240212593 gxp: Cleanup FW data on VD creation failure Bug: 240192343 gxp: remove the core number patch on gem5 platform Bug: 239908693 gxp: edgetpu symbol path according to target chip Bug: 239766974 gxp: warn deprecate pwr states only once Bug: 237337595 gxp: don't modify clkmux state during core booting Bug: 238960149 gxp: Map mailboxes for IOVA of KCI/UCI Bug: 228401855 gxp: Introduce gxp-usage-stats.c and complete update_usage KCI command Bug: 237967242 gxp: Introduce gxp-kci.c Bug: 228401855 (repeat) gxp: Introduce gxp-dci.c Bug: 236332988 gxp: Remove the dependency of gcip-mailbox from Amalthea Bug: 237908672 gxp: Introduce gxp_mailbox_args Bug: 236332988 (repeat) gxp: Introduce gxp_mailbox_ops Bug: 236332988 (repeat) gxp: Apply gcip-mailbox to gxp-mailbox Bug: 236679300 (repeat) gxp: Apply abstracted mailbox functions Bug: 237908672 (repeat) gxp: Abstracts mailbox related functions into the mailbox manager Bug: 237908672 (repeat) gxp: temporarily attach a domain while VD creating Bug: 232310140 gxp: add interface to override ioctl handlers gxp: implement UCI Bug: 232310140 (repeat) gxp: fix OOT build for amalthea gxp: increase the waiting time for cores booting Bug: 237378056 gxp: fix deadlock on power states queue full Bug: 236087752 gxp: parallelize the firmware startup process Bug: 207036666 gxp: Fix bug when clearing FW buffers on auth fail Bug: 237789581 gxp: firmware load should use configured name gxp: add gcip include for GKI kernel gxp: deprecate NON_AGGRESSOR / add LOW_FREQ_CLKMUX Bug: 237337595 (repeat) Bug: 237378056 (repeat) gxp: Disable telemetry before free Bug: 235771175 gxp: hold mmap lock around call to find_extend_vma Bug: 237404338 gxp: Don't change doorbell mask for running cores Bug: 235447772 gxp: compile gcip as an object Bug: 234674944 gxp: map shared buffer region Bug: 237262124 gxp: add gcip support to Makefile Bug: 234674944 (repeat) gxp: move firmware default name to chip config Bug: 234261504 gxp: Rename gxp-hw-mailbox-driver.c to gxp-mailbox-driver.c Bug: 236431904 gxp: Move increasing queue head / tail functions to gxp-hw-mailbox-driver.c Bug: 236431904 (repeat) gxp: Move setting queue head / tail functions to gxp-hw-mailbox-driver.c Bug: 236431904 (repeat) gxp: Move circ queue cnt / inc functions to gxp-hw-mailbox-driver.c Bug: 236431904 (repeat) gxp: Apply clang-format on the mailbox sources Bug: 236431904 (repeat) gxp: propagate GXP_PLATFORM option to Kbuild gxp: optional chip scratchpad region gxp: gxp-platform adopt common-platform.c Bug: 232894415 gxp: correct MAILBOX_DEVICE_INTERFACE_OFFSET for gem5 gxp: define ZEBU_SYSMMU_WORKAROUND in GEM5 and ZEBU_IP platform gxp: adjust Makefile for gem5 & kernel 5.13 gxp: add a parameter to specify callisto mode Bug: 235193368 gxp: introduce GXP_NUM_MAILBOXES config Bug: 235173180 gxp: remove redundant checks for mailbox mgr gxp: remove unused DMA functions Bug: 235212179 gxp: avoid holding semaphore during mmap Bug: 232183143 gxp: move iova.h to config files Bug: 235173809 gxp: Remove CONFIG_GXP_TEST from the SSMT related codes Bug: 201505925 gxp: lpm enable PS1 only for core CSRs gxp: add an MCU structure Bug: 229587136 gxp: define core CSR addresses as macros Bug: 234705757 gxp: Add option to disable DSP FW auth Bug: 235135800 gxp: Fix hangs and OOB writes when auth fails Bug: 234947988 gxp: Adjust the per-core FW size from 16MB to 1MB Bug: 228277106 gxp: Add enable_debug_dump argument for insmod Bug: 234529356 gxp: Dynamically allocate memory for debug dump buffer Bug: 234529355 gxp: Trigger debug dump only when firmware is up and running Bug: 233660431 Bug: 233607168 gxp: remove support for unsigned firmware Bug: 220246540 gxp: Expose additional DVFS states in power APIs Bug: 233929549 gxp: introduce a gxp_firmware_manager Bug: 230682809 gxp: remove CONFIG_GXP_CLOUDRIPPER gitignore: ignore .repo and gcip-kernel-driver Bug: 234674944 (repeat) gxp: set VID for both SSMTs and possible SIDs gxp: move LPM_TOP_PSM to config files Bug: 232471681 gxp: move SID of core macros to config files Bug: 233989804 gxp: different mailbox offset for platforms Bug: 233887617 gxp: authenticate firmware after requesting it Bug: 232715929 gxp: dma-iommu adopts gxp-ssmt interface Bug: 233989804 (repeat) gxp: add standalone ssmt driver Bug: 233989804 (repeat) gxp: add ifdef guard to disable suspend Bug: 234096867 gxp: set VD state in vd_stop Bug: 234096867 (repeat) gxp: Add lockdep checks to gxp-telemetry.c gxp: add log on probe success Bug: 233887617 (repeat) gxp: add tgid to client tracking and suspend block reporting Bug: 230656700 Revert "gxp: send UUD request before shutting down AUR_BLK" gxp: send UUD request before shutting down AUR_BLK Bug: 233584605 gxp: add parse_dt callback for device probe Bug: 232894415 (repeat) gxp: remove unrequired CORE_SCRATCHPAD_BASE offset Bug: 233381187 gxp: Switch the boot mode storage from CSRs into the scratchpad space Bug: 233381187 (repeat) gxp: Refactor FW boot mode into its own functions Bug: 233381187 (repeat) gxp: Fix locking in gxp_telemetry_disable() Bug: 232876605 gxp: initial gxp mcu firmware support Bug: 229587136 (repeat) gxp: add callbacks for common probing / removal Bug: 232894415 (repeat) gxp: introduce gxp-common-platform.c Bug: 232894415 (repeat) gxp: remove mm-backport.h gxp: Add NULL check of doorbells and barriers allocation Bug: 232612591 gxp: enhance Makefile for future chip support Bug: 230702544 gxp: debugfs use cmu.vaddr for accessing CMU CSRs gcip: add gcip-alloc-helper.h Bug: 262684159 (repeat) gcip: Update the comments in gcip-image-config for new encoding Bug: 257300340 (repeat) gcip: add reference count to the awaiter Bug: 261822585 (repeat) gcip: introduce gcip_mailbox_cancel_awaiter Bug: 261822585 (repeat) gcip: introduce gcip_kci_offload_chip_type Bug: 260690355 gcip: add {link,unlink}_offload_vmbox KCI codes Bug: 260690355 (repeat) gcip: Add domain pool Bug: 228907682 (repeat) gcip: Add remapped_data_{start,size} to image config Bug: 257212385 gcip: image header use unsigned fields gcip: add common authenticated image format header gcip: Use term awaiter instead of async_resp Bug: 249642792 (repeat) gcip: constantize gcip_kci_args gcip: support arbitrary seq order commands Bug: 247414706 (repeat) gcip: Add gcip-telemetry Bug: 239374826 (repeat) gcip: add gcip-image-config.h Bug: 243500340 (repeat) gcip: Add linux/workqueue.h as header gcip: Remove mailbox param from the release_async_resp_data callback Bug: 239804137 (repeat) gcip: Add release_data callback to the gcip_mailbox_async_response Bug: 239804137 (repeat) gcip: fix typo in gcip-mailbox.h gcip: fix various typos gcip: Fix reverse KCI codes Bug: 223764481 (repeat) gcip: Introduce gcip-firmware.h Bug: 239637765 (repeat) gcip: add gcip_mem_pool_offset gcip: Add KCI codes Bug: 223764481 (repeat) gcip: Remove the variables of gcip-kci.h which are moved to gcip-mailbox.h Bug: 236679300 (repeat) gcip: Add mailbox related structures and functions (gcip-mailbox.h) Bug: 236679300 (repeat) gcip: Add getters for gcip_kci Bug: 237785687 gcip: Make gcip_kci_push_cmd static Bug: 223764481 (repeat) gcip: add gcip memory pool Bug: 236673496 (repeat) gcip: Add KCI related structures and functions Bug: 223764481 (repeat) gcip: Add mailbox macro and enum Bug: 223764481 (repeat) gcip: Add circular queue mailbox helper functions Bug: 223764481 (repeat) GCIP_HEADERS_REV_ID: 37a282fd7aad536dc4521a908468bc9557911a19 gxp: Add a static debug pointer to driver state To assist with debugging of ramdumps where the GXP driver is not in the backstack, add a static symbol containing a pointer to the driver state so it can be located quickly in memory. Bug: 255451381 (repeat) gxp: Reduce mailbox timeout to 1s Reduce GXP timeout to allow for faster notification of failure since the longest any workloads are expected to run is ~500ms. Bug: 250265514 (repeat) GitOrigin-RevId: d7c38381aeae2ecc8b3b3f84abf45f1fe26edc4b Change-Id: Id0718e8bff32a18aff796dfd7779e2d61a6c4a64
2022-11-27Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcandroid-u-preview-1_r0.4android-u-preview-1_r0.3android-u-preview-1_r0.2android-gs-raviole-5.10-u-preview-1android-gs-pantah-5.10-u-preview-1android-gs-bluejay-5.10-u-preview-1PixelBot AutoMerger
SBMerger: 478053055 Change-Id: I6c282abde0ce3ee14155bae57bfafa697f07ba60 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-27Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr3android-t-qpr3-beta-3_r0.5android-t-qpr3-beta-3_r0.4android-t-qpr3-beta-3_r0.3android-t-qpr3-beta-3.1_r0.5android-t-qpr3-beta-3.1_r0.4android-t-qpr3-beta-3.1_r0.3android-t-qpr3-beta-2_r0.5android-t-qpr3-beta-2_r0.4android-t-qpr3-beta-2_r0.3android-t-qpr3-beta-1_r0.5android-t-qpr3-beta-1_r0.4android-t-qpr3-beta-1_r0.3android-t-qpr3-beta-1_r0.1android-13.0.0_r0.93android-13.0.0_r0.92android-13.0.0_r0.85android-13.0.0_r0.84android-13.0.0_r0.83android-13.0.0_r0.82android-13.0.0_r0.127android-13.0.0_r0.126android-13.0.0_r0.125android-13.0.0_r0.124android-13.0.0_r0.123android-13.0.0_r0.121android-13.0.0_r0.117android-13.0.0_r0.116android-13.0.0_r0.115android-13.0.0_r0.114android-13.0.0_r0.113android-13.0.0_r0.112android-13.0.0_r0.107android-13.0.0_r0.106android-13.0.0_r0.105android-13.0.0_r0.104android-13.0.0_r0.103android-13.0.0_r0.100android-gs-tangorpro-5.10-android13-qpr3android-gs-raviole-5.10-t-qpr3-beta-3android-gs-raviole-5.10-t-qpr3-beta-2android-gs-raviole-5.10-android13-qpr3-beta1android-gs-raviole-5.10-android13-qpr3android-gs-pantah-5.10-t-qpr3-beta-3android-gs-pantah-5.10-t-qpr3-beta-2android-gs-pantah-5.10-android13-qpr3-beta1android-gs-pantah-5.10-android13-qpr3android-gs-lynx-5.10-android13-qpr3android-gs-felix-5.10-android13-qpr3-candroid-gs-felix-5.10-android13-qpr3android-gs-felix-5.10-android13-d3android-gs-bluejay-5.10-t-qpr3-beta-3android-gs-bluejay-5.10-t-qpr3-beta-2android-gs-bluejay-5.10-android13-qpr3-beta1android-gs-bluejay-5.10-android13-qpr3PixelBot AutoMerger
SBMerger: 478053055 Change-Id: I695d617b8e8734bcb9565d4297bd5053a7a57135 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-15gxp: Add a static debug pointer to driver stateandroid-t-qpr2-beta-3_r0.5android-t-qpr2-beta-3_r0.4android-t-qpr2-beta-3_r0.3android-t-qpr2-beta-3.2_r0.6android-t-qpr2-beta-3.2_r0.5android-t-qpr2-beta-2_r0.5android-t-qpr2-beta-2_r0.4android-t-qpr2-beta-2_r0.3android-t-qpr2-beta-1_r0.6android-13.0.0_r0.91android-13.0.0_r0.77android-13.0.0_r0.76android-13.0.0_r0.75android-13.0.0_r0.74android-13.0.0_r0.73android-13.0.0_r0.70android-13.0.0_r0.69android-13.0.0_r0.68android-13.0.0_r0.64android-gs-tangorpro-5.10-android13-d2android-gs-raviole-5.10-android13-qpr2-betaandroid-gs-raviole-5.10-android13-qpr2android-gs-pantah-5.10-t-qpr2-beta-3.2android-gs-pantah-5.10-t-qpr2-beta-1android-gs-pantah-5.10-android13-qpr2-betaandroid-gs-pantah-5.10-android13-qpr2android-gs-lynx-5.10-android13-qpr2-bandroid-gs-lynx-5.10-android13-d4android-gs-bluejay-5.10-t-qpr2-beta-3android-gs-bluejay-5.10-android13-qpr2-betaandroid-gs-bluejay-5.10-android13-qpr2John Scheible
To assist with debugging of ramdumps where the GXP driver is not in the backstack, add a static symbol containing a pointer to the driver state so it can be located quickly in memory. Bug: 255451381 Signed-off-by: John Scheible <johnscheible@google.com> Change-Id: Ie68196f2642e839932dee0c3a972f17f563e2764
2022-11-15gxp: Reduce mailbox timeout to 1sJohn Scheible
Reduce GXP timeout to allow for faster notification of failure since the longest any workloads are expected to run is ~500ms. Bug: 253633897 Signed-off-by: John Scheible <johnscheible@google.com> Change-Id: Ie80587586bddd8abb1ca28dfceb4d6cbb93bb81e
2022-10-27Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-udcRobin Peng
SBMerger: 478053055 Change-Id: I278ba1aff66a7549d1aa1c5144143610bd787690 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-10-27Merge android13-gs-pixel-5.10-tm-qpr1 into android13-gs-pixel-5.10-tm-qpr2android-t-qpr2-beta-1_r0.5android-t-qpr2-beta-1_r0.4android-gs-raviole-5.10-t-qpr2-beta-1android-gs-bluejay-5.10-t-qpr2-beta-1PixelBot AutoMerger
Bug: 255246572 SBMerger: 478053055 Change-Id: Ie1c2b39645a8704a83ad217df879aae67a1e372d Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-09-30gxp: [Copybara Auto Merge]android-t-qpr1-beta-3_r0.5android-t-qpr1-beta-3.1_r0.1android-13.0.0_r0.60android-13.0.0_r0.55android-13.0.0_r0.50android-gs-pantah-5.10-t-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1Aurora pro automerger
gxp: Wait for PS0 before powering down BLK_AUR Bug: 247273478 GitOrigin-RevId: dcb6a78b915da268c6d89ce1b05d320940191150 Change-Id: I6d0e668de2e8ecbb82181e1fee2bb19e817345d6
2022-09-19gxp: [Copybara Auto Merge]Aurora pro automerger
gxp: Enable best-fit IOVA allocator Bug: 241190719 GitOrigin-RevId: 44b2dec0793fac3b4c3b553f3ea7086c318e1ddb Change-Id: I1089f28248281bc9eccecd193432e5559b55b283
2022-09-07[Copybara Auto Merge]Aurora pro automerger
gxp: Protect telemetry status in vd start/stop Bug: 234674375 GitOrigin-RevId: 5240c24d481643bb6836a6ee05c28d03d12dc152 Change-Id: I851bff5b6446ee684b2d9776a6f74bdbf99b2598
2022-08-10[Copybara Auto Merge]Aurora pro automerger
gxp: release TPU file after VD stop Bug: 241085004 gxp: increase the ref to TPU FD on TPU buffer map Bug: 241085004 (repeat) gxp: Fail to start a VD if initial mapping fails Bug: 241090227 gxp: Only (un)map telem if enabled on vd start/stop Bug: 241090227 (repeat) gxp: Cancel last worker when power req queue is full Bug: 240533763 gxp: Disallow /d/gxp/firmware_run if VDs are running Bug: 240764261 gxp: Cleanup FW data on VD creation failure Bug: 240999290 gxp: Review feedback from 7/21 release Bug: 240315433 gxp: Map telemetry buffs before writing descriptor Bug: 239640408 gxp: Re-enable telemetry mapping changes GitOrigin-RevId: c8adc76aa961c881ae2c41d71ec045308939e233 Change-Id: I17eb0436551f00fcf8ba41b24713002b947ab08f
2022-07-25[Copybara Auto Merge] Merge branch 'gs201-release' into ↵Aurora pro automerger
'android13-gs-pixel-5.10-tm-qpr1' Revert "gxp: avoid holding semaphore during mmap" Revert "gxp: Disable telemetry before free" gxp: fix deadlock on power states queue full Bug: 236087752 gxp: warn deprecate pwr states only once Bug: 237337595 gxp: don't modify clkmux state during core booting Bug: 238960149 gxp: increase the waiting time for cores booting Bug: 237378056 gxp: Disable telemetry before free Bug: 235771175 gxp: avoid holding semaphore during mmap Bug: 232183143 gxp: parallelize the firmware startup process Bug: 207036666 gxp: hold mmap lock around call to find_extend_vma Bug: 237404338 gxp: Fix bug when clearing FW buffers on auth fail Bug: 237789581 gxp: deprecate NON_AGGRESSOR / add LOW_FREQ_CLKMUX Bug: 237337595 (repeat) Bug: 237378056 (repeat) GitOrigin-RevId: 75508d46deac85970c4d556770c105eaa4f2a2e8 Change-Id: Id50f1b68834e687178d66e0d239d1be42e0e2152
2022-07-01[Copybara Auto Merge] Merge branch 'gs201-release' into ↵Aurora pro automerger
'android13-gs-pixel-5.10-tm-qpr1' DSP Release 6/29 RC02. Release info: 237573765 gxp: Don't change doorbell mask for running cores Bug: 235447772 Revert "Revert "gxp: authenticate firmware after requesting it"" Bug: 235447772 (repeat) GitOrigin-RevId: f2c9f0833dbd0168186fd618863d7ee57edeaafa Change-Id: I2892b1a032ced0641b0418c0ae2107db135caffc
2022-06-21Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1PixelBot AutoMerger
Bug: 233569354 SBMerger: 442815275 Change-Id: Idc338927398120f5b9a12fd4c988d52120aa2ec8 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-06-15[Copybara Auto Merge] Merge branch 'gs201-release' into ↵android-13.0.0_r0.45android-13.0.0_r0.32android-13.0.0_r0.31android-gs-pantah-5.10-android13-d1Aurora pro automerger
'android13-gs-pixel-5.10-tm-d1' Revert "gxp: authenticate firmware after requesting it" Bug: 235447772 gxp: Add option to disable DSP FW auth Bug: 235135800 gxp: Fix hangs and OOB writes when auth fails Bug: 234947988 gxp: Adjust the per-core FW size from 16MB to 1MB Bug: 228277106 gxp: Add enable_debug_dump argument for insmod Bug: 234529356 gxp: Dynamically allocate memory for debug dump buffer Bug: 234529355 gxp: Trigger debug dump only when firmware is up and running Bug: 233660431 Bug: 233607168 gxp: remove support for unsigned firmware Bug: 220246540 gxp: authenticate firmware after requesting it Bug: 232715929 gxp: Expose additional DVFS states in power APIs Bug: 233929549 GitOrigin-RevId: 99f54518439e715bff19b7b45b9cafe635febb77 Change-Id: Iee1b3c93aad333db2d051017e3509279ceb35f38
2022-05-30Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1Robin Peng
Bug: 233569354 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: Id0524ac1ee83e75bf5d3c6c951415cb01ad77fa2
2022-05-28[Copybara Auto Merge] Merge branch 'gs201-release' into ↵Aurora pro automerger
'android13-gs-pixel-5.10-tm-d1' Release info: 234196446 gxp: add tgid to client tracking and suspend block reporting Bug: 233584605 GitOrigin-RevId: c65eb571e8a8dfd0ad10ee9942354b1eeb699d34 Change-Id: I4f7ca25d0ba05954ef43a1b3b6592264c06749ca
2022-05-23[Copybara Auto Merge] Merge branch 'gs201-release' into ↵Aurora pro automerger
'android13-gs-pixel-5.10'. release info:233216473 dsp prod 5/23 RC03 gxp: remove unrequired CORE_SCRATCHPAD_BASE offset Bug: 233381187 gxp: Refactor FW boot mode into its own functions Bug: 233381187 gxp: Switch the boot mode storage from CSRs into the scratchpad space Bug: 233381187 gxp: Fix locking in gxp_telemetry_disable() Bug: 232876605 GitOrigin-RevId: da625dba4f2565974652c7b1fdfb6db90870230e Change-Id: Iaab2bef0c866741ce0d1390ad39ddd87e932dd73
2022-05-16[Copybara Auto Merge] Merge branch 'gs201-release' into ↵Aurora pro automerger
'android13-gs-pixel-5.10' gxp: Remove stale TODO comments Bug: 232447048 gxp: heuristically guess the user buffer perm Bug: 232529892 gxp: rearrange logs for BLK/VD suspend/resume Bug: 209083969 gxp: check AUR_OFF while sending power requests Bug: 231694821 gxp: rename NUM_CORES to MAX_NUM_CORES Bug: 229961485 gxp: fix one more typo of "semphore" Bug: 232447048 (repeat) gxp: fix size check for telemetry mmap Bug: 232447048 (repeat) gxp: check VD wakelock for GXP_TRIGGER_DEBUG_DUMP Bug: 231692562 gxp: Handle debug dump cases with invalid segment header Bug: 218344866 gxp: Add header file version into debug dump struct Bug: 202417979 gxp: Fix "semphore" typo Bug: 232447048 (repeat) gxp: Use DMA direction argument to determine read/write buffer map Bug: 201243473 gxp: Update mailbox command codes and remove unused ones Bug: 231328277 gxp: assert client->semaphore held without rw Bug: 231692448 gxp: Add unittests for the TPU related ioctl Bug: 227545695 gxp: refine power state transition interface Bug: 231584263 gxp: Add check that virtual device is not NULL Bug: 231271959 gxp: remove unused block wakelock functions Bug: 232447048 (repeat) gxp: Check memory-per-core arg to GXP_ALLOCATE_VIRTUAL_DEVICE Bug: 231272386 gxp: Log changes to thermal limit on BLK frequency Bug: 177217526 gxp: don't warn if all power votes are revoked Bug: 232447048 (repeat) gxp: Do not request firmware until first open() Bug: 228377252 gxp: Add the ability to re-request firmware images Bug: 228377252 (repeat) gxp: Prepare fw images and buffers on probe Bug: 228377252 (repeat) gxp: Add IOCTL for triggering debug dump Bug: 185262089 gxp: Update coredump debugfs node Bug: 185262089 (repeat) gxp: check valid dma direction Bug: 232447048 (repeat) gxp: fix probe cleanup sequences Bug: 228920163 gxp: Check DMA direction before create mapping Bug: 229578163 gxp: Use kvmalloc to allocate pages for mapping Bug: 230312441 gxp: add uaccess.h header for access_ok Bug: 201243473 (repeat) gxp: Refactor mappings to be owned by VDs Bug: 184572070 Bug: 220225771 Bug: 230291950 gxp: Add access_ok check to buffer map operation Bug: 201243473 (repeat) gxp: Add lock assertion for cmd_queue and resp_queue manipulation Bug: 229919339 gxp: use realtime kthread for response handling Bug: 229687028 gxp: Register IRQ handler after initializing the mailbox Bug: 229912601 gxp: Update comment when scheduling power requests Bug: 232447048 (repeat) gxp: remove config GXP_CLOUDRIPPER Bug: 229696441 gxp: add timeout to response ioctl Bug: 229443637 gxp: fix broken Makefile for out-of-tree build Bug: 232447048 (repeat) gxp: fix GXP_NUM_CORES setting Bug: 232447048 (repeat) gxp: add NOWARN flag when pinning user pages Bug: 229578166 gxp: create amalthea configurations Bug: 227528380 gxp: add Kconfig for future gen Bug: 227528380 (repeat) gxp: check fw_app by IS_ERR_OR_NULL Bug: 229433210 gxp: Add log for out of memory when pinning pages Bug: 232447048 (repeat) gxp: validate virtual core list on buffer map Bug: 229172687 gxp: initialize specs ioctl output buf Bug: 229470814 gxp: Update flow for kernel-initiated debug dumps Bug: 185262089 (repeat) gxp: Always return an error on gxp_vd_allocate failure Bug: 229329108 gxp: refuse vd wakelock acquriing if not allocated Bug: 229249566 gxp: add -Idrivers/gxp/include to ccflags Bug: 205970684 gxp: check null pointer in eventfd unregistration Bug: 229198626 gxp: Add support for dynamic callstack reconstruction in debug dump Bug: 203441187 gxp: Add ability to map/unmap user buffers to kernel space Bug: 203441187 (repeat) gxp: move acpm_dvfs to include/ Bug: 228938583 gxp: not set doorbell mask twice if it's not GEM5 Bug: 232447048 (repeat) gxp: add iommu domain pool Bug: 209083969 (repeat) gxp: Add flush_workqueue when pm destroy Bug: 232447048 (repeat) gxp: add include/ to inclusion path Bug: 205970684 (repeat) GitOrigin-RevId: ef68c0f9b9145e7ffbee141fa192335bf877e82d Change-Id: Ide21a9ab84d480c018ae065868d8ee619df83bf0
2022-05-12[Copybara Auto Merge] Merge branch 'gs201-release' into ↵Aurora pro automerger
'android13-gs-pixel-5.10' Cherry-pick of Suspend/Resume support gxp: reset CMU regs on blk_off Bug: 231759324 gxp: detach all aux domains when we fail to resume Bug: 231707796 gxp: Hold cores failing to suspend in reset Bug: 231663916 gxp: fix multicore resume if blk is restarted Bug: 231681021 gxp: Release pm_lock before flushing pm workers Bug: 231266703 gxp: update minor version for suspend/resume Bug: 209083969 gxp: handle suspend/resume failure gxp: implement core suspend/resume gxp: reset CMU on PM init Bug: 231291191 gxp: protect mailbox registers from corruption Bug: 231265938 gxp: only set curr_state on non-OFF req Bug: 231291187 gxp: Log clients holding wakelocks on suspend Bug: 230931995 gxp: set boot mode to cold boot on firmware run Bug: 230818196 gxp: change default off LPM state from PS2 to PS3 Bug: 229801235 GitOrigin-RevId: 2520913f6599abeefee27275b056d73f15e2178d Change-Id: I1c15420e06771dff507f29053bc5bba010e46314
2022-05-02[Copybara Auto Merge] Merge branch 'gs201-release' into ↵Aurora pro automerger
'android13-gs-pixel-5.10' gxp: check BLK is on during power state transition gxp: prepare more worker structures for async jobs gxp: Cleanup virt<->phys core translation APIs gxp: switch mux to make sure LPM works gxp: init has_vd_lock field of gxp_client gxp: Clean up variable names and update variable type gxp: remove gxp-tmp.h gxp: move scratchpad macros from tmp to firmware.h gxp: remove no-iommu support gxp: remove SYNC_ macros from tmp.h gxp: remove DOORBELL macros gxp: move PSM macros to lpm.h gxp: Check for valid VD in mb_eventfd IOCTLs gxp: Firmware startup and Core-On optimizations gxp: Move ownership of user response queues gxp: move macros from tmp.h to bpm.c gxp: remove legacy software mailbox support gxp: Add gxp-eventfd interface gxp: remove unused macros from gxp-tmp.h gxp: bind page tables per virtual device Bug: 176979630 Bug: 207037425 Bug: 207038856 Bug: 209083969 Bug: 225059930 Bug: 226211187 Bug: 227145352 Bug: 227693917 Bug: 227694164 Bug: 228233514 Bug: 228921329 Bug: 229095276 Bug: 229584236 GitOrigin-RevId: d2c00e3ee2d71e551d41adfa5bcc6bec79379db3 Signed-off-by: Todd Poynor <toddpoynor@google.com> Change-Id: Ia92e12a2ab46eadc2876bcdb7ed3c04e223b3901
2022-04-21Cherry-pick fixes for b/22956075 from 'gs201-release'Wei Miao
gxp: Fix thermal driver issue when pass in low val Bug: 229560757 gxp: Add extra DVFS level for thermal throttling Bug: 229008441 Signed-off-by: John Scheible <johnscheible@google.com> Change-Id: Ib007c3c21acd63793f0adbe354f96e17e0534ade
2022-04-04Merge branch 'gs201-release' to android13-gs-pixel-5.10Ilamparithi Mahendran
* gs201-release: gxp: remove redundant aurora_base global var Bug: 176984045 gxp: remove obsolete TODO of wakelock Bug: 201600514 gxp: correct frequency values for the memory rail Bug: 227334108 gxp: Enforce required wakelocks on OOD IOCTLs gxp: Cleanup and rearrange the IOCTLs ordering gxp: Split version info into its own IOCTL gxp: Fix a race condition in response processing Bug: 226982987 gxp: Fix non-aggressor flag behavior bugs Bug: 226682644 gxp: Require BLOCK wakelock to read global counter Bug: 225402208 gxp: Clean-up pending commands on mailbox close Bug: 194060459, 184572070 gxp: Add missing break in gxp_ioctl() Bug: 226501806 gxp: fix the READY state support in mailbox ioctl Bug: b/226281679 gxp: set non-aggressor bit with non-aggressor vote Bug: 221320387 gxp: support NON_AGGRESSOR flag in power IOCTLs Bug: 221320387 Signed-off-by: Ilamparithi Mahendran <ilamparithim@google.com> Change-Id: I397bf1e41305d2c3b10ad4073d4ba2d81da99de9
2022-03-21Merge branch 'gs201-release' to android13-gs-pixel-5.10Neela Chithirala
* gs201-release: gxp: Allow registering eventfds for mailbox responses Bug: 223917403 gxp: support MUX clock switch in power state api Bug: 222625456 gxp: Add power_flags to the mailbox command IOCTL Bug: 221320387 gxp: support power state with mailbox IOCTL Bug: 220975116 Signed-off-by: Neela Chithirala <chithiralan@google.com> Change-Id: I5ca5d964dcff4121d6a0aa0accf4f8a0ed454111
2022-03-14Merge branch 'gs201-release' to android13-gs-pixel-5.10Neela Chithirala
* gs201-release: gxp: ignore AUR_OFF in power voting Bug: 223286553 gxp: change memory power state asynchronously Bug: 221187219 gxp: cancel the vote when the client is destroyed Bug: 201600514 gxp: refactor pm interface Bug: 201600514 gxp: Make a power state vote for debugfs wakelocks Bug: 223286553 gxp: Return error if gxp_vd_allocate() fails Signed-off-by: Neela Chithirala <chithiralan@google.com> Change-Id: Ibb879ffffa83e787409debec4e5e55bfe8858808
2022-03-07Merge branch 'gs201-release' to android13-gs-pixel-5.10Neela Chithirala
* gs201-release: gxp: create own queue for power state transition Bug: 221187219 gxp: Fix checkpatch errors gxp: lower the default power state Bug: 201600514 gxp: support memory power state operation Bug: 201600514 gxp: change power state asynchronously Bug: 221187219 gxp: Support for mapping and unmapping dma-bufs Bug: 177224744 gxp: Remove extra call to gxp_pm_init() on probe gxp: support power state voting by wakelock IOCTL Bug: 201600514 gxp: add firmware authentication support Bug: 218949590 GitOrigin-RevId: ae2f794c392b0357bbad0f6b84c71896b9e61185 Change-Id: I42bf2d5a834700059b4e8f145b8a78a27aa7b668 Signed-off-by: Neela Chithirala <chithiralan@google.com> Change-Id: Id2ea88150f661804c06455924b799640c38b0480
2022-02-14Merge branch 'gs201-release' to android13-gs-pixel-5.10Neela Chithirala
* gs201-release: gxp: Implement VIRTUAL_DEVICE wakelock IOCTL Bug: 201600514 gxp: Implement BLOCK wakelock IOCTL Bug: 201600514 Signed-off-by: Neela Chithirala <chithiralan@google.com> Change-Id: I34ede1478d6804970b4672c445c7b7d2073f46ef
2022-02-03Merge branch 'gs201-release' to android13-gs-pixel-5.10Neela Chithirala
* gs201-release: gxp: Fix multicore VDs not shutting down clean Bug: 215303765 gxp: Rework VD locking and remove mailbox locking Bug: 189018271 gxp: initial commit for thermal driver Bug: 177217526 gxp: Add wakelock interface and make debugfs wakelock aware Bug: 215192870 gxp: Hook-up pm ops for driver suspend/resume Bug: 204924965 gxp: Dynamically power BLK_AUR on and off Bug: 204924965 gxp: support GXP_PLATFORM=GEM5 Bug: 204942713 gxp: Remove delay waiting for FW mailbox init Bug: 207037428 gxp: Fix infrequent crash during mailbox release gxp: Release FW file on firmware loading errors gxp: return GXP_RESP_CANCELLED if timeout occurs Bug: 207432733 gxp: Remove initial 10ms delay when disabling telemetry gxp: Cast telemetry buffer IOVAs to u32s before use gxp: check sscoredump by CONFIG_SUBSYSTEM_COREDUMP gxp: Fix double-lock hang in gxp_telemetry_vma_close gxp: Log driver git commit hash on probe Bug: 206744969 gxp: Add ioctl for reading the TOP global counter gxp: Implement eventfd signalling for telemetry gxp: Notify running cores of telemetry state changes gxp: Add notification interface Signed-off-by: Neela Chithirala <chithiralan@google.com> Change-Id: Ic7cd7b81ee643371c600ac208ae33d6344ed7f1b
2021-11-19Merge branch 'gs201-release' to android13-gs-pixel-5.10Neela Chithirala
* gs201-release: gxp: Initial commit for PM interface gxp: map and unmap TPU mailbox queues buffer gxp: unittests: add a gxp-debugfs-test.c gxp: unittests: add a gxp-platform-test.c gxp: unittests: add a gxp-vd-test.c gxp: unittests: add a gxp-firmware-test.c gxp: Update the logging/tracing device/host shared structures. gxp: Add ability to mmap telemetry buffers gxp: Move ETM trace_data off the stack gxp: Add IOCTL for configuring ETM registers gxp: Update copyright to "Google LLC" gxp: Remove NEED_SG_DMA_LENGTH from Kconfig gxp: unittests: fix kunit path in kokoro gxp: unittests: let LPM be always active gxp: unittests: add a fake firmware loader gxp: unittests: support device tree in unit tests gxp: unittests: use kokoro to execute tests Signed-off-by: Neela Chithirala <chithiralan@google.com> Change-Id: I8fa8dfaaa70d2a40503ff3bffe636380b69e443c
2021-10-28gxp: First import from development branchJohn Scheible
Squash at commit 48fe5786f1779890538d14f709b26063698c3711 Signed-off-by: John Scheible <johnscheible@google.com> Change-Id: I208434dddde40c08b9fc4d5da072ba10541992a2
2021-10-19Initial empty repositoryBill Rassieur