summaryrefslogtreecommitdiff
path: root/mali_pixel/protected_memory_allocator.c
AgeCommit message (Collapse)Author
2023-11-22Fix kernel build warningsVamsidhar reddy Gaddam
Address kernel-doc warnings in pixel gpu components Bug: 302343291 Test: Local build Change-Id: Ia5a654f5acd1c6ee5245472792553d0d2e2d9e49 Signed-off-by: Vamsidhar reddy Gaddam <gvamsi@google.com>
2023-03-29mali-pma: Defer probing until the dma_heap is foundJörg Wagner
mali-pma requires a specific, named heap which is provided by a different .ko. To enable parallel module loading check for the heap's presence and defer the loading if not found instead of failing. Bug: 269978060 Change-Id: Iac3d9d8a6b45ff2405a4b8a26bcc86ac00778fe3
2022-03-09mali_kbase: control SSMT state along with GPU powerSean Callanan
The register state associated with secure mode configuration is erased at GPU suspend. Since it is not persistent, this patch removes the one-time configuration at system boot and instead adds an explicit clear and set of the register state (via SMC calls) to GPU suspend/resume. Bug: 216746477 Test: Face Auth before and after suspend, with disabled HW overlays Test: System stability test Signed-off-by: Sean Callanan <spyffe@google.com> Change-Id: I458a0374b8c20bf3ac125517ff431191b4ab05cf
2022-02-08Mali PMA: Check for NULL slab when deallocating.Erik Staats
Bug: 216077469 Test: Verified Cheetah boots. Change-Id: I840fa349af3a2af4812c087cd6beb5874460d5a7
2021-12-15Mali protected memory allocator: Use slab allocation.Erik Staats
Since DMA buffers have minimum allocation sizes, using slab allocation wastes less DMA buffer memory. Bug: 194627754 Test: Verified that a GPU protected memory test can pass. It sometimes fails with a GPU fault. Test: See details in testing done comment in https://partner-android-review.googlesource.com/2115313 . Change-Id: I705b7f6d41f534fd4e16e9b70b72dd36e06b31d2
2021-11-30Implement Mali Pixel protected memory allocation.Erik Staats
Bug: 194627754 Test: Verified that a GPU protected memory test can pass. It sometimes fails with a GPU fault. Test: See details in testing done comment in https://partner-android-review.googlesource.com/2102797 . Change-Id: I0723b94a68024c8977167a49b735d2ce1e3b11bc
2021-10-08Add stubbed protected memory allocator driver.Erik Staats
Bug: 194627754 Test: Verified that device boots fully and stubbed protected memory allocated driver is not available. Test: Added protected memory allocator driver to the device tree and validated that it's probed but not ready. Test: Test: See details in testing done comment in https://partner-android-review.googlesource.com/2064216 . Change-Id: I772360bb68d3429267efa567f1958041fb0a41fe