drm/amd/display: pause the workload setting in dm
Subsystems (3)
PATCH 1/1 drm/amd/display: pause the workload setting in dm
From: Kenneth Feng <[email protected]>
v1:
Pause the workload setting in dm when doinn idle optimization
v2:
Rebase patch to latest kernel code base (kernel 6.16)
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +11 -0
@@ -248,6 +248,8 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)struct vblank_control_work *vblank_work = container_of(work, struct vblank_control_work, work);struct amdgpu_display_manager *dm = vblank_work->dm; +struct amdgpu_device *adev =drm_to_adev (dm->ddev); +int r;mutex_lock (&dm->dc_lock);
@@ -277,7 +279,16 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)if (dm->active_vblank_irq_count ==0 ) {dc_post_update_surfaces_to_stream (dm->dc); + + r =amdgpu_dpm_pause_power_profile (adev, true); +if (r) +dev_warn (adev->dev,"failed to set default power profile mode\n" ); +dc_allow_idle_optimizations (dm->dc, true); + + r =amdgpu_dpm_pause_power_profile (adev, false); +if (r) +dev_warn (adev->dev,"failed to restore the power profile mode\n" ); }mutex_unlock (&dm->dc_lock);
Signature · 1 line
2.34.1
Deucher, Alexander
maintainer[Public]
Quoted 13 lines
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Friday, October 17, 2025 9:04 AM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amd/display: pause the workload setting in dmFrom: Kenneth Feng <[email protected]>
v1:
Pause the workload setting in dm when doinn idle optimization
Quoted 7 lines
v2:
Rebase patch to latest kernel code base (kernel 6.16)Reviewed-by Alex Deucher <[email protected]>Signed-off-by Kenneth Feng <[email protected]>Signed-off-by Alex Deucher <[email protected]>Signed-off-by Yang Wang <[email protected]>
Is the issue with that particular monitor resolved? Do we know what caused it?
Alex
Quoted 41 lines
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +11
-0@@ -248,6 +248,8 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)struct vblank_control_work *vblank_work = container_of(work, struct vblank_control_work, work);struct amdgpu_display_manager *dm = vblank_work->dm; +struct amdgpu_device *adev =drm_to_adev (dm->ddev); +int r;mutex_lock (&dm->dc_lock);@@ -277,7 +279,16 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work) if (dm->active_vblank_irq_count == 0) {dc_post_update_surfaces_to_stream (dm->dc); + + r =amdgpu_dpm_pause_power_profile (adev, true); +if (r) +dev_warn (adev->dev,"failed to set default power profile mode\n"); +dc_allow_idle_optimizations (dm->dc, true); + + r =amdgpu_dpm_pause_power_profile (adev, false); +if (r) +dev_warn (adev->dev,"failed to restore the power profile mode\n");} mutex_unlock(&dm->dc_lock);--
2.34.1
[Public]
-----Original Message-----
From: Deucher, Alexander <[email protected]>
Sent: Friday, October 17, 2025 9:42 PM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Feng, Kenneth <[email protected]>
Subject: RE: [PATCH] drm/amd/display: pause the workload setting in dm
[Public]
Quoted 13 lines
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Friday, October 17, 2025 9:04 AM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amd/display: pause the workload setting in dmFrom: Kenneth Feng <[email protected]>
v1:
Pause the workload setting in dm when doinn idle optimization
Quoted 7 lines
v2:
Rebase patch to latest kernel code base (kernel 6.16)Reviewed-by Alex Deucher <[email protected]>Signed-off-by Kenneth Feng <[email protected]>Signed-off-by Alex Deucher <[email protected]>Signed-off-by Yang Wang <[email protected]>
Is the issue with that particular monitor resolved? Do we know what caused it?
Alex
[kevin]:
The issue has not been resolved. The DAL team believes this may be a specific issue on the 6k month and hopes to continue trying to resolve it based on this patch.
Best Regards,
Kevin
Quoted 44 lines
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +0
-0@@ -248,6 +248,8 @@ static void
amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)struct vblank_control_work *vblank_work = container_of(work, struct vblank_control_work, work); struct amdgpu_display_manager *dm = vblank_work->dm;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +13
-0+struct amdgpu_device *adev =drm_to_adev (dm->ddev); +int r;mutex_lock (&dm->dc_lock);@@ -277,7 +279,16 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work) if (dm->active_vblank_irq_count == 0) {dc_post_update_surfaces_to_stream (dm->dc); + + r =amdgpu_dpm_pause_power_profile (adev, true); +if (r) + dev_warn(adev->dev, "failed to set default power + profile mode\n"); + dc_allow_idle_optimizations(dm->dc, true); + + r =amdgpu_dpm_pause_power_profile (adev, false); +if (r) + dev_warn(adev->dev, "failed to restore the power + profilemode\n"); } mutex_unlock(&dm->dc_lock);--
2.34.1
Alex Deucher
Reviewed-byQuoted 33 lines · Yang(Kevin)
[Public]
-----Original Message-----
From: Deucher, Alexander <[email protected]>
Sent: Friday, October 17, 2025 9:42 PM
To: Wang, Yang(Kevin) <[email protected]>; [email protected]
Cc: Feng, Kenneth <[email protected]>
Subject: RE: [PATCH] drm/amd/display: pause the workload setting in dm[Public]
Quoted 13 lines
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Friday, October 17, 2025 9:04 AM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amd/display: pause the workload setting in dmFrom: Kenneth Feng <[email protected]>
v1:
Pause the workload setting in dm when doinn idle optimizationQuoted 7 lines
v2:
Rebase patch to latest kernel code base (kernel 6.16)Reviewed-by Alex Deucher <[email protected]>Signed-off-by Kenneth Feng <[email protected]>Signed-off-by Alex Deucher <[email protected]>Signed-off-by Yang Wang <[email protected]>
Quoted 6 lines
Is the issue with that particular monitor resolved? Do we know what caused it?
Alex
[kevin]:
The issue has not been resolved. The DAL team believes this may be a specific issue on the 6k month and hopes to continue trying to resolve it based on this patch.
Quoted 49 lines
Best Regards,
KevinQuoted 44 lines
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +0
-0@@ -248,6 +248,8 @@ static void
amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)struct vblank_control_work *vblank_work = container_of(work, struct vblank_control_work, work); struct amdgpu_display_manager *dm = vblank_work->dm;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +13
-0+struct amdgpu_device *adev =drm_to_adev (dm->ddev); +int r;mutex_lock (&dm->dc_lock);@@ -277,7 +279,16 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work) if (dm->active_vblank_irq_count == 0) {dc_post_update_surfaces_to_stream (dm->dc); + + r =amdgpu_dpm_pause_power_profile (adev, true); +if (r) + dev_warn(adev->dev, "failed to set default power + profile mode\n"); + dc_allow_idle_optimizations(dm->dc, true); + + r =amdgpu_dpm_pause_power_profile (adev, false); +if (r) + dev_warn(adev->dev, "failed to restore the power + profilemode\n"); } mutex_unlock(&dm->dc_lock);--
2.34.1