mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: gp106: Disable MMU write violation reporting
Disable reporting of write privilege violation on FB MMU registers. Bug 1846641 Change-Id: I011385c5b06bbb2dcc8d4521236a04a8be5dd34e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1471463 Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
69d7652aaa
commit
1ffbb2996f
@@ -21,6 +21,8 @@
|
||||
|
||||
static void gp106_fb_reset(struct gk20a *g)
|
||||
{
|
||||
u32 val;
|
||||
|
||||
int retries = HW_SCRUB_TIMEOUT_MAX / HW_SCRUB_TIMEOUT_DEFAULT;
|
||||
/* wait for memory to be accessible */
|
||||
do {
|
||||
@@ -31,6 +33,10 @@ static void gp106_fb_reset(struct gk20a *g)
|
||||
}
|
||||
nvgpu_udelay(HW_SCRUB_TIMEOUT_DEFAULT);
|
||||
} while (--retries);
|
||||
|
||||
val = gk20a_readl(g, fb_mmu_priv_level_mask_r());
|
||||
val &= ~fb_mmu_priv_level_mask_write_violation_m();
|
||||
gk20a_writel(g, fb_mmu_priv_level_mask_r(), val);
|
||||
}
|
||||
|
||||
void gp106_init_fb(struct gpu_ops *gops)
|
||||
|
||||
@@ -482,6 +482,14 @@ static inline u32 fb_mmu_vpr_info_fetch_true_v(void)
|
||||
{
|
||||
return 0x00000001;
|
||||
}
|
||||
static inline u32 fb_mmu_priv_level_mask_r(void)
|
||||
{
|
||||
return 0x00100cdc;
|
||||
}
|
||||
static inline u32 fb_mmu_priv_level_mask_write_violation_m(void)
|
||||
{
|
||||
return 0x1 << 7;
|
||||
}
|
||||
static inline u32 fb_niso_flush_sysmem_addr_r(void)
|
||||
{
|
||||
return 0x00100c10;
|
||||
|
||||
Reference in New Issue
Block a user