summaryrefslogtreecommitdiff
path: root/mali_kbase/platform/pixel/pixel_gpu_slc.c
AgeCommit message (Collapse)Author
2023-10-08mali_kbase: platform: Add missing bounds checkandroid-u-qpr1-beta-2.2_r0.2android-u-qpr1-beta-2.2_r0.1android-14.0.0_r0.22android-14.0.0_r0.19android-gs-raviole-5.10-android14-qpr1-betaandroid-gs-bluejay-5.10-android14-qpr1-betaGuus Sliepen
Fix potential out-of-bounds read due to missing bounds check. Bug: 298264460 Signed-off-by: Guus Sliepen <gsliepen@google.com> Change-Id: I57b67a4177e4fe6d84a261eeb00b6b833da5486b Merged-In: I57b67a4177e4fe6d84a261eeb00b6b833da5486b
2023-09-20mali_kbase: platform: Fix integer overflowJack Diver
Fix potential integer overflow within buffer liveness ioctl. Bug: 296984851 Test: N/A Change-Id: Ib1c9ee25a89b0a39ec905f109ee2c57c502428db (cherry picked from https://partner-android-review.googlesource.com/q/commit:02e5329e2e3f4af00f51560895b5bbe87fe824ef) Signed-off-by: Jack Diver <diverj@google.com>
2023-08-22mali_kbase: platform: Batch MMU flushes after liveness updateJack Diver
Test: Boot to home, gfx-bench sweep Bug: 294167925 (cherry picked from https://partner-android-review.googlesource.com/q/commit:3143995156d9372ca6af0be57aa29dd0ec14cce1) Merged-In: I4a122fe023b43c3763884fda99cfed17048a3eb0 Change-Id: I4a122fe023b43c3763884fda99cfed17048a3eb0 Signed-off-by: Jack Diver <diverj@google.com>
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: Downgrade invalid region warning to dev_dbgJack Diver
A malicious app could cause kernel log storm by intentionally supplying invalid virtual addresses. The message is primarily intended for debugging cache performance, and is not needed in bug reports. Bug: 264990406 Test: Boot to home Test: Malicious test app Change-Id: If9292038f286456dc593ad0dcbc6e0a74e063e5c Signed-off-by: Jack Diver <diverj@google.com>
2023-03-23mali_kbase: platform: Perform partition resize and region migrationJack Diver
Implement demand based SLC partition resizing. Implement region migration into the SLC memory group. Bug: 264990406 Test: Boot to home Test: gfx-bench mh3.1 Change-Id: Ibf763652f3db133066c254b66b1316a49803e54f Signed-off-by: Jack Diver <diverj@google.com>
2023-03-23platform: Implement SLC partition accountingJack Diver
Track the per kctx usage and demand of SLC, updating in response to the buffer_liveness_ioctl. Setting SLC PBHA bits and resizing the partition are stubbed for now. Bug: 264990406 Test: Boot to home Test: Manual ioctl call Change-Id: Idfe54f7baad25b9403a69f7269b7c8fc53dedaaa 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>