mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: Move gv11b MMU fault handling to HAL
Move the gv11b MMU fault handling code into a new mm.mmu_fault HAL. Also move the existing gmmu_mmu_fault HAL code into this HAL as they are basically the same logical entity. JIRA NVGPU-2042 JIRA NVGPU-1313 Change-Id: I41d3e180c762f191d4de3237e9052bdc456f9e4c Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2109693 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
cfb4ff0bfb
commit
c053bc0226
@@ -30,6 +30,7 @@
|
||||
#include "hal/mm/gmmu/gmmu_gm20b.h"
|
||||
#include "hal/mm/gmmu/gmmu_gp10b.h"
|
||||
#include "hal/mm/gmmu/gmmu_gv11b.h"
|
||||
#include "hal/mm/mmu_fault/mmu_fault_gv11b.h"
|
||||
#include "hal/mc/mc_gm20b.h"
|
||||
#include "hal/mc/mc_gp10b.h"
|
||||
#include "hal/mc/mc_gv11b.h"
|
||||
@@ -175,8 +176,6 @@
|
||||
#include "common/vbios/bios_sw_gp106.h"
|
||||
#include "common/vbios/bios_sw_tu104.h"
|
||||
|
||||
#include "gv11b/mm_gv11b.h"
|
||||
|
||||
#include "tu104/mm_tu104.h"
|
||||
#include "hal/fbpa/fbpa_tu104.h"
|
||||
#include "hal_tu104.h"
|
||||
@@ -1018,13 +1017,13 @@ static const struct gpu_ops tu104_ops = {
|
||||
.init_inst_block = gv11b_mm_init_inst_block,
|
||||
.init_bar2_vm = gp10b_mm_init_bar2_vm,
|
||||
.remove_bar2_vm = gp10b_mm_remove_bar2_vm,
|
||||
.fault_info_mem_destroy = gv11b_mm_fault_info_mem_destroy,
|
||||
.mmu_fault_disable_hw = gv11b_mm_mmu_fault_disable_hw,
|
||||
.get_flush_retries = tu104_mm_get_flush_retries,
|
||||
.bar1_map_userd = NULL,
|
||||
.mmu_fault = {
|
||||
.setup_sw = gv11b_mm_mmu_fault_setup_sw,
|
||||
.setup_hw = gv11b_mm_mmu_fault_setup_hw,
|
||||
.info_mem_destroy = gv11b_mm_mmu_fault_info_mem_destroy,
|
||||
.disable_hw = gv11b_mm_mmu_fault_disable_hw,
|
||||
},
|
||||
.cache = {
|
||||
.fb_flush = gk20a_mm_fb_flush,
|
||||
|
||||
Reference in New Issue
Block a user