projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9530273
)
drm/amdgpu: catch amdgpu_irq_add_id failure
author
Nirmoy Das
<nirmoy.das@amd.com>
Wed, 8 Jan 2020 09:32:55 +0000
(10:32 +0100)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:08 +0000
(10:18 -0500)
Do not ignore amdgpu_irq_add_id return value while registering
VMC page fault interrupt.
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
index da9765ff45d692262683f549311940d1477682c0..7dc8c068c62ad0961acac1b607c0643fe3d64c3d 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
@@
-720,6
+720,10
@@
static int gmc_v10_0_sw_init(void *handle)
r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VMC,
VMC_1_0__SRCID__VM_FAULT,
&adev->gmc.vm_fault);
+
+ if (r)
+ return r;
+
r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_UTCL2,
UTCL2_1_0__SRCID__FAULT,
&adev->gmc.vm_fault);