summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2024-03-14[DO NOT MERGE ANYWHERE] Revert "mali_pixel: Refactor SLC partition management"Jack Diver
Revert submission 2753879-gpu-slcv2-gs201 Reason for revert: Prebuild did not land before cutoff Reverted changes: /q/submissionid:2753879-gpu-slcv2-gs201 Bug: 329447972 Change-Id: I59fcb56a434c21cc3bdfdacaf3c3978d548330ad
2024-03-14[DO NOT MERGE ANYWHERE] Revert "mali_pixel: Implement SLC partition ref ↵Jack Diver
counting" Revert submission 2753879-gpu-slcv2-gs201 Reason for revert: Prebuild did not land before cutoff Reverted changes: /q/submissionid:2753879-gpu-slcv2-gs201 Bug: 329447972 Change-Id: I13716375afbe5be1ae04eb059ed24e8780e503cd
2024-03-14[DO NOT MERGE ANYWHERE] Revert "mali_pixel: Periodically read ACPM GPU signal"Jack Diver
Revert submission 2753879-gpu-slcv2-gs201 Reason for revert: Prebuild did not land before cutoff Reverted changes: /q/submissionid:2753879-gpu-slcv2-gs201 Bug: 329447972 Change-Id: I61f877019194c4c86cc0df79ea466adecceaef19
2024-02-28mali_pixel: Periodically read ACPM GPU signalJack Diver
Use ACPM GPU signal to make enable/disable decisions for the SLC partition. Currently, the signal is sampled during scheduling tick. Bug: 313458962 Test: gfxbench Signed-off-by: Jack Diver <diverj@google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:dec457352147d282921e0ae81ce3a7154e80c64e) Merged-In: Ife0adedf6006daaf17062a0f555d126c1fd45465 Change-Id: Ife0adedf6006daaf17062a0f555d126c1fd45465
2024-02-28mali_pixel: Implement SLC partition ref countingJack Diver
Bug: 313458962 Test: gfxbench Signed-off-by: Jack Diver <diverj@google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:ef62a44e1e80286433fae8918996eb57647ba84c) Merged-In: Id2ab03db4b8b3122bc1f87ecb97715fa3a5d80e4 Change-Id: Id2ab03db4b8b3122bc1f87ecb97715fa3a5d80e4
2024-02-28mali_pixel: Refactor SLC partition managementJack Diver
Bug: 313458962 Bug: 290354607 Test: gfxbench Signed-off-by: Jack Diver <diverj@google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:737eec95fa7ace1075ad73c1ab440408df4c0a10) Merged-In: I30312e9fcb5f9a26ce47f3757948d47e13e9182f Change-Id: I30312e9fcb5f9a26ce47f3757948d47e13e9182f
2024-01-05Merge branch 'upstream' into HEADVamsidhar reddy Gaddam
Update KMD to R47P0 Bug: 315267052 Test: Outlined in go/pixel-gpu-kmd-r47p0 Change-Id: I89454c4c862033fe330b260a9bc6cc777a3ca231 Signed-off-by: Vamsidhar reddy Gaddam <gvamsi@google.com>
2023-12-14Update KMD to r47p0Jörg Wagner
Provenance: ipdelivery@ad01e50d640910a99224382bb227e6d4de627657 Change-Id: I19ac9bce34a5c5a319c1b4a388e8b037b3dfe6e7
2023-09-01Merge r44p1-00dev3 from partner/upstream into android13-gs-pixel-5.10-udc-qpr1Jörg Wagner
Bug: 290882327 Change-Id: I90723cbaa3f294431087587fd8025f0688e51bf2
2023-08-03Update KMD to 'mini release: update r44p1-01bet1 to r44p1-00dev2'Jörg Wagner
Provenance: ipdelivery@d10c137c7691a470b8b33786aec4965315db4561 Change-Id: I4fbcc669d3b8e36c8288c91fdddd8b79258b6635
2023-07-12Merge upstream DDK R43P0 KMDDebarshi Dutta
Merge DDK version R43P0 from upstream branch Provenance: 48a9c7e25986318c8475bc245de51e7bec2606e8 (ipdelivery/EAC/v_r43p0) VX504X08X-BU-00000-r43p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r43p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r43p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r43p0-01eac0 - Valhall Android Renderscript AOSP parts Bug 278174418 Commit-Topic: R43P0_KMD Signed-off-by: Debarshi Dutta <debarshid@google.com> Change-Id: I84fb19e7ce5f28e735d44a4993d51bd985aac80b
2023-06-06kbase_mem: Reduce per-memory-group pool size to 4.liangjlee
Only register/unregister enough shrinkers to mitigate shrinker_rwsem contention and potentially improve memory reclaim time. Bug: 285850873 Test: Verify /d/mali0/ctx/$id/mem_pool_size Change-Id: I52b7cd7c0c6965397a84efef7e9545c3698c7c2c Signed-off-by: liangjlee <liangjlee@google.com>
2023-05-01Mali Valhall Android DDK r43p0-01eac0 KMDToby Sunrise
Provenance: 48a9c7e25986318c8475bc245de51e7bec2606e8 (ipdelivery/EAC/v_r43p0) VX504X08X-BU-00000-r43p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r43p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r43p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r43p0-01eac0 - Valhall Android Renderscript AOSP parts Change-Id: I5df1914eba386e0bf507d4951240e1744f666a29
2023-05-01Mali Valhall Android DDK r42p0-01eac0 KMDToby Sunrise
Provenance: 300534375857cb2963042df7b788b1ab5616c500 (ipdelivery/EAC/v_r42p0) VX504X08X-BU-00000-r42p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r42p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r42p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r42p0-01eac0 - Valhall Android Renderscript AOSP parts Change-Id: I3b15e01574f03706574a8edaf50dae4ba16e30c0
2023-04-27mali_kbase: platform: [SLC-VK] Add new MGM group id for explicit SLC ↵Aleks Todorov
allocations. Bug: 265007605 Test: build_slider.sh Change-Id: Ie75bb74248e5bdc98b226f9907c3831d38f5905f
2023-04-27mali_kbase: [SLC-VK] Add new BASE_MEM_GROUP for explicit SLC allocations.Aleks Todorov
Bug: 265007605 Test: build_slider.sh UMD: http://ag/22335635 Change-Id: I032ab48a850ba3918cb056c72e719fbb978b3d77
2023-04-06mali_kbase: platform: mgm: Get accurate SLC partition sizeJack Diver
Use mgm_resize_callback to update memory group size. Add entry point allowing memory group size to be queried. Bug: 264990406 Test: Boot to home Test: gfx-bench mh3.1 Change-Id: I80f595724c7418b97e07679719d2b76e4ee7b96f Signed-off-by: Jack Diver <diverj@google.com>
2023-03-23mali_pixel: Add entry point for resizing a memory groupJack Diver
Add a backdoor entry point to allow the mali_kbase platform integration to resize the GPU SLC memory group, by mutating the underlying partition. Bug: 264990406 Test: Build mali_kbase, mali_pixel Test: Boot to home Change-Id: I8f933625b040d419b9e5676976ea3cf9cde87cec Signed-off-by: Jack Diver <diverj@google.com>
2023-03-23mali_pixel: Add support for multi-partition groups.Jack Diver
The only way to 'resize' an SLC partition, is to mutate it using another partition. To support this in the memory group manager, we need to support multiple possible partitions per memory group, with a single active partition that can be mutated. Bug: 264990406 Test: Build mali_kbase, mali_pixel Test: Boot to home Change-Id: Ic9cb905405f82d4bdc86de5776b67c86a0b94b80 Signed-off-by: Jack Diver <diverj@google.com>
2023-03-23mali_kbase: Implement buffer liveness ioctlJack Diver
Add SLC platform integration, and plumb custom ioctl through. Bug: 264990406 Test: Boot to home Test: Manual ioctl call Change-Id: I0009cec83f54cfed8e12477c5ebd7aa01cf50cc8 Signed-off-by: Jack Diver <diverj@google.com>
2023-03-23mali_kbase: Add buffer liveness ioctlJack Diver
Add an ioctl that userspace can use to inform the kernel of buffer live ranges. The icotl is currently a stub. Bug: 264990406 Change-Id: Ie36395be5a1e835ed1ed39ba29737f4e51b8deee Signed-off-by: Jack Diver <diverj@google.com>
2023-02-28GPUCORE-36419 Fix OOB access in KCPU CQS_WAIT/SET_OPERATIONandroid-t-qpr3-beta-2_r0.4android-t-qpr3-beta-2_r0.3android-gs-raviole-5.10-t-qpr3-beta-2android-gs-bluejay-5.10-t-qpr3-beta-2Elouan Appere
This commit fixes an OOB access by enforcing proper alignment of CQS (8 for 32-bit CQS, 16 for 64, as per the TRM). Since the resp. alignments for these objects are equal to their size, checking it ensures we never cross event page boundaries. A defect test is added for this security fix. It also fixes 32-bit support for those two operations, even if base just uses CQS_WAIT/SET instead. TI2: 962442 (PLAN-39472r8 R38P1 DDK Precommit) TI2: 938648 (DDK Precommit, PS14) TI2: 938643 (BASE_CSF_TEST, PS14) TI2: 938874 (BASE_CSF_TEST, PS15, rerun) TI2: 938875 (BASE_L64_CSF, PS15) TI2: 938645 (BASE_DEFECT_TESTS, PS14) TI2: 939562 (DDK Precommit Build Only, PS18) TI2: 939558 (BASE_CSF_TEST Build Only, PS18) Provenance: https://code.ipdelivery.arm.com/c/GPU/mali-ddk/+/4980 Bug: 267242697 Signed-off-by: Sean Callanan <spyffe@google.com> Change-Id: I30542c3001c8568df3dd6a8458e70ee3ab820dbb
2022-12-15Mali Valhall Android DDK r41p0-01eac0 KMDJörg Wagner
Provenance 7bb206ede984968bd1014b29529e94763b043202 (ipdelivery/EAC/v_r41p0) VX504X08X-BU-00000-r41p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r41p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r41p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r41p0-01eac0 - Valhall Android Renderscript AOSP parts Change-Id: I95f741ffe0ec4ee4c8f2c0338778294f1a2a2836
2022-12-15Mali Valhall Android DDK r40p0-01eac0 KMDJörg Wagner
Provenance: 056ded72d351d1bf6319f7b2b925496dd6ad304f (ipdelivery/EAC/v_r40p0) VX504X08X-BU-00000-r40p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r40p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r40p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r40p0-01eac0 - Valhall Android Renderscript AOSP parts Change-Id: I6db6b45c73c5447dd246533246e65b5ef2c8872f
2022-11-09Revert "Revert "Merge r38p1 from upstream into ↵Jack Diver
partner/android13-gs-pixel-5.10-tm-qpr2"" This reverts commit 34e635317dc2a91076ac341df3867ac3bdb31ef1. Bug: 228779790 Change-Id: Ic9d131af5568d7f55f610f255fa1c02925b18482 (cherry picked from commit 1c916e3f7c4d999f68e40c60fee6fe39418fcecd)
2022-11-02Revert "Merge r38p1 from upstream into partner/android13-gs-pixel-5.10-tm-qpr2"Kevin DuBois
This reverts commit 6dcd9736cbf84712dd7073dab4aea256e30517c2. Reason for revert: UMD taking too long to merge Bug: 228779790 Change-Id: I08b861ba3cfc8b025f653ef86b0a5ec643e5b13d
2022-10-31Merge r38p1 from upstream into partner/android13-gs-pixel-5.10-tm-qpr2Jack Diver
Bug: 228779790 Bug: 240184939 Bug: 240185324 Test: Boot to home Test: SST run Test: Camera, portrait, video record Test: VK CTS dEQP-VK.protected_memory.stack#* Test: CtsDisplayTestCases Test: CtsOpenGLTestCases Test: CtsSkQPTestCases Test: CtsNativeHardwareTestCases Test: CtsUiRenderingTestCases Test: CtsGpuToolsHostTestCases Test: CtsGpuProfilingDataTestCases Test: CtsVrTestCases Test: CtsCameraTestCases Test: CtsDeqpTestCases Signed-off-by: Jack Diver <diverj@google.com> Change-Id: I555b0c61cd08c973aaf7f75dc92d0c7573fa7c91
2022-10-07mali_kbase: MIDCET-4220 Patch for GPUSWERRATA-1420Suzanne Candanedo
This patch is a fix for: - SW Errata: 2712858 - CVE: CVE-2022-36449 It excludes MMU dumping and invalidates PGD before free. For this fix to work, GPUCORE-32152 is needed which adds hooks for physical address translation. Bug: 251397485 Provenance: https://code.ipdelivery.arm.com/c/GPU/mali-ddk/+/4607/1 Signed-off-by: Jack Diver <diverj@google.com> Change-Id: I9d3718b57199b7e66a5b49730ac32c810a1fc9c9
2022-10-06mali_kbase: MIDCET-4220 Patch for GPUSWERRATA-1360Suzanne Candanedo
This patch is fix for SW errata 2637762 fixing possible out of bounds array access. Bug: 251397485 Provenance: https://code.ipdelivery.arm.com/c/GPU/mali-ddk/+/4580 Signed-off-by: Jesse Hall <jessehall@google.com> Change-Id: Ie8a48bbe903fe1127d298a33b9533753d0763452
2022-09-02Mali Valhall Android DDK r38p1-01eac0Jack Diver
VX504X08X-BU-00000-r38p1-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r38p1-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r38p1-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r38p1-01eac0 - Valhall Android Renderscript AOSP parts Signed-off-by: Jack Diver <diverj@google.com> Change-Id: I242060ad8ddc14475bda657cbbbe6b6c26ecfd57
2022-04-01Merge r36p0 from gs101 into android13-gs-pixel-5.10Siddharth Kapoor
Bug: 220942030 Test: boot to Home with IFPO, Camera, Video, Chrome Signed-off-by: Siddharth Kapoor <ksiddharth@google.com> Change-Id: I0a7b040d8c756b55b4e54ceb8a33405a52564202
2022-03-23Merge r36p0 from upstream into android-gs-pixel-5.10-gs101Siddharth Kapoor
Bug: 220942030 Test: boot to Home, Camera, Video, Chrome Signed-off-by: Siddharth Kapoor <ksiddharth@google.com> Change-Id: I8cf3a6243b092a05299acf956f5293facd1ed3cc
2022-03-02Mali Valhall Android DDK r36p0 KMDSiddharth Kapoor
Provenance: 9f72c118d9 (ipdelivery/EAC/v_r36p0) VX504X08X-BU-00000-r36p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r36p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r36p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r36p0-01eac0 - Valhall Android Renderscript AOSP parts Signed-off-by: Siddharth Kapoor <ksiddharth@google.com> Change-Id: I4a63b707fedc68d7b7d046596c7098da47a139cb
2022-02-04Merge r35p0 update from gs101 branch to gs201 branchAnkit Goyal
Change-Id: I161b11a47ce8773d9c7d618c7140d0d66f41a294
2022-01-19Merge remote-tracking branch 'partner/upstream' into r35-mergeAnkit Goyal
Bug: 213455888 Signed-off-by: Ankit Goyal <layog@google.com> Change-Id: Id9ef73da49680e2935a827c40d54169545f7162e
2022-01-07Mali Valhall Android DDK r35p0 KMDSiddharth Kapoor
Provenance: 3e260085ac (collaborate/EAC/v_r35p0) VX504X08X-BU-00000-r35p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r35p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r35p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r35p0-01eac0 - Valhall Android Renderscript AOSP parts Signed-off-by: Siddharth Kapoor <ksiddharth@google.com> Change-Id: Id9ef73da49680e2935a827c40d54169545f7162e
2021-12-22Merge android13-gs-pixel-5.10-gs101 into android13-gs-pixel-5.10Robin Peng
Bug: 199698959 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: I2d8f6a5a104b297ae3f53653640138f670ff9adc Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2021-12-06Merge r34p0-00dev1 from upstream into android-gs-pixel-5.10-gs101Siddharth Kapoor
Change-Id: I051ad3af9ac645fb8585219c48210df424a27807 Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
2021-11-23Mali Valhall Android DDK r34p0-00dev1Jesse Hall
Provenance: 046d23c969 (collaborate/google/android/v_r34p0-00dev1) VX504X08X-BU-00000-r34p0-00dev1 - Valhall Android DDK VX504X08X-SW-99006-r34p0-00dev1 - Valhall Android Renderscript AOSP parts Documentation from VX504X08X-BU-00000 omitted. Signed-off-by: Jesse Hall <jessehall@google.com> Change-Id: I4ebbb3a3af709bd39f883eed3b35bf4657a95797
2021-10-12kbase: Merge r32p1 beta 3 and 4 DDKSean Callanan
Bug: 199213963 Test: boot, suspend/resume, camera Change-Id: I9af05f055b08f2ee63928e6e74c128d028b00475
2021-10-07Merge "Merge android12-gs-pixel-5.10-sc into android13-gs-pixel-5.10" into ↵TreeHugger Robot
android13-gs-pixel-5.10
2021-10-05Merge "Merge android12-gs-pixel-5.10-sc into android13-gs-pixel-5.10" into ↵TreeHugger Robot
android13-gs-pixel-5.10
2021-09-09Merge r32p1-beta4 from upstream into android-gs-pixel-5.10Sidath Senanayake
This commit updates the Mali KMD to version r32p1-beta4 from commit bbbb1cf6bb211bb2094dd66656966277c326867f Bug: 191976359 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I6f18cbf8a48bf7ca4bccdaf08ce5e97586fff793
2021-09-09Mali Valhall DDK r32p1 BETA 4 KMDSidath Senanayake
Provenance: 0767a19d2 (collaborate/google/android/v_r32p1-00bet0) VX504X08X-BU-00000-r32p1-00bet4 - Valhall Android DDK VX504X08X-BU-60000-r32p1-00bet4 - Valhall Android Document Bundle VX504X08X-DC-11001-r32p1-00bet4 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r32p1-00bet4 - Valhall Android Renderscript AOSP parts Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I05e6c40ff66850114abc89c47cb838f5347f2862
2021-09-03Kleaf: add GPU kernel modules for cloudripperYifan Hong
Bug: 192617687 Test: builds Change-Id: I6f2a6b00db250a13b2b925ac30caf65f4a8c400c
2021-07-21Merge r32p1-beta2 from upstream into android-gs-pixel-5.10Sidath Senanayake
This commit updates the Mali KMD to version r32p1-beta2 from commit 52c5bf56aa5f18f0e0158998b8ac23bfc4cccad6 Bug: 186092835 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ie68303c73624067234aeb8756ad0835115380968
2021-07-19Mali Valhall DDK r32p1 BETA 2 KMDSidath Senanayake
Provenance: 83a91db27 (collaborate/google/android/v_r32p1-00bet0) VX504X08X-BU-00000-r32p1-00bet2 - Valhall Android DDK VX504X08X-BU-60000-r32p1-00bet2 - Valhall Android Document Bundle VX504X08X-DC-11001-r32p1-00bet2 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r32p1-00bet2 - Valhall Android Renderscript AOSP parts Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ib171e2ed076c1f60b38f4cc9d99848489d4d1459
2021-07-12Merge r32p1-beta from upstream into android-gs-pixel-5.10Sidath Senanayake
This commit updates the Mali KMD to version r32p1-beta from commit 2bfaaa5f53c45ab7b4f6daba20e92ef6d16ab53b Bug: 190388367 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ia2fa310b12eb95b0f3013c69ca821909d3fbf125
2021-07-12Merge r31p0 from upstream into android-gs-pixel-5.10Sidath Senanayake
This commit updates the Mali KMD to version r31p0 from commit fca8613cfcf585bf9113dca96a05daea9fd89794 Bug: 185900681 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I3c814b6145b10beee3d0fecedb74a6225a09a858
2021-06-17Mali Valhall DDK r32p1 BETA KMDSidath Senanayake
Provenance: 59f633569 (collaborate/google/android/v_r32p1-00bet0) VX504X08X-BU-00000-r32p1-00bet0 - Valhall Android DDK VX504X08X-BU-60000-r32p1-00bet0 - Valhall Android Document Bundle VX504X08X-DC-11001-r32p1-00bet0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r32p1-00bet0 - Valhall Android Renderscript AOSP parts Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I6c9fc6e1e9f2e58bc804eb79582ad7afaafdef1b