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