diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hw_proj_gp106.h | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index cdac76b7..0f926be8 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -169,6 +169,12 @@ static int gp106_get_litter_value(struct gk20a *g, int value) | |||
169 | case GPU_LIT_NUM_FBPAS: | 169 | case GPU_LIT_NUM_FBPAS: |
170 | ret = proj_scal_litter_num_fbpas_v(); | 170 | ret = proj_scal_litter_num_fbpas_v(); |
171 | break; | 171 | break; |
172 | case GPU_LIT_FBPA_SHARED_BASE: | ||
173 | ret = proj_fbpa_shared_base_v(); | ||
174 | break; | ||
175 | case GPU_LIT_FBPA_BASE: | ||
176 | ret = proj_fbpa_base_v(); | ||
177 | break; | ||
172 | case GPU_LIT_FBPA_STRIDE: | 178 | case GPU_LIT_FBPA_STRIDE: |
173 | ret = proj_fbpa_stride_v(); | 179 | ret = proj_fbpa_stride_v(); |
174 | break; | 180 | break; |
diff --git a/drivers/gpu/nvgpu/gp106/hw_proj_gp106.h b/drivers/gpu/nvgpu/gp106/hw_proj_gp106.h index 0063712f..8042bcae 100644 --- a/drivers/gpu/nvgpu/gp106/hw_proj_gp106.h +++ b/drivers/gpu/nvgpu/gp106/hw_proj_gp106.h | |||
@@ -70,6 +70,14 @@ static inline u32 proj_lts_stride_v(void) | |||
70 | { | 70 | { |
71 | return 0x00000200; | 71 | return 0x00000200; |
72 | } | 72 | } |
73 | static inline u32 proj_fbpa_base_v(void) | ||
74 | { | ||
75 | return 0x00900000; | ||
76 | } | ||
77 | static inline u32 proj_fbpa_shared_base_v(void) | ||
78 | { | ||
79 | return 0x009a0000; | ||
80 | } | ||
73 | static inline u32 proj_fbpa_stride_v(void) | 81 | static inline u32 proj_fbpa_stride_v(void) |
74 | { | 82 | { |
75 | return 0x00004000; | 83 | return 0x00004000; |