summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/pmu_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_api.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_api.h137
1 files changed, 0 insertions, 137 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_api.h b/drivers/gpu/nvgpu/gk20a/pmu_api.h
index 6284f2f9..4d249524 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_api.h
+++ b/drivers/gpu/nvgpu/gk20a/pmu_api.h
@@ -17,143 +17,6 @@
17#include <nvgpu/flcnif_cmn.h> 17#include <nvgpu/flcnif_cmn.h>
18#include "pmuif/gpmuif_pg_rppg.h" 18#include "pmuif/gpmuif_pg_rppg.h"
19 19
20/*---------------------------------------------------------*/
21
22/*perfmon task defines*/
23enum pmu_perfmon_cmd_start_fields {
24 COUNTER_ALLOC
25};
26
27enum {
28 PMU_PERFMON_CMD_ID_START = 0,
29 PMU_PERFMON_CMD_ID_STOP = 1,
30 PMU_PERFMON_CMD_ID_INIT = 2
31};
32
33struct pmu_perfmon_cmd_start_v3 {
34 u8 cmd_type;
35 u8 group_id;
36 u8 state_id;
37 u8 flags;
38 struct pmu_allocation_v3 counter_alloc;
39};
40
41struct pmu_perfmon_cmd_start_v2 {
42 u8 cmd_type;
43 u8 group_id;
44 u8 state_id;
45 u8 flags;
46 struct pmu_allocation_v2 counter_alloc;
47};
48
49struct pmu_perfmon_cmd_start_v1 {
50 u8 cmd_type;
51 u8 group_id;
52 u8 state_id;
53 u8 flags;
54 struct pmu_allocation_v1 counter_alloc;
55};
56
57struct pmu_perfmon_cmd_start_v0 {
58 u8 cmd_type;
59 u8 group_id;
60 u8 state_id;
61 u8 flags;
62 struct pmu_allocation_v0 counter_alloc;
63};
64
65struct pmu_perfmon_cmd_stop {
66 u8 cmd_type;
67};
68
69struct pmu_perfmon_cmd_init_v3 {
70 u8 cmd_type;
71 u8 to_decrease_count;
72 u8 base_counter_id;
73 u32 sample_period_us;
74 struct pmu_allocation_v3 counter_alloc;
75 u8 num_counters;
76 u8 samples_in_moving_avg;
77 u16 sample_buffer;
78};
79
80struct pmu_perfmon_cmd_init_v2 {
81 u8 cmd_type;
82 u8 to_decrease_count;
83 u8 base_counter_id;
84 u32 sample_period_us;
85 struct pmu_allocation_v2 counter_alloc;
86 u8 num_counters;
87 u8 samples_in_moving_avg;
88 u16 sample_buffer;
89};
90
91struct pmu_perfmon_cmd_init_v1 {
92 u8 cmd_type;
93 u8 to_decrease_count;
94 u8 base_counter_id;
95 u32 sample_period_us;
96 struct pmu_allocation_v1 counter_alloc;
97 u8 num_counters;
98 u8 samples_in_moving_avg;
99 u16 sample_buffer;
100};
101
102struct pmu_perfmon_cmd_init_v0 {
103 u8 cmd_type;
104 u8 to_decrease_count;
105 u8 base_counter_id;
106 u32 sample_period_us;
107 struct pmu_allocation_v0 counter_alloc;
108 u8 num_counters;
109 u8 samples_in_moving_avg;
110 u16 sample_buffer;
111};
112
113struct pmu_perfmon_cmd {
114 union {
115 u8 cmd_type;
116 struct pmu_perfmon_cmd_start_v0 start_v0;
117 struct pmu_perfmon_cmd_start_v1 start_v1;
118 struct pmu_perfmon_cmd_start_v2 start_v2;
119 struct pmu_perfmon_cmd_start_v3 start_v3;
120 struct pmu_perfmon_cmd_stop stop;
121 struct pmu_perfmon_cmd_init_v0 init_v0;
122 struct pmu_perfmon_cmd_init_v1 init_v1;
123 struct pmu_perfmon_cmd_init_v2 init_v2;
124 struct pmu_perfmon_cmd_init_v3 init_v3;
125 };
126};
127
128struct pmu_zbc_cmd {
129 u8 cmd_type;
130 u8 pad;
131 u16 entry_mask;
132};
133
134/* PERFMON MSG */
135enum {
136 PMU_PERFMON_MSG_ID_INCREASE_EVENT = 0,
137 PMU_PERFMON_MSG_ID_DECREASE_EVENT = 1,
138 PMU_PERFMON_MSG_ID_INIT_EVENT = 2,
139 PMU_PERFMON_MSG_ID_ACK = 3
140};
141
142struct pmu_perfmon_msg_generic {
143 u8 msg_type;
144 u8 state_id;
145 u8 group_id;
146 u8 data;
147};
148
149struct pmu_perfmon_msg {
150 union {
151 u8 msg_type;
152 struct pmu_perfmon_msg_generic gen;
153 };
154};
155
156/*---------------------------------------------------------*/
157/* ACR Commands/Message structures */ 20/* ACR Commands/Message structures */
158 21
159enum { 22enum {