Skip to content

Commit 988b1d2

Browse files
Fangzhi Zuoalexdeucher
authored andcommitted
Revert "drm/amd/display: pause the workload setting in dm"
This reverts commit 50f29ea. Reason for revert: cause corruption on Dell U3224KB DP2 display. Signed-off-by: Fangzhi Zuo <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0ef2803 commit 988b1d2

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)
246246
struct vblank_control_work *vblank_work =
247247
container_of(work, struct vblank_control_work, work);
248248
struct amdgpu_display_manager *dm = vblank_work->dm;
249-
struct amdgpu_device *adev = drm_to_adev(dm->ddev);
250-
int r;
251249

252250
mutex_lock(&dm->dc_lock);
253251

@@ -275,15 +273,8 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)
275273
vblank_work->acrtc->dm_irq_params.allow_sr_entry);
276274
}
277275

278-
if (dm->active_vblank_irq_count == 0) {
279-
r = amdgpu_dpm_pause_power_profile(adev, true);
280-
if (r)
281-
dev_warn(adev->dev, "failed to set default power profile mode\n");
276+
if (dm->active_vblank_irq_count == 0)
282277
dc_allow_idle_optimizations(dm->dc, true);
283-
r = amdgpu_dpm_pause_power_profile(adev, false);
284-
if (r)
285-
dev_warn(adev->dev, "failed to restore the power profile mode\n");
286-
}
287278

288279
mutex_unlock(&dm->dc_lock);
289280

0 commit comments

Comments
 (0)