diff options
author | sujeet baranwal <sbaranwal@nvidia.com> | 2014-12-22 15:35:15 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 18:06:18 -0400 |
commit | 364156cdcd706510bc37b93a3c7109b45b02d318 (patch) | |
tree | b948ec072fd5752fe5df77b810fa4a6199804b4a /drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | |
parent | d1d1fbfb60141f25cad3206f0da974b78c651e71 (diff) |
gpu: nvgpu: Pre-Population of zbc entries
The default zbc entries were never populated in zbc HW table
because the conditional flag "gr->sw_ready" was always set thus
avoided the zbc default loading function call. Now zbc default
loading would happen only during boot time in sw structure.Hw
zbc regs would be loaded from that structure every time a
railgate exit happens.
Bug 1580210
Change-Id: Ie3e40738cbc84cf724c3f3871f15b17a5c84025a
Signed-off-by: Sujeet Baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/662306
Reviewed-by: Sami Kiminki <skiminki@nvidia.com>
Tested-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | 12 |
1 files changed, 12 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 8783a0bc..e8675bea 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | |||
@@ -238,4 +238,16 @@ static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(v | |||
238 | { | 238 | { |
239 | return 0x0; | 239 | return 0x0; |
240 | } | 240 | } |
241 | static inline u32 ctxsw_prog_main_image_preemption_options_o(void) | ||
242 | { | ||
243 | return 0x00000060; | ||
244 | } | ||
245 | static inline u32 ctxsw_prog_main_image_preemption_options_control_f(u32 v) | ||
246 | { | ||
247 | return (v & 0x3) << 0; | ||
248 | } | ||
249 | static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f(void) | ||
250 | { | ||
251 | return 0x1; | ||
252 | } | ||
241 | #endif | 253 | #endif |