Patch "drm/amd/display: fix mode scaling (RMX_.*)" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amd/display: fix mode scaling (RMX_.*)

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-display-fix-mode-scaling-rmx_.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e55cf17ab2f05bb4d9518de2a041c3a704b4b52b
Author: Hamza Mahfooz <hamza.mahfooz@xxxxxxx>
Date:   Fri Aug 18 09:11:11 2023 -0400

    drm/amd/display: fix mode scaling (RMX_.*)
    
    [ Upstream commit ea7971af7a911a7a388b4c47db2a231a6b8dcc29 ]
    
    As made mention of in commit 4a2df0d1f28e ("drm/amd/display: Fixed
    non-native modes not lighting up"), we shouldn't call
    drm_mode_set_crtcinfo() once the crtc timings have been decided. Since,
    it can cause settings to be unintentionally overwritten. So, since
    dm_state is never NULL now, we can use old_stream to determine if we
    should call drm_mode_set_crtcinfo() because we only need to set the crtc
    timing parameters for entirely new streams.
    
    Cc: Harry Wentland <harry.wentland@xxxxxxx>
    Cc: Rodrigo Siqueira <rodrigo.siqueira@xxxxxxx>
    Fixes: bd49f19039c1 ("drm/amd/display: Always set crtcinfo from create_stream_for_sink")
    Reviewed-by: Harry Wentland <harry.wentland@xxxxxxx>
    Signed-off-by: Hamza Mahfooz <hamza.mahfooz@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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 3a7e7d2ce847b..e8e238865b021 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -5990,7 +5990,7 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
 
 	if (recalculate_timing)
 		drm_mode_set_crtcinfo(&saved_mode, 0);
-	else
+	else if (!old_stream)
 		drm_mode_set_crtcinfo(&mode, 0);
 
 	/*



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux