diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-05-23 02:50:14 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-27 14:36:52 -0400 |
commit | f3cb140a71f179ce023bac48d5b92537893214a1 (patch) | |
tree | 597639f2003949c53b0c15f0bd6c8e56be23838f /drivers/gpu/nvgpu/gm206 | |
parent | 20c65d8f4a6cca705472bbdde52bd2fce3c6e274 (diff) |
gpu: nvgpu: Add device_info_data support
Added device_info_data parsing
support for maxwell GPU series.
JIRA DNVGPU-26
Change-Id: I06dbec6056d4c26501e607c2c3d67ef468d206f4
Signed-off-by: Lakshmanan M <lm@nvidia.com>
Reviewed-on: http://git-master/r/1151602
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/hw_top_gm206.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/hw_top_gm206.h b/drivers/gpu/nvgpu/gm206/hw_top_gm206.h index 289f4411..e6ec1d27 100644 --- a/drivers/gpu/nvgpu/gm206/hw_top_gm206.h +++ b/drivers/gpu/nvgpu/gm206/hw_top_gm206.h | |||
@@ -158,6 +158,38 @@ static inline u32 top_device_info_entry_enum_v(void) | |||
158 | { | 158 | { |
159 | return 0x00000002; | 159 | return 0x00000002; |
160 | } | 160 | } |
161 | static inline u32 top_device_info_entry_data_v(void) | ||
162 | { | ||
163 | return 0x00000001; | ||
164 | } | ||
165 | static inline u32 top_device_info_data_type_v(u32 r) | ||
166 | { | ||
167 | return (r >> 30) & 0x1; | ||
168 | } | ||
169 | static inline u32 top_device_info_data_type_enum2_v(void) | ||
170 | { | ||
171 | return 0x00000000; | ||
172 | } | ||
173 | static inline u32 top_device_info_data_pri_base_v(u32 r) | ||
174 | { | ||
175 | return (r >> 12) & 0x7ff; | ||
176 | } | ||
177 | static inline u32 top_device_info_data_pri_base_align_v(void) | ||
178 | { | ||
179 | return 0x0000000c; | ||
180 | } | ||
181 | static inline u32 top_device_info_data_fault_id_enum_v(u32 r) | ||
182 | { | ||
183 | return (r >> 3) & 0x1f; | ||
184 | } | ||
185 | static inline u32 top_device_info_data_fault_id_v(u32 r) | ||
186 | { | ||
187 | return (r >> 2) & 0x1; | ||
188 | } | ||
189 | static inline u32 top_device_info_data_fault_id_valid_v(void) | ||
190 | { | ||
191 | return 0x00000001; | ||
192 | } | ||
161 | static inline u32 top_scratch1_r(void) | 193 | static inline u32 top_scratch1_r(void) |
162 | { | 194 | { |
163 | return 0x0002240c; | 195 | return 0x0002240c; |