Skip to contentSkip to conversation

drm/amdgpu: pass NULL pointer instead of 0

PATCH In review Nirmoy Das 2 participants 2 messages Aug 11, 2020

Subsystems (2)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 drm/amdgpu: pass NULL pointer instead of 0

Fixes c030f2e4166c3f55 (drm/amdgpu: add amdgpu_ras.c to support ras (v2))
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -1
index 2d1fad1abf7a..cd1403f83dcf 100644
@@ -1570,7 +1570,7 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)
 	}
 
 	if (amdgpu_device_should_recover_gpu(ras->adev))
-		amdgpu_device_gpu_recover(ras->adev, 0);
+		amdgpu_device_gpu_recover(ras->adev, NULL);
 	atomic_set(&ras->in_recovery, 0);
 }
 
Signature · 6 lines
2.27.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Public Use]

Thanks for your fix. The patch is:

Regards,
Guchun

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Nirmoy Das
Sent: Tuesday, August 11, 2020 10:18 PM
To: [email protected]
Cc: Das, Nirmoy <[email protected]>
Subject: [PATCH 1/1] drm/amdgpu: pass NULL pointer instead of 0

Fixes c030f2e4166c3f55 (drm/amdgpu: add amdgpu_ras.c to support ras (v2))
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -1
index 2d1fad1abf7a..cd1403f83dcf 100644
@@ -1570,7 +1570,7 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)
 	}
 
 	if (amdgpu_device_should_recover_gpu(ras->adev))
-		amdgpu_device_gpu_recover(ras->adev, 0);
+		amdgpu_device_gpu_recover(ras->adev, NULL);
 	atomic_set(&ras->in_recovery, 0);
 }
 
Signature · 10 lines
2.27.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cguchun.chen%40amd.com%7C812e856745bd4ad0ae8c08d83e00f4d1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637327521441996356&amp;sdata=ajX0MlH2uWqdV%2FIg%2FBYhzJV2GIgyi%2FGYQgXRpPyaolE%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx