AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] amdgpu_dm: also send FreeSync packets on DisplayPort connectors
@ 2025-11-12 15:18 Xaver Hugl
  2025-11-12 15:18 ` [PATCH 2/3] amdgpu_dm: also look for the AMD VSDB in CEA extensions Xaver Hugl
  2025-11-12 15:18 ` [PATCH 3/3] drm, amdgpu: add the "FreeSync HDR Mode" connector property Xaver Hugl
  0 siblings, 2 replies; 6+ messages in thread
From: Xaver Hugl @ 2025-11-12 15:18 UTC (permalink / raw)
  To: dri-devel; +Cc: amd-gfx, wayland-devel, harry.wentland, Xaver Hugl

Afaict there's no reason why it wasn't done before, and this is required
for later FreeSync 2 HDR enablement.

Signed-off-by: Xaver Hugl <xaver.hugl@kde.org>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 163780030eb1..1660169ae5aa 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -9048,7 +9048,10 @@ static void update_freesync_state_on_stream(
 
 	aconn = (struct amdgpu_dm_connector *)new_stream->dm_stream_context;
 
-	if (aconn && (aconn->as_type == FREESYNC_TYPE_PCON_IN_WHITELIST || aconn->vsdb_info.replay_mode)) {
+	if (aconn && (aconn->as_type == FREESYNC_TYPE_PCON_IN_WHITELIST ||
+		     (aconn->as_type == ADAPTIVE_SYNC_TYPE_DP &&
+			aconn->vsdb_info.amd_vsdb_version != 0) ||
+		      aconn->vsdb_info.replay_mode)) {
 		pack_sdp_v1_3 = aconn->pack_sdp_v1_3;
 
 		if (aconn->vsdb_info.amd_vsdb_version == 1)
@@ -9058,8 +9061,9 @@ static void update_freesync_state_on_stream(
 		else if (aconn->vsdb_info.amd_vsdb_version == 3)
 			packet_type = PACKET_TYPE_FS_V3;
 
-		mod_build_adaptive_sync_infopacket(new_stream, aconn->as_type, NULL,
-					&new_stream->adaptive_sync_infopacket);
+		if (aconn->as_type != ADAPTIVE_SYNC_TYPE_DP)
+			mod_build_adaptive_sync_infopacket(new_stream, aconn->as_type, NULL,
+							   &new_stream->adaptive_sync_infopacket);
 	}
 
 	mod_freesync_build_vrr_infopacket(
-- 
2.51.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-14  8:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 15:18 [PATCH 1/3] amdgpu_dm: also send FreeSync packets on DisplayPort connectors Xaver Hugl
2025-11-12 15:18 ` [PATCH 2/3] amdgpu_dm: also look for the AMD VSDB in CEA extensions Xaver Hugl
2025-11-12 15:18 ` [PATCH 3/3] drm, amdgpu: add the "FreeSync HDR Mode" connector property Xaver Hugl
2025-11-12 15:23   ` Xaver Hugl
2025-11-13  9:22   ` [PATCH 3/3] drm,amdgpu: " Pekka Paalanen
2025-11-13 14:12     ` [PATCH 3/3] drm, amdgpu: " Xaver Hugl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox