summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_pm.h
diff options
context:
space:
mode:
authorSidath Senanayake <sidaths@google.com>2021-04-20 15:26:53 +0100
committerSidath Senanayake <sidaths@google.com>2021-04-20 15:26:53 +0100
commitc83c70ba70ef485dfa4337da1a651cc86124598b (patch)
tree4cdfc1dd12e5076d7d33499accba3ba24ef49e30 /mali_kbase/mali_kbase_pm.h
parentceb3ef011c8ef7ff646f48a10188ebcb53c14cde (diff)
parent8037b534570814775d79aeddd06b76e5ee941f59 (diff)
downloadgpu-c83c70ba70ef485dfa4337da1a651cc86124598b.tar.gz
Merge r30p0 from upstream into android-gs-pixel-5.10
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
Diffstat (limited to 'mali_kbase/mali_kbase_pm.h')
-rw-r--r--mali_kbase/mali_kbase_pm.h42
1 files changed, 9 insertions, 33 deletions
diff --git a/mali_kbase/mali_kbase_pm.h b/mali_kbase/mali_kbase_pm.h
index 4960825..c880684 100644
--- a/mali_kbase/mali_kbase_pm.h
+++ b/mali_kbase/mali_kbase_pm.h
@@ -1,27 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
*
- * (C) COPYRIGHT ARM Limited. All rights reserved.
- *
- * This program is free software and is provided to you under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation, and any use by you of this program is subject to the terms
- * of such GNU licence.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, you can access it online at
- * http://www.gnu.org/licenses/gpl-2.0.html.
- *
- * SPDX-License-Identifier: GPL-2.0
- *
- *//* SPDX-License-Identifier: GPL-2.0 */
-/*
- *
- * (C) COPYRIGHT 2010-2020 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2010-2021 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -40,7 +20,6 @@
*/
/**
- * @file mali_kbase_pm.h
* Power management API definitions
*/
@@ -83,12 +62,12 @@ int kbase_pm_powerup(struct kbase_device *kbdev, unsigned int flags);
/**
* Halt the power management framework.
+ * @kbdev: The kbase device structure for the device (must be a valid pointer)
+ *
* Should ensure that no new interrupts are generated,
* but allow any currently running interrupt handlers to complete successfully.
* The GPU is forced off by the time this function returns, regardless of
* whether or not the active power policy asks for the GPU to be powered off.
- *
- * @param kbdev The kbase device structure for the device (must be a valid pointer)
*/
void kbase_pm_halt(struct kbase_device *kbdev);
@@ -178,6 +157,7 @@ void kbase_pm_context_idle(struct kbase_device *kbdev);
/**
* Suspend the GPU and prevent any further register accesses to it from Kernel
* threads.
+ * @kbdev: The kbase device structure for the device (must be a valid pointer)
*
* This is called in response to an OS suspend event, and calls into the various
* kbase components to complete the suspend.
@@ -185,21 +165,18 @@ void kbase_pm_context_idle(struct kbase_device *kbdev);
* @note the mechanisms used here rely on all user-space threads being frozen
* by the OS before we suspend. Otherwise, an IOCTL could occur that powers up
* the GPU e.g. via atom submission.
- *
- * @param kbdev The kbase device structure for the device (must be a valid pointer)
*/
void kbase_pm_suspend(struct kbase_device *kbdev);
/**
* Resume the GPU, allow register accesses to it, and resume running atoms on
* the GPU.
+ * @kbdev: The kbase device structure for the device (must be a valid pointer)
*
* This is called in response to an OS resume event, and calls into the various
* kbase components to complete the resume.
*
* Also called when using VM arbiter, when GPU access has been granted.
- *
- * @param kbdev The kbase device structure for the device (must be a valid pointer)
*/
void kbase_pm_resume(struct kbase_device *kbdev);
@@ -216,8 +193,7 @@ void kbase_pm_vsync_callback(int buffer_updated, void *data);
/**
* kbase_pm_driver_suspend() - Put GPU and driver in suspend state
- * @param kbdev The kbase device structure for the device
- * (must be a valid pointer)
+ * @kbdev: The kbase device structure for the device (must be a valid pointer)
*
* Suspend the GPU and prevent any further register accesses to it from Kernel
* threads.
@@ -236,8 +212,8 @@ void kbase_pm_driver_suspend(struct kbase_device *kbdev);
/**
* kbase_pm_driver_resume() - Put GPU and driver in resume
- * @param kbdev The kbase device structure for the device
- * (must be a valid pointer)
+ * @kbdev: The kbase device structure for the device (must be a valid pointer)
+ * @arb_gpu_start: Arbiter has notified we can use GPU
*
* Resume the GPU, allow register accesses to it, and resume running atoms on
* the GPU.