diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-05-23 03:18:15 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-27 14:37:09 -0400 |
commit | e7ee9c4b635b0f15e29a082adb2f7793bba59738 (patch) | |
tree | d50500edd3f36bf6700a18b975d421d24df8d544 /drivers/gpu | |
parent | 5cdf5ac0400e4c1c7e00930a347bed8d07a598fe (diff) |
gpu: nvgpu: Add device_info_data support
Added device_info_data H/W
register in Volta GPU
hw_top_gv11b.h header.
JIRA DNVGPU-26
Change-Id: I954a02df86ac7514c50ff72e71ea9b53e60c3354
Signed-off-by: Lakshmanan M <lm@nvidia.com>
Reviewed-on: http://git-master/r/1151618
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h b/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h index ef81ce9d..65ffebb0 100644 --- a/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/hw_top_gv11b.h | |||
@@ -158,4 +158,44 @@ 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_engine_type_v(void) | ||
162 | { | ||
163 | return 0x00000002; | ||
164 | } | ||
165 | static inline u32 top_device_info_entry_data_v(void) | ||
166 | { | ||
167 | return 0x00000001; | ||
168 | } | ||
169 | static inline u32 top_device_info_data_type_v(u32 r) | ||
170 | { | ||
171 | return (r >> 30) & 0x1; | ||
172 | } | ||
173 | static inline u32 top_device_info_data_type_enum2_v(void) | ||
174 | { | ||
175 | return 0x00000000; | ||
176 | } | ||
177 | static inline u32 top_device_info_data_inst_id_v(u32 r) | ||
178 | { | ||
179 | return (r >> 26) & 0xf; | ||
180 | } | ||
181 | static inline u32 top_device_info_data_pri_base_v(u32 r) | ||
182 | { | ||
183 | return (r >> 12) & 0xfff; | ||
184 | } | ||
185 | static inline u32 top_device_info_data_pri_base_align_v(void) | ||
186 | { | ||
187 | return 0x0000000c; | ||
188 | } | ||
189 | static inline u32 top_device_info_data_fault_id_enum_v(u32 r) | ||
190 | { | ||
191 | return (r >> 3) & 0x1f; | ||
192 | } | ||
193 | static inline u32 top_device_info_data_fault_id_v(u32 r) | ||
194 | { | ||
195 | return (r >> 2) & 0x1; | ||
196 | } | ||
197 | static inline u32 top_device_info_data_fault_id_valid_v(void) | ||
198 | { | ||
199 | return 0x00000001; | ||
200 | } | ||
161 | #endif | 201 | #endif |