mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: gv11b: init mm ops for mmu_fault_pending
mmu fault reporting is moved from fifo* to fb* and gmmu* hw registers. JIRA GPUT19X-7 Change-Id: If2040ab661229c2e734042f2eec1592030615fee Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1315203 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
e83372e0cc
commit
e24ed1f6d7
@@ -42,6 +42,15 @@ static void gv11b_init_inst_block(struct mem_desc *inst_block,
|
||||
g->ops.mm.set_big_page_size(g, inst_block, big_page_size);
|
||||
}
|
||||
|
||||
static bool gv11b_mm_mmu_fault_pending(struct gk20a *g)
|
||||
{
|
||||
if (gk20a_readl(g, fb_niso_intr_r()) &
|
||||
(fb_niso_intr_mmu_nonreplayable_fault_notify_pending_f() |
|
||||
fb_niso_intr_mmu_nonreplayable_fault_overflow_pending_f()))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void gv11b_init_mm(struct gpu_ops *gops)
|
||||
{
|
||||
@@ -50,4 +59,5 @@ void gv11b_init_mm(struct gpu_ops *gops)
|
||||
gops->mm.is_bar1_supported = gv11b_mm_is_bar1_supported;
|
||||
gops->mm.init_inst_block = gv11b_init_inst_block;
|
||||
gops->mm.init_mm_setup_hw = gk20a_init_mm_setup_hw;
|
||||
gops->mm.mmu_fault_pending = gv11b_mm_mmu_fault_pending;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user