DC Patches Aug 11 2025
Subsystems (3)
cover DC Patches Aug 11 2025
This DC patchset brings improvements in multiple areas. In summary, we highlight:
-Fix close and open lid may cause eDP remaining blank
-Fix frequently disabling/enabling OTG may cause incorrect configuration of OTG
Danny Wang (1):
drm/amd/display: Reset apply_eamless_boot_optimization when dpms_off
Taimur Hassan (2):
drm/amd/display: [FW Promotion] Release 0.1.22.0 drm/amd/display: Promote DC to 3.2.345
TungYu Lu (1):
drm/amd/display: Wait until OTG enable state is cleared
drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- .../amd/display/dc/optc/dcn401/dcn401_optc.c | 5 ++ .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 69 +++++++++++++++++++ 4 files changed, 76 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/4 drm/amd/display: Wait until OTG enable state is cleared
From: TungYu Lu <[email protected]>
[Why]
Customer reported an issue that OS starts and stops device multiple times during driver installation. Frequently disabling and enabling OTG may prevent OTG from being safely disabled and cause incorrect configuration upon the next enablement.
[How]
Add a wait until OTG_CURRENT_MASTER_EN_STATE is cleared as a short term solution.
--- drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.c +5 -0
@@ -226,6 +226,11 @@ bool optc401_disable_crtc(struct timing_generator *optc)REG_UPDATE (CONTROL ,VTG0_ENABLE ,0 ); +// wait until CRTC_CURRENT_MASTER_EN_STATE == 0 +REG_WAIT (OTG_CONTROL , +OTG_CURRENT_MASTER_EN_STATE , +0 ,10 ,15000 ); +/* CRTC disabled, so disable clock. */ REG_WAIT(OTG_CLOCK_CONTROL, OTG_BUSY, 0,
Signature · 1 line
2.43.0
PATCH 2/4 drm/amd/display: Reset apply_eamless_boot_optimization when dpms_off
In reply to Tom ChungFrom: Danny Wang <[email protected]>
[WHY&HOW]
The user closed the lid while the system was powering on and opened it again before the “apply_seamless_boot_optimization” was set to false, resulting in the eDP remaining blank.
Reset the “apply_seamless_boot_optimization” to false when dpms off.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +1 -1
@@ -3391,7 +3391,7 @@ static void update_seamless_boot_flags(struct dc *dc, int surface_count, struct dc_stream_state *stream) { - if (get_seamless_boot_stream_count(context) > 0 && surface_count > 0) { + if (get_seamless_boot_stream_count(context) > 0 && (surface_count > 0 || stream->dpms_off)) {/* Optimize seamless boot flag keeps clocks and watermarks high until * first flip. After first flip, optimization is required to lower * bandwidth. Important to note that it is expected UEFI will
Signature · 1 line
2.43.0
PATCH 3/4 drm/amd/display: [FW Promotion] Release 0.1.22.0
In reply to Tom ChungFrom: Taimur Hassan <[email protected]>
Add a new command for Panel Replay.
--- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +69 -0
@@ -4019,6 +4019,10 @@ enum dmub_cmd_replay_type {* Set adaptive sync sdp enabled */ DMUB_CMD__REPLAY_DISABLED_ADAPTIVE_SYNC_SDP =8 , +/** +* Set version +*/ + DMUB_CMD__REPLAY_SET_VERSION = 9,/** * Set Replay General command. */
@@ -4143,6 +4147,63 @@ struct dmub_cmd_replay_copy_settings_data {uint8_t pad[2 ]; }; + +/** +* Replay versions. +*/ +enum replay_version { +/** +* FreeSync Replay +*/ +REPLAY_VERSION_FREESYNC_REPLAY =0 , +/** +* Panel Replay +*/ +REPLAY_VERSION_PANEL_REPLAY =1 , +/** +* Replay not supported. +*/ +REPLAY_VERSION_UNSUPPORTED =0xFF , +}; + +/** +* Data passed from driver to FW in a DMUB_CMD___SET_REPLAY_VERSION command. +*/ +struct dmub_cmd_replay_set_version_data { +/** +* PSR version that FW should implement. +*/ +enum replay_version version; +/** +* PSR control version. +*/ +uint8_t cmd_version; +/** +* Panel Instance. +* Panel instance to identify which psr_state to use +* Currently the support is only for 0 or 1 +*/ +uint8_t panel_inst; +/** +* Explicit padding to 4 byte boundary. +*/ +uint8_t pad[2 ]; +}; + +/** +* Definition of a DMUB_CMD__REPLAY_SET_VERSION command. +*/ +struct dmub_rb_cmd_replay_set_version { +/** +* Command header. +*/ +struct dmub_cmd_header header; +/** +* Data passed from driver to FW in a DMUB_CMD__REPLAY_SET_VERSION command. +*/ +struct dmub_cmd_replay_set_version_data replay_set_version_data; +}; +/** * Definition of a DMUB_CMD__REPLAY_COPY_SETTINGS command. */
@@ -4506,6 +4567,10 @@ union dmub_replay_cmd_set {* Definition of DMUB_CMD__REPLAY_DISABLED_ADAPTIVE_SYNC_SDP command data. */ struct dmub_cmd_replay_disabled_adaptive_sync_sdp_data disabled_adaptive_sync_sdp_data; +/** +* Definition of DMUB_CMD__REPLAY_SET_VERSION command data. +*/ +struct dmub_cmd_replay_set_version_data version_data;/** * Definition of DMUB_CMD__REPLAY_SET_GENERAL_CMD command data. */
@@ -6265,6 +6330,10 @@ union dmub_rb_cmd {* Definition of a DMUB_CMD__IDLE_OPT_SET_DC_POWER_STATE command. */ struct dmub_rb_cmd_idle_opt_set_dc_power_state idle_opt_set_dc_power_state; +/** +* Definition of a DMUB_CMD__REPLAY_SET_VERSION command. +*/ +struct dmub_rb_cmd_replay_set_version replay_set_version;/* * Definition of a DMUB_CMD__REPLAY_COPY_SETTINGS command. */
Signature · 1 line
2.43.0
PATCH 4/4 drm/amd/display: Promote DC to 3.2.345
In reply to Tom ChungFrom: Taimur Hassan <[email protected]>
This version brings along following update:
-Fix close and open lid may cause eDP remaining blank -Fix frequently disabling/enabling OTG may cause incorrect
configuration of OTG
--- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc.h +1 -1
@@ -55,7 +55,7 @@ struct aux_payload;struct set_config_cmd_payload ;struct dmub_notification ; -#define DC_VER "3.2.344" +#define DC_VER "3.2.345"/** * MAX_SURFACES - representative of the upper bound of surfaces that can be piped to a single CRTC
Signature · 1 line
2.43.0
[Public]
Hi all,
This week this patchset was tested on 4 systems, two dGPU and two APU based, and tested across multiple display and connection types.
APU
• Single Display eDP -> 1080p 60hz, 1920x1200 165hz
• Single Display DP (SST DSC) -> 4k144hz, 4k240hz
• Multi display -> eDP + DP/HDMI/USB-C -> 1080p 60hz eDP + 4k 144hz, 4k 240hz (Includes USB-C to DP/HDMI adapters)
• Thunderbolt -> LG Ultrafine 5k
• MST DSC -> Cable Matters 101075 (DP to 3x DP) with 3x 4k60hz displays, HP Hook G2 with 2x 4k60hz displays
• USB 4 -> HP Hook G4, Lenovo Thunderbolt Dock, both with 2x 4k60hz DP and 1x 4k60hz HDMI displays
• SST PCON -> Club3D CAC-1085 + 1x 4k 144hz, FRL3, at a max resolution supported by the dongle of 4k 120hz YUV420 12bpc.
• MST PCON -> 1x 4k 144hz, FRL3, at a max resolution supported by the adapter of 4k 120hz RGB 8bpc.
DGPU
• Single Display DP (SST DSC) -> 4k144hz, 4k240hz
• Multiple Display DP -> 4k240hz + 4k144hz
• MST (Startech MST14DP123DP [DP to 3x DP] and 2x 4k 60hz displays)
• MST DSC (with Cable Matters 101075 [DP to 3x DP] with 3x 4k60hz displays)
The testing is a mix of automated and manual tests. Manual testing includes (but is not limited to)
• Changing display configurations and settings
• Video/Audio playback
• Benchmark testing
• Suspend/Resume testing
• Feature testing (Freesync, HDCP, etc.)
Automated testing includes (but is not limited to)
• Script testing (scripts to automate some of the manual checks)
• IGT testing
The testing is mainly tested on the following displays, but occasionally there are tests with other displays
• Samsung G8 Neo 4k240hz
• Samsung QN55QN95B 4k 120hz
• Acer XV322QKKV 4k144hz
• HP U27 4k Wireless 4k60hz
• LG 27UD58B 4k60hz
• LG 32UN650WA 4k60hz
• LG Ultrafine 5k 5k60hz
• AU Optronics B140HAN01.1 1080p 60hz eDP
• AU Optronics B160UAN01.J 1920x1200 165hz eDP
The patchset consists of the amd-staging-drm-next branch (Head commit -> f07b314c2a3f70a487086150ef794c22d86b5a8b-> drm/amdgpu: Add wrapper function for dpc state) with new patches added on top of it.
Tested on Ubuntu 24.04.3, on Wayland and X11, using KDE Plasma and Gnome.
Thank you,
Dan Wheeler
Sr. Technologist | AMD
SW Display
------------------------------------------------------------------------------------------------------------------
1 Commerce Valley Dr E, Thornhill, ON L3T 7X6
amd.com
-----Original Message-----
From: Tom Chung <[email protected]>
Sent: Tuesday, August 5, 2025 10:57 PM
To: [email protected]
Cc: Wentland, Harry <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Pillai, Aurabindo <[email protected]>; Li, Roman <[email protected]>; Lin, Wayne <[email protected]>; Chung, ChiaHsuan (Tom) <[email protected]>; Zuo, Jerry <[email protected]>; Wheeler, Daniel <[email protected]>; Wu, Ray <[email protected]>; LIPSKI, IVAN <[email protected]>; Hung, Alex <[email protected]>
Subject: [PATCH 0/4] DC Patches Aug 11 2025
This DC patchset brings improvements in multiple areas. In summary, we highlight:
-Fix close and open lid may cause eDP remaining blank -Fix frequently disabling/enabling OTG may cause incorrect configuration of OTG
Danny Wang (1):
drm/amd/display: Reset apply_eamless_boot_optimization when dpms_off
Taimur Hassan (2):
drm/amd/display: [FW Promotion] Release 0.1.22.0 drm/amd/display: Promote DC to 3.2.345
TungYu Lu (1):
drm/amd/display: Wait until OTG enable state is cleared
drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- .../amd/display/dc/optc/dcn401/dcn401_optc.c | 5 ++ .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 69 +++++++++++++++++++ 4 files changed, 76 insertions(+), 2 deletions(-)
--
2.43.0