Skip to contentSkip to conversation

drm/amdkfd: remove unnecessary warning message on gpu reset

PATCH In review Liu, Shaoyun 2 participants 2 messages Jun 26, 2019 1 message not in the archive

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

PATCH 1/1 drm/amdkfd: remove unnecessary warning message on gpu reset

In XGMI configuration, more than one asic can be reset at same time, kfd is able to handle this and no need to trigger the warning

Change-Id If339503860e86ee1dbeed294ba1c103fcce70b7b
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +0 -1
index 26ea46d..2e2f724 100644
@@ -738,7 +738,6 @@ int kgd2kfd_post_reset(struct kfd_dev *kfd)
 	if (ret)
 		return ret;
 	count = atomic_dec_return(&kfd_locked);
-	WARN_ONCE(count != 0, "KFD reset ref. error");
 
 	atomic_set(&kfd->sram_ecc_flag, 0);
 
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1561571394-16348-1-git-send-email-shaoyun.liu-5C7GfCeVMHo@public.gmane.org

Reviewed-by Andrey Grodzovsky
#2 lore raw

Andrey

Quoted 14 lines · Shaoyun

In XGMI configuration, more than one asic can be reset at same time, kfd is able to handle this and no need to trigger the warning

Change-Id If339503860e86ee1dbeed294ba1c103fcce70b7b
---
  drivers/gpu/drm/amd/amdkfd/kfd_device.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +0 -0
index 26ea46d..2e2f724 100644

drivers/gpu/drm/amd/amdkfd/kfd_device.c int kgd2kfd_post_reset(struct kfd_dev *kfd) · line 743

Quoted 7 lines
drivers/gpu/drm/amd/amdkfd/kfd_device.c +0 -1
@@ -738,7 +738,6 @@ int kgd2kfd_post_reset(struct kfd_dev *kfd)
  	if (ret)
  		return ret;
  	count = atomic_dec_return(&kfd_locked);
-	WARN_ONCE(count != 0, "KFD reset ref. error");
 
  	atomic_set(&kfd->sram_ecc_flag, 0);
 

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx