Skip to content

Commit caa068c

Browse files
committed
Merge tag 'amd-drm-fixes-6.2-2023-02-15' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-6.2-2023-02-15: amdgpu: - Fix GC11.x suspend warning - Fix display warning Signed-off-by: Dave Airlie <[email protected]> From: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents ceaa837 + 2a00299 commit caa068c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4268,6 +4268,9 @@ int amdgpu_device_resume(struct drm_device *dev, bool fbcon)
42684268
}
42694269
adev->in_suspend = false;
42704270

4271+
if (adev->enable_mes)
4272+
amdgpu_mes_self_test(adev);
4273+
42714274
if (amdgpu_acpi_smart_shift_update(dev, AMDGPU_SS_DEV_D0))
42724275
DRM_WARN("smart shift update failed\n");
42734276

drivers/gpu/drm/amd/amdgpu/mes_v11_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ static int mes_v11_0_late_init(void *handle)
13441344
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
13451345

13461346
/* it's only intended for use in mes_self_test case, not for s0ix and reset */
1347-
if (!amdgpu_in_reset(adev) && !adev->in_s0ix &&
1347+
if (!amdgpu_in_reset(adev) && !adev->in_s0ix && !adev->in_suspend &&
13481348
(adev->ip_versions[GC_HWIP][0] != IP_VERSION(11, 0, 3)))
13491349
amdgpu_mes_self_test(adev);
13501350

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9658,7 +9658,11 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
96589658
* `dcn10_can_pipe_disable_cursor`). By now, all modified planes are in
96599659
* atomic state, so call drm helper to normalize zpos.
96609660
*/
9661-
drm_atomic_normalize_zpos(dev, state);
9661+
ret = drm_atomic_normalize_zpos(dev, state);
9662+
if (ret) {
9663+
drm_dbg(dev, "drm_atomic_normalize_zpos() failed\n");
9664+
goto fail;
9665+
}
96629666

96639667
/* Remove exiting planes if they are modified */
96649668
for_each_oldnew_plane_in_state_reverse(state, plane, old_plane_state, new_plane_state, i) {

0 commit comments

Comments
 (0)