summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hal_gp10b.c4
-rw-r--r--drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
index 825d11e5..dd413c5a 100644
--- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
@@ -181,7 +181,9 @@ int gp10b_get_litter_value(struct gk20a *g, int value)
181 case GPU_LIT_DMA_COPY_CLASS: 181 case GPU_LIT_DMA_COPY_CLASS:
182 ret = PASCAL_DMA_COPY_A; 182 ret = PASCAL_DMA_COPY_A;
183 break; 183 break;
184 184 case GPU_LIT_GPC_PRIV_STRIDE:
185 ret = proj_gpc_priv_stride_v();
186 break;
185 default: 187 default:
186 nvgpu_err(g, "Missing definition %d", value); 188 nvgpu_err(g, "Missing definition %d", value);
187 BUG(); 189 BUG();
diff --git a/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c b/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c
index e7777871..0fac76f2 100644
--- a/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c
@@ -145,7 +145,7 @@ void gp10b_priv_ring_isr(struct gk20a *g)
145 } 145 }
146 146
147 if (status1) { 147 if (status1) {
148 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_STRIDE); 148 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_PRIV_STRIDE);
149 for (gpc = 0; gpc < g->gr.gpc_count; gpc++) { 149 for (gpc = 0; gpc < g->gr.gpc_count; gpc++) {
150 offset = gpc * gpc_stride; 150 offset = gpc * gpc_stride;
151 if (status1 & BIT(gpc)) { 151 if (status1 & BIT(gpc)) {