diff options
| author | Flora Cui <Flora.Cui@amd.com> | 2016-04-25 04:06:17 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2016-04-27 12:27:10 -0400 |
| commit | afc4542105f2b5a3bc6f0f3530d7ccbc94ca90fb (patch) | |
| tree | 80b732de7b209741b54efc2ff77f8c23e0cbbaa1 /drivers/gpu | |
| parent | c8791a13d28161a1fa1138112dfe1f986a1358cf (diff) | |
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')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 5 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 5 |
2 files changed, 8 insertions, 2 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) | |||
| 910 | { | 910 | { |
| 911 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 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 | static int gmc_v7_0_sw_init(void *handle) | 919 | static int gmc_v7_0_sw_init(void *handle) |
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 02deb3229405..7a9db2c72c89 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | |||
| @@ -870,7 +870,10 @@ static int gmc_v8_0_late_init(void *handle) | |||
| 870 | { | 870 | { |
| 871 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 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 | #define mmMC_SEQ_MISC0_FIJI 0xA71 | 879 | #define mmMC_SEQ_MISC0_FIJI 0xA71 |
