mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: unit: fix page_table_faults.init test
Bug fix in nvgpu_aperture_mask_raw function hits BUG() due to invalid aperture type. This patch resolves the issue by initializing mem_wr_mem and mem_rd_mem aperture value to APERTURE_SYSMEM type. JIRA NVGPU-2933 Change-Id: Ib4879697781a1b8d73e9428299d489aa5228c9a0 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2035197 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Nicolas Benech <nbenech@nvidia.com> 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
bc2ee54301
commit
300f734f9f
@@ -190,6 +190,11 @@ static int init_mm(struct unit_module *m, struct gk20a *g)
|
||||
unit_return_fail(m, "'bar2' nvgpu_vm_init failed\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* This initialization will make sure that correct aperture mask
|
||||
* is returned */
|
||||
g->mm.mmu_wr_mem.aperture = APERTURE_SYSMEM;
|
||||
g->mm.mmu_rd_mem.aperture = APERTURE_SYSMEM;
|
||||
|
||||
/* Init MM H/W */
|
||||
err = g->ops.mm.init_mm_setup_hw(g);
|
||||
|
||||
Reference in New Issue
Block a user