rk: ion: resolve build err
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / arm / t6xx / kbase / src / common / mali_kbase_pm_always_on.h
1
2 /*
3  *
4  * (C) COPYRIGHT ARM Limited. All rights reserved.
5  *
6  * This program is free software and is provided to you under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation, and any use by you of this program is subject to the terms
9  * of such GNU licence.
10  *
11  * A copy of the licence is included with the program, and can also be obtained
12  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
13  * Boston, MA  02110-1301, USA.
14  *
15  */
16
17
18
19
20
21 /**
22  * @file mali_kbase_pm_always_on.h
23  * "Always on" power management policy
24  */
25
26 #ifndef MALI_KBASE_PM_ALWAYS_ON_H
27 #define MALI_KBASE_PM_ALWAYS_ON_H
28
29 /**
30  * The "Always on" power management policy has the following
31  * characteristics:
32  * - When KBase indicates that the GPU will be powered up, but we don't yet
33  *   know which Job Chains are to be run:
34  *  - All Shader Cores are powered up, regardless of whether or not they will
35  *    be needed later.
36  * - When KBase indicates that a set of Shader Cores are needed to submit the
37  *   currently queued Job Chains:
38  *  - All Shader Cores are kept powered, regardless of whether or not they will
39  *    be needed
40  * - When KBase indicates that the GPU need not be powered:
41  *  - The Shader Cores are kept powered, regardless of whether or not they will
42  *    be needed. The GPU itself is also kept powered, even though it is not
43  *    needed.
44  *
45  * This policy is automatically overridden during system suspend: the desired
46  * core state is ignored, and the cores are forced off regardless of what the
47  * policy requests. After resuming from suspend, new changes to the desired
48  * core state made by the policy are honored.
49  *
50  * @note:
51  * - KBase indicates the GPU will be powered up when it has a User Process that
52  *   has just started to submit Job Chains.
53  * - KBase indicates the GPU need not be powered when all the Job Chains from
54  *   User Processes have finished, and it is waiting for a User Process to
55  *   submit some more Job Chains.
56  */
57
58 /**
59  * Private structure for policy instance data.
60  *
61  * This contains data that is private to the particular power policy that is active.
62  */
63 typedef struct kbasep_pm_policy_always_on {
64         /** No state needed - just have a dummy variable here */
65         int dummy;
66 } kbasep_pm_policy_always_on;
67
68 #endif                          /* MALI_KBASE_PM_ALWAYS_ON_H */