summaryrefslogtreecommitdiff
path: root/mali_kbase/context/backend
AgeCommit message (Collapse)Author
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-05-24Make sure jobs are flushed before kbasep_platform_context_termMattias Simonsson
If kbase_release is called while jobs are in progress, the driver will start by calling kbasep_platform_context_term before waiting for jobs to finish in kbase_context_flush_jobs. When the jobs do finish, the driver will call kbasep_platform_event_work_end, which leads to issues since the platform callback has already cleaned up resources for the kbase_context. Make sure kbase_context_flush_jobs is called before kbasep_platform_context_term. Test: start/stop processes over and over Bug: 278366794 Change-Id: Iee0297f4b64a3f6b59a5df0c26e46d446257a652
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
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-07Revert "Revert "Merge r38p1 from upstream into ↵Jack Diver
partner/android13-gs-pixel-5.10-tm-qpr2"" This reverts commit 34e635317dc2a91076ac341df3867ac3bdb31ef1. Bug: 228779790 Change-Id: Ica7fbc34d4c725f36a302ae9723606dcf828c452
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-05-16Merge android13-gs-pixel-5.10-gs101 into android13-gs-pixel-5.10Robin Peng
Bug: 211546634 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: I3f37fd8274b8a03c8cb3566792aa683a62d9707d
2022-05-06mali_kbase: use RT_MUTEX for some job submission and context locksandroid-t-beta-4_r0.6android-t-beta-4_r0.5android-t-beta-4_r0.4android-t-beta-3_r0.4android-t-beta-3.3_r0.4android-t-beta-3.2_r0.4android-13.0.0_r0.5android-13.0.0_r0.44android-13.0.0_r0.43android-13.0.0_r0.4android-13.0.0_r0.20android-13.0.0_r0.19android-13.0.0_r0.15android-13.0.0_r0.14android-gs-raviole-5.10-t-beta-4android-gs-raviole-5.10-t-beta-3android-gs-raviole-5.10-android13android-gs-bluejay-5.10-t-beta-4android-gs-bluejay-5.10-android13Devika Krishnadas
Bug: 230692528 Test: smoke test Signed-off-by: Devika Krishnadas <kdevika@google.com> Change-Id: I7d5da6c0a55ccfc6e789ecb74f0af71aac9d5be3
2022-05-06mali_kbase: Ensure GPU L2 is up prior to MMU cmdJack Diver
Fix races where the L2 has not finished powering up before we issue an MMU command. It's possible that the power up be deferred until after a scheduled power off, and in that case l2_desired may transiently be false. Replacing the current wait, with one that explicitly waits for L2 power up ensures that we don't issue a command for L2 power up has completed. Bug: 229473975 Signed-off-by: Jack Diver <diverj@google.com> Change-Id: Ic93eaf5f5cb520e0d34a5d3df8df9be05c477260
2022-05-05Revert "mali_kbase: Ensure GPU L2 is up prior to MMU cmd"Howie Chang
This reverts commit fbcc5a4cc48796702f05ec311e9150c559a47c4e. Reason for revert: b/231509259 Bug: 231509259 Change-Id: I102c03b1051dae20ea916e95a44ba55fd0a446b7 Signed-off-by: Howie Chang <howiechang@google.com>
2022-05-03mali_kbase: Ensure GPU L2 is up prior to MMU cmdJack Diver
Fix races where the L2 has not finished powering up before we issue an MMU command. It's possible that the power up be deferred until after a scheduled power off, and in that case l2_desired may transiently be false. Replacing the current wait, with one that explicitly waits for L2 power up ensures that we don't issue a command for L2 power up has completed. Bug: 229473975 Signed-off-by: Jack Diver <diverj@google.com> Change-Id: Iab0337e23cef3bf10122bf669051c7e1062c7060
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-10mali_kbase: Remove debug L2 power up waitJack Diver
Waiting for L2 power up during context destroy was added during stability debugging. This wait only make sense for suspend/resume, but does not work in the context of device power down as L2 will never be re-powered. Remove some dump_stacks used for debugging too Bug: 219539684 Test: Reboot device, and observe no power transition timeout Change-Id: I064ce01af9c2086b6922d52d2eeabd986b72cab0 Signed-off-by: Jack Diver <diverj@google.com>
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-09mali_kbase: WA to avoid L2 power transitions during MMU commandsdiverj
* Wait for L2/MMU power transitions to complete before issuing MMU commands * Add stack traces to AS_ACTIVE bit stuck errors Bug: 205279486 Change-Id: I38d07e3c67b37ec054e3a0580daffef89ab52c5d Signed-off-by: diverj <diverj@google.com>
2021-12-09Revert "mali_kbase: Experimental Arm patch to fix stuck MMU command"diverj
This reverts commit f4e2faf29f9174e8ee0eea4f3b0e65f7366a4cfe. Change-Id: Icc0a608a9c041530d2b14087e97b0591ff330b2b
2021-12-01mali_kbase: Experimental Arm patch to fix stuck MMU commanddiverj
* Wait to avoid L2 power transitions during MMU commands * Add dump_stack for AS_ACTIVE bit stuck error Bug: 205301015 Signed-off-by: diverj <diverj@google.com> Change-Id: I550cb492274760087423742d91592f2f5b49b0ac
2021-10-15mali_kbase: platform: Implement per UID time-in-state tracking for CSFdiverj
enabled GPUs * Added optional callbacks for kbase_queue_group running and stopped events. * The callbacks are executed within update_csg_slot_status where the driver view of the csg slot is updated. * An additional call to work_end is included directly in the interrupt handler to reduce the timing inaccuracy. * Modified the existing job manger atom start/end functions as well as the dvfs_level_change, renamed them as work_start/end to be more generic, and used ifdef's to tweak the implementations to use CSF stats and constants. Bug: 198405284 Signed-off-by: diverj <diverj@google.com> Change-Id: I506b4fb66955b111e705f9a57199864db110e6e0
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-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
2021-04-20Merge r30p0 from upstream into android-gs-pixel-5.10Sidath Senanayake
This commit updates the Mali KMD to version r30p0 from commit 8037b534570814775d79aeddd06b76e5ee941f59 Bug: 180379272 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I703f1da43913fab5cb5ac704630418b72655dc41
2021-04-14Mali Valhall DDK r30p0 KMDSidath Senanayake
Provenance 4a09e9e58 (collaborate/EAC/v_r30p0) VX504X08X-BU-00000-r30p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r30p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r30p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r30p0-01eac0 - Valhall Android Renderscript AOSP parts Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ie30d6ece7ebe221c8e4c736af05ad05dcfc15127
2021-02-10Merge r29p0 from upstream into android-gs-pixel-mainlineSidath Senanayake
This commit updates the Mali KMD to version r29p0 from commit 9748305a584b9f1f7705303ce6e33a5e8b923e60 Bug: 178778804 Change-Id: Ie20425d4ea5c1529e299ca9a0454a56afb0fba95
2021-01-29Mali Valhall DDK r29p0 KMDSidath Senanayake
Provenance: afaca8da1 (collaborate/EAC/v_r29p0) VX504X08X-BU-00000-r29p0-01eac0 - Valhall Android DDK VX504X08X-BU-60000-r29p0-01eac0 - Valhall Android Document Bundle VX504X08X-DC-11001-r29p0-01eac0 - Valhall Android DDK Software Errata VX504X08X-SW-99006-r29p0-01eac0 - Valhall Android Renderscript AOSP parts Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ie0904c9223b7ec9311b848a52d3159ac2b07530e
2021-01-29Mali Valhall DDK r28p0 KMDSidath Senanayake
Provenance: f61f43e2c (collaborate/EAC/v_r28p0) VX504X08X-BU-00000-r28p0-01eac0 - Android DDK VX504X08X-SW-99006-r28p0-01eac0 - Android Renderscript AOSP parts VX504X08X-BU-60000-r28p0-01eac0 - Android Document Bundle VX504X08X-DC-11001-r28p0-01eac0 - Valhall Android DDK Software Errata Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Iafabf59869cc06a23d69668f6ae1a152cb86b7f3
2020-12-22mali_kbase: Update platform interface with additional callbacksSidath Senanayake
Adds additional (optional) callbacks for kbase_context and kbase_jd_atom events. Integrators that implement handlers for these callbacks receive events for context initialization and termination, as well as for atom submission and completion. Bug: 171975331 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I1de49460b71a6ec36e0b9ca88dd2715b323c13f3
2020-11-25Merge r27p0 from upstream into android-gs-pixel-mainlineSidath Senanayake
This commit updates the Mali KMD to version r27p0 from commit 72f2457ff7355ff0389efe5bc9cec3365362d8c4 Bug: 171747612 Change-Id: Ida619c400a9652ebbbc871e2c973d3c78fc5de62
2020-10-27Mali Valhall DDK r27p0 KMDSidath Senanayake
Provenance: 7e6f74ec1 (collaborate/EAC/v_r27p0) VX504X08X-BU-00000-r27p0-01eac0 - Android DDK VX504X08X-SW-99006-r27p0-01eac0 - Android Renderscript AOSP parts VX504X08X-BU-60000-r27p0-01eac0 - Android Document Bundle VX504X08X-DC-11001-r27p0-01eac0 - Valhall Android DDK Software Errata Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ib59de731b034cc7e2631e35f1b0063b8f6894ecc
2020-09-22Merge r26p0 from upstream into android-gs-pixel-5.4Sidath Senanayake
This commit updates the Mali KMD to version r26p0 from commit d4ca6eb7268ee2db9deabd1745b505c6e1c162f9 Bug: 168298113 Change-Id: Ie8caf2df2ec573a1b458651fa5eb0806efb993f1
2020-09-11Mali Valhall DDK r26p0 KMDSidath Senanayake
Provenance: 009a7d86a (collaborate/EAC/v_r26p0) VX504X08X-BU-00000-r26p0-01eac0 - Android DDK VX504X08X-BU-60000-r26p0-01eac0 - Android Document Bundle Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ic3671bdc454b706b6f98a9d1a615d1886da0c3e8
2020-09-02mali_kbase: convert event and jd workqueues to per-device kthreadsSidath Senanayake
Use kthreads instead of workqueues to allow more control over mali driver scheduling. Hoist the kthreads to be per-device. Bug: 156057140 Bug: 157077800 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ic7fd80cb6be7b514fc824658bfd2e5fd090f4555
2020-04-14Mali Valhall DDK r24p0 KMDSidath Senanayake
Provenance: c5a37f014 (collaborate/EAC/v_r24p0) VX504X08X-BU-00000-r24p0-01rel0 - Android DDK VX504X08X-BU-60000-r24p0-01rel0 - Android Document Bundle Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I1536474b6a18731cd377251c6dc947811ba0c787
2020-02-27Mali Valhall DDK r23p0 KMDSidath Senanayake
Provenance: 941021020 (collaborate/EAC/v_r23p0) VX504X08X-BU-00000-r23p0-01rel0 - Android DDK VX504X08X-BU-60000-r23p0-01rel0 - Android Document Bundle Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: I0d87e7b3520751fd6f310e10e23498a468a7a68c