diff options
author | Sidath Senanayake <sidaths@google.com> | 2021-04-14 19:14:30 +0100 |
---|---|---|
committer | Sidath Senanayake <sidaths@google.com> | 2021-04-14 19:53:59 +0100 |
commit | 8037b534570814775d79aeddd06b76e5ee941f59 (patch) | |
tree | bd03fb25466475adb31333ff487350e1bd352fa1 /mali_kbase/mali_kbase_pm.h | |
parent | 5ddb2927918bdf131080bc488eb1fb455d1cdfb7 (diff) | |
download | gpu-8037b534570814775d79aeddd06b76e5ee941f59.tar.gz |
Mali Valhall DDK r30p0 KMD
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
Diffstat (limited to 'mali_kbase/mali_kbase_pm.h')
-rw-r--r-- | mali_kbase/mali_kbase_pm.h | 42 |
1 files changed, 9 insertions, 33 deletions
diff --git a/mali_kbase/mali_kbase_pm.h b/mali_kbase/mali_kbase_pm.h index 8cc6625..f7340dd 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. |