gxp: [Copybara Auto Merge] Merge branch 'zumapro-u' into 'android14-gs-pixel-6.1'
gxp: fix dma addr log format
Use %pad for logging dma_addr_t types.
(cherry picked from commit cdf65e426bcc4ced80f9fa9f7d91814bac90338f)
gxp: Correct the user buffer range check
`mapping->gcip_mapping->size` is the size of the whole mapping
i.e. http://screen/BvVGV7kqf5MurU3 and not the size after the
`mapping->gcip_mapping->device_address` till the mapping end
i.e. http://screen/BrWQpMSEiutkBZF.
Bug: 324353546
(cherry picked from commit b4601b79558319310cb95e7c9bad95cfda3ac6e9)
gxp: Balance vunmap with vmap in error scenario
- Balance the `gxp_mapping_vunmap()` if the firmware passes the valid
device IOVA with invalid size. Otherwise mapping reference will not
be correctly updated and hence mapping will not be released during
`gxp_release()`.
- Correct the device address to be printed in case of error.
Bug: 324353546 (repeat)
Test: Validated the debug dump functionality after passing the invalid
user buffer details.
(cherry picked from commit fc5dee4d5a725efa3304c74641c7265d35e2bf95)
gxp: Fix range check while searching for a mapping
While searching for a mapping, range check was spilling into the next
page, resulting in an invalid mapping to be returned. Adjusting the
range check to page boundary.
Bug: 324353546 (repeat)
(cherry picked from commit 0a5a9eddd0a4c9a86efe2476ee1bbf4ba5e34cb7)
gxp: don't include gsa_image_auth
Bug: 324001894
gxp: Rename GCIP_KCI_CODE_FIRMWARE_INFO
Bug: 297305291
gxp: update license strings
Bug: 323813772
gcip: Rename GCIP_KCI_CODE_FIRMWARE_INFO
Bug: 297305291 (repeat)
GCIP_HEADER_REV_ID: 52f781eda1f9c76e78fe2a480898970438fc0079
gcip: alloc-helper use kvmalloc_array
GCIP_MAIN_REV_ID: 2c2eacffb922958cd7e0a0f1f05ea7ecc2d1e023
gxp: schedule response work for DCI
Bug: 323464908
gxp: Pass KD version to MCU
Bug: 297305291 (repeat)
gcip: GCIP_HAS_VMA_FLAGS_API temporarily check kernel version 6.1.25
Bug: 298697777
GCIP_HEADER_REV_ID: 27c4ef93900a17c2c6b6569dca3ffd7208c980b9
gcip: remove unneeded version checks
Bug: 298697777 (repeat)
gcip: remove HAS_IOVAD_BEST_FIT_ALGO
gcip: add gcip_iommu_domain_map_sgt_to_iova
Bug: 321911434
gcip: add GCIP_MAP_FLAGS_DMA macros
Bug: 321911434 (repeat)
gcip: add gcip_iommu_(un)map
Bug: 321911434 (repeat)
GCIP_HEADER_REV_ID: 79b1b74bc78ffd0193152648172b353fdebcff1f
gxp: use extern for static global vars
gxp: use IS_GXP_TEST
gxp: Use -{ENOENT,EAGAIN} when UCI wait_event expires
Bug: 316486026
gxp: adopt new class_create interface
Bug: 321614734
gxp: utilize gcip_iommu_domain_map_sgt_to_iova
Bug: 321911434 (repeat)
gxp: change the lock mode in gxp_client_destroy
gxp: always use gcip_iommu_map
Bug: 321911434 (repeat)
gxp: replace gxp_iommu_(un)map with gcip
Bug: 321911434 (repeat)
gcip: Wrap TEST_TRIGGER_TIMEOUT_RACE with braces
gcip: drop unnecessary version check
Bug: 298697777 (repeat)
Bug: 320371986
gcip: use GCIP_HAS_IOVAD_BEST_FIT_ALGO
gcip: expose gcip_iommu_domain_map_sgt_to_iova
Bug: 321911434 (repeat)
gcip: iommu_map_sg considers GCIP_IOMMU_MAP_HAS_GFP
Bug: 321614734 (repeat)
gcip: add gcip_iommu_domain_granule()
Bug: 321911434 (repeat)
gcip: implement gcip_iommu_(un)map
Bug: 321911434 (repeat)
GCIP_MAIN_REV_ID: d5a15d25b227a266595faac327488d227f4fc686
Signed-off-by: Aurora zuma pro automerger <[email protected]>
GitOrigin-RevId: 2dfe9fa8703fbf12a192f725aef3f246002a893c
Change-Id: I6f21e346022b25b451ead1faff7c45e0d850fd55
62 files changed