mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: gv11b: force scg slow drain tpc enable
For Pascal SCG, force slow drain tpc enable to avoid hang in graphics pipeline. Bug 2398751 Change-Id: I72276d2391f4e9d0c0d0b746f99585443453c044 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1934995 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ad6b7d419b
commit
851d4e3fa9
@@ -3088,6 +3088,12 @@ int gr_gv11b_init_fs_state(struct gk20a *g)
|
||||
g->gr.fecs_feature_override_ecc_val);
|
||||
}
|
||||
|
||||
data = gk20a_readl(g, gr_debug_0_r());
|
||||
data = set_field(data,
|
||||
gr_debug_0_scg_force_slow_drain_tpc_m(),
|
||||
gr_debug_0_scg_force_slow_drain_tpc_enabled_f());
|
||||
gk20a_writel(g, gr_debug_0_r(), data);
|
||||
|
||||
err = gr_gk20a_init_fs_state(g);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
|
||||
@@ -5672,6 +5672,22 @@ static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r)
|
||||
{
|
||||
return (r >> 16U) & 0xffffU;
|
||||
}
|
||||
static inline u32 gr_debug_0_r(void)
|
||||
{
|
||||
return 0x00400080U;
|
||||
}
|
||||
static inline u32 gr_debug_0_scg_force_slow_drain_tpc_m(void)
|
||||
{
|
||||
return 0x1U << 11U;
|
||||
}
|
||||
static inline u32 gr_debug_0_scg_force_slow_drain_tpc_enabled_f(void)
|
||||
{
|
||||
return 0x800U;
|
||||
}
|
||||
static inline u32 gr_debug_0_scg_force_slow_drain_tpc_disabled_f(void)
|
||||
{
|
||||
return 0x0U;
|
||||
}
|
||||
static inline u32 gr_debug_2_r(void)
|
||||
{
|
||||
return 0x00400088U;
|
||||
|
||||
Reference in New Issue
Block a user