summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-11-13 06:30:52 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:02 -0500
commit7918de1c1b05ae126f830588de1cac533ef1c0cf (patch)
treee2fa71e20e864f8465aff292f9f15777a13c9ce2 /drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h
parent68ad020887e93c2eb7f1bdf4fc83ec747397033a (diff)
gpu: nvgpu: gp10b: Implement L2 query
Bug 1567274 Change-Id: I0b8eaebc0949e70f6d8bfbb101048a3d95bec5e3 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/602858 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h
index 45bb1d42..32683dc2 100644
--- a/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h
@@ -494,4 +494,16 @@ static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void)
494{ 494{
495 return 0x1; 495 return 0x1;
496} 496}
497static inline u32 ltc_ltc0_lts0_tstg_info_1_r(void)
498{
499 return 0x0014058c;
500}
501static inline u32 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(u32 r)
502{
503 return (r >> 0) & 0xffff;
504}
505static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r)
506{
507 return (r >> 16) & 0x1f;
508}
497#endif 509#endif