[PATCH v6 03/12] drm/amdgpu: return error on suspend failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In function amdgpu_reset_xgmi_reset_on_init_suspend
if suspend call fails for an IP then abort there
and return error to caller.

A failed functionality of IP is critical and
we should not proceed.

Signed-off-by: Sunil Khatri <sunil.khatri@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
index 3e2724590dbf..70f737c52a90 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
@@ -45,6 +45,7 @@ static int amdgpu_reset_xgmi_reset_on_init_suspend(struct amdgpu_device *adev)
 		if (r) {
 			dev_err(adev->dev, "suspend of IP block <%s> failed %d",
 				adev->ip_blocks[i].version->funcs->name, r);
+			return r;
 		}
 		adev->ip_blocks[i].status.hw = false;
 	}
-- 
2.34.1




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux