[Bug 215436] admgpu: suspend and resuming from suspend don't work
bugzilla-daemon at bugzilla.kernel.org
bugzilla-daemon at bugzilla.kernel.org
Mon Jan 3 10:20:53 UTC 2022
https://bugzilla.kernel.org/show_bug.cgi?id=215436
--- Comment #13 from spasswolf at web.de ---
I added a some dev_info calls:
static int amdgpu_pmops_suspend(struct device *dev)
{
struct drm_device *drm_dev = dev_get_drvdata(dev);
struct amdgpu_device *adev = drm_to_adev(drm_dev);
int r;
if (amdgpu_acpi_is_s0ix_active(adev))
adev->in_s0ix = true;
adev->in_s3 = true;
r = amdgpu_device_suspend(drm_dev, true);
dev_info(adev->dev, "amdgpu_device_suspend(...) = %d\n", r);
adev->in_s3 = false;
if (r)
return r;
dev_info(adev->dev, "adev->in_s0ix = %d\n", adev->in_s0ix);
if (!adev->in_s0ix)
r = amdgpu_asic_reset(adev);
return r;
}
which gives
Jan 3 11:13:40 lisa kernel: [ 38.792335] amdgpu 0000:08:00.0: amdgpu:
amdgpu_device_suspend(...) = 0
Jan 3 11:13:40 lisa kernel: [ 38.792341] amdgpu 0000:08:00.0: amdgpu:
adev->in_s0ix = 1
So the gpu is not actually reset ...
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the dri-devel
mailing list