Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: disable vm interrupts with vm_fault_stop=2

V2: disable all vm interrupts in late_init()

Signed-off-by: Flora Cui <Flora.Cui@amd.com>
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Flora Cui and committed by
Alex Deucher
afc45421 c8791a13

+8 -2
+4 -1
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
··· 910 910 { 911 911 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 912 912 913 - return amdgpu_irq_get(adev, &adev->mc.vm_fault, 0); 913 + if (amdgpu_vm_fault_stop != AMDGPU_VM_FAULT_STOP_ALWAYS) 914 + return amdgpu_irq_get(adev, &adev->mc.vm_fault, 0); 915 + else 916 + return 0; 914 917 } 915 918 916 919 static int gmc_v7_0_sw_init(void *handle)
+4 -1
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
··· 870 870 { 871 871 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 872 872 873 - return amdgpu_irq_get(adev, &adev->mc.vm_fault, 0); 873 + if (amdgpu_vm_fault_stop != AMDGPU_VM_FAULT_STOP_ALWAYS) 874 + return amdgpu_irq_get(adev, &adev->mc.vm_fault, 0); 875 + else 876 + return 0; 874 877 } 875 878 876 879 #define mmMC_SEQ_MISC0_FIJI 0xA71