summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
diff options
context:
space:
mode:
authorFlora Cui <Flora.Cui@amd.com>2016-04-25 16:06:17 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-04-27 12:27:10 -0400
commitafc4542105f2b5a3bc6f0f3530d7ccbc94ca90fb (patch)
tree80b732de7b209741b54efc2ff77f8c23e0cbbaa1 /drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
parentc8791a13d28161a1fa1138112dfe1f986a1358cf (diff)
downloadblackbird-obmc-linux-afc4542105f2b5a3bc6f0f3530d7ccbc94ca90fb.tar.gz
blackbird-obmc-linux-afc4542105f2b5a3bc6f0f3530d7ccbc94ca90fb.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
index 05b0353d3880..a4a2e6cc61bb 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
@@ -910,7 +910,10 @@ static int gmc_v7_0_late_init(void *handle)
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- return amdgpu_irq_get(adev, &adev->mc.vm_fault, 0);
+ if (amdgpu_vm_fault_stop != AMDGPU_VM_FAULT_STOP_ALWAYS)
+ return amdgpu_irq_get(adev, &adev->mc.vm_fault, 0);
+ else
+ return 0;
}
static int gmc_v7_0_sw_init(void *handle)
OpenPOWER on IntegriCloud