diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-02-20 21:15:04 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:56:54 -0400 |
commit | 325e0587d9180b05d59869679fc06b0ba979d973 (patch) | |
tree | dc7e743440c5e86d72c1a2850b8b93a0cc9d0296 /drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | |
parent | 1b6372ec6b8704d6bacc6b8abf7e599f1cbc15ca (diff) |
gpu: nvgpu: Allow enabling PC sampling
Allow enabling of PC sampling hardware workaround. It is only
applicable to gm20b.
Bug 1517458
Bug 1573150
Change-Id: Iad6a3ae556489fb7ab9628637d291849d2cd98ea
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/710421
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h index ec44e9fb..cefd91e1 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | |||
@@ -110,6 +110,14 @@ static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) | |||
110 | { | 110 | { |
111 | return 0x0; | 111 | return 0x0; |
112 | } | 112 | } |
113 | static inline u32 ctxsw_prog_main_image_pm_pc_sampling_f(u32 v) | ||
114 | { | ||
115 | return (v & 0x1) << 6; | ||
116 | } | ||
117 | static inline u32 ctxsw_prog_main_image_pm_pc_sampling_m(void) | ||
118 | { | ||
119 | return 0x1 << 6; | ||
120 | } | ||
113 | static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) | 121 | static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) |
114 | { | 122 | { |
115 | return 0x0000002c; | 123 | return 0x0000002c; |