summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
diff options
context:
space:
mode:
authorsujeet baranwal <sbaranwal@nvidia.com>2014-08-07 20:04:18 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:10:49 -0400
commit5db7a42055eb2239b5a3a597935c27ac0b920d3d (patch)
tree778d28ffd3e32200a6a3ff978c3ad02146281234 /drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
parent42d37357f8b4d2f2433f43f951dcbc3978d9f949 (diff)
gpu: sysfs mode for allowing access to registers
Through this sysfs entry, the register space becomes accessible. This is be accessible root-only. Bug 1523403 Change-Id: Ia46f130a0cfd8324c5b675d19e7cbfba9dcb17ca Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com> Reviewed-on: http://git-master/r/454198 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
index 747566f0..3d9095a8 100644
--- a/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
@@ -214,6 +214,10 @@ static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
214{ 214{
215 return (r >> 0) & 0x3; 215 return (r >> 0) & 0x3;
216} 216}
217static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
218{
219 return 0x0;
220}
217static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) 221static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
218{ 222{
219 return 0x2; 223 return 0x2;