Skip to contentSkip to conversation

drm/amdgpu: keep irq count in amdgpu_irq_disable_all

PATCH In review Guchun Chen 2 participants 2 messages May 25, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: keep irq count in amdgpu_irq_disable_all

This can clean up all irq warnings because of unbalanced amdgpu_irq_get/put when unplugging/unbind device, and leave irq count decrease in each ip fini function.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +0 -1
index 00f2106c17b9..f90920fbd340 100644
@@ -140,7 +140,6 @@ void amdgpu_irq_disable_all(struct amdgpu_device *adev)
 				continue;
 
 			for (k = 0; k < src->num_types; ++k) {
-				atomic_set(&src->enabled_types[k], 0);
 				r = src->funcs->set(adev, src, k,
 						    AMDGPU_IRQ_STATE_DISABLE);
 				if (r)
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 25.05.23 um 11:28 schrieb Guchun Chen:

Quoted 5 lines

This can clean up all irq warnings because of unbalanced amdgpu_irq_get/put when unplugging/unbind device, and leave irq count decrease in each ip fini function.

Quoted 16 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +0 -1
index 00f2106c17b9..f90920fbd340 100644
@@ -140,7 +140,6 @@ void amdgpu_irq_disable_all(struct amdgpu_device *adev)
  				continue;
 
  			for (k = 0; k < src->num_types; ++k) {
-				atomic_set(&src->enabled_types[k], 0);
  				r = src->funcs->set(adev, src, k,
  						    AMDGPU_IRQ_STATE_DISABLE);
  				if (r)