summaryrefslogtreecommitdiff
path: root/mali_kbase/backend/gpu/mali_kbase_pm_policy.h
diff options
context:
space:
mode:
authorSidath Senanayake <sidaths@google.com>2018-06-15 13:03:51 +0200
committerSidath Senanayake <sidaths@google.com>2018-06-15 13:03:51 +0200
commit5574d60cda52fa08ca2cc714ae051ee2b6f850d7 (patch)
tree85a1059fc4dda0b339a3279361375b63589592c3 /mali_kbase/backend/gpu/mali_kbase_pm_policy.h
parent3fe808a3e4ba33fa6fc47255b6ec14611e8ef8de (diff)
downloadgpu-5574d60cda52fa08ca2cc714ae051ee2b6f850d7.tar.gz
Mali Bifrost DDK r13p0 KMD
Provenance: 396898012 (collaborate/EAC/b_r13p0) BX304L01B-BU-00000-r13p0-01rel0 BX304L06A-BU-00000-r13p0-01rel0 BX304X07X-BU-00000-r13p0-01rel0 Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ife2674d04e7069fa8911a308e2a5cf1926b89f13
Diffstat (limited to 'mali_kbase/backend/gpu/mali_kbase_pm_policy.h')
-rw-r--r--mali_kbase/backend/gpu/mali_kbase_pm_policy.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/mali_kbase/backend/gpu/mali_kbase_pm_policy.h b/mali_kbase/backend/gpu/mali_kbase_pm_policy.h
index 852fedd..2f15888 100644
--- a/mali_kbase/backend/gpu/mali_kbase_pm_policy.h
+++ b/mali_kbase/backend/gpu/mali_kbase_pm_policy.h
@@ -1,6 +1,6 @@
/*
*
- * (C) COPYRIGHT 2010-2015 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2010-2015, 2018 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
@@ -200,6 +200,26 @@ void kbase_pm_release_cores(struct kbase_device *kbdev,
void kbase_pm_request_l2_caches(struct kbase_device *kbdev);
/**
+ * kbase_pm_request_l2_caches_nolock - Request l2 caches, nolock version
+ *
+ * @kbdev: The kbase device structure for the device (must be a valid pointer)
+ *
+ * Request the use of l2 caches for all core groups and power up without
+ * waiting for power manager to actually power up the cores. This is done
+ * because the call to this function is done from within the atomic context
+ * and the actual l2 caches being powered up is checked at a later stage.
+ * The reference taken on l2 caches is removed when the protected mode atom
+ * is released so there is no need to make a call to a matching
+ * release_l2_caches().
+ *
+ * This function is used specifically for the case when l2 caches are
+ * to be powered up as part of the sequence for entering protected mode.
+ *
+ * This should only be used when power management is active.
+ */
+void kbase_pm_request_l2_caches_nolock(struct kbase_device *kbdev);
+
+/**
* kbase_pm_request_l2_caches_l2_is_on - Request l2 caches but don't power on
*
* @kbdev: The kbase device structure for the device (must be a valid pointer)
@@ -212,7 +232,7 @@ void kbase_pm_request_l2_caches(struct kbase_device *kbdev);
void kbase_pm_request_l2_caches_l2_is_on(struct kbase_device *kbdev);
/**
- * kbase_pm_request_l2_caches - Release l2 caches
+ * kbase_pm_release_l2_caches - Release l2 caches
*
* @kbdev: The kbase device structure for the device (must be a valid pointer)
*