summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2018-03-26 14:42:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-28 16:32:18 -0400
commit8a64eea483d18ce603b049d5485e9f7a742da30b (patch)
treef2902bca25b7766fb159779721ecae6dddaf2b29 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent1557ee63edabe64c32226ce3f086dffbe2610c2a (diff)
gpu: nvgpu: fix priv error register reads
Current code does not compute priv error register offsets properly. This leads to invalid decoding of priv errors, and can also trigger additional priv errors. - add GPU_LIT_GPC_PRIV_STRIDE define - return proj_gpc_priv_stride for GPU_LIT_GPC_PRIV_STRIDE in hals - use GPU_LIT_GPC_PRIV_STRIDE instead of GPU_LIT_GPC_STRIDE in g->ops.priv_ring.isr() to compute priv error register offsets. Bug 2093058 Change-Id: Ia7c36ccba0441126784bb0e00452f2cf1196ef71 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1682118 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index f64a2b96..95736d30 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -141,6 +141,7 @@ enum gk20a_cbc_op {
141#define GPU_LIT_GPFIFO_CLASS 34 141#define GPU_LIT_GPFIFO_CLASS 34
142#define GPU_LIT_I2M_CLASS 35 142#define GPU_LIT_I2M_CLASS 35
143#define GPU_LIT_DMA_COPY_CLASS 36 143#define GPU_LIT_DMA_COPY_CLASS 36
144#define GPU_LIT_GPC_PRIV_STRIDE 37
144 145
145#define nvgpu_get_litter_value(g, v) (g)->ops.get_litter_value((g), v) 146#define nvgpu_get_litter_value(g, v) (g)->ops.get_litter_value((g), v)
146 147