From 5db7a42055eb2239b5a3a597935c27ac0b920d3d Mon Sep 17 00:00:00 2001 From: sujeet baranwal Date: Thu, 7 Aug 2014 17:04:18 -0700 Subject: 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 Reviewed-on: http://git-master/r/454198 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h') 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) { return (r >> 0) & 0x3; } +static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void) +{ + return 0x0; +} static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) { return 0x2; -- cgit v1.2.2