diff options
| author | Jack Xiao <[email protected]> | 2023-02-10 02:31:32 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-02-16 03:19:43 +0000 |
| commit | dc907c9db8f71e3ba5faad6038f089a70d18e71f (patch) | |
| tree | fda3a88e80f35587fe32c84f99643f3176d602e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amd/display: Add support for multiple overlay planes (diff) | |
| download | kernel-dc907c9db8f71e3ba5faad6038f089a70d18e71f.tar.gz kernel-dc907c9db8f71e3ba5faad6038f089a70d18e71f.zip | |
drm/amd/amdgpu: fix warning during suspend
Freeing memory was warned during suspend.
Move the self test out of suspend.
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2151825
Cc: [email protected]
Signed-off-by: Jack Xiao <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Feifei Xu <[email protected]>
Reviewed-and-tested-by: Evan Quan <[email protected]>
Tested-by: Jocelyn Falempe <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index b325f7039e0e..c4a4e2fe6681 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4270,6 +4270,9 @@ exit: } adev->in_suspend = false; + if (adev->enable_mes) + amdgpu_mes_self_test(adev); + if (amdgpu_acpi_smart_shift_update(dev, AMDGPU_SS_DEV_D0)) DRM_WARN("smart shift update failed\n"); |
