From 3a9d8aebd6c8f982c9df1dd47a823b8b95483e90 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 15 Jun 2018 17:58:13 -0700 Subject: gpu: nvgpu: fix fecs trace buffer indexes Index for global_ctx_buffer #8 and global_ctx_buffer_va #5 are reserved Hence move FECS_TRACE_BUFFER to 9 and FECS_TRACE_BUFFER_VA to 6 Change-Id: I165842b6a68f67a8b357109988c87d4020c7b1ed Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1751500 Reviewed-by: Seshendra Gadagottu GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'drivers/gpu') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 66d3c22e..6cf3d69b 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h @@ -79,8 +79,9 @@ enum /* global_ctx_buffer */ { ATTRIBUTE_VPR = 5, GOLDEN_CTX = 6, PRIV_ACCESS_MAP = 7, - FECS_TRACE_BUFFER = 8, - NR_GLOBAL_CTX_BUF = 9 + /* #8 is reserved */ + FECS_TRACE_BUFFER = 9, + NR_GLOBAL_CTX_BUF = 10 }; /* either ATTRIBUTE or ATTRIBUTE_VPR maps to ATTRIBUTE_VA */ @@ -90,8 +91,9 @@ enum /*global_ctx_buffer_va */ { ATTRIBUTE_VA = 2, GOLDEN_CTX_VA = 3, PRIV_ACCESS_MAP_VA = 4, - FECS_TRACE_BUFFER_VA = 5, - NR_GLOBAL_CTX_BUF_VA = 6 + /* #5 is reserved */ + FECS_TRACE_BUFFER_VA = 6, + NR_GLOBAL_CTX_BUF_VA = 7 }; enum { -- cgit v1.2.2