Patch "drm/amd/display: Fix pipe addition logic in calc_blocks_to_ungate DCN35" has been added to the 6.10-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 pipe addition logic in calc_blocks_to_ungate DCN35

to the 6.10-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-pipe-addition-logic-in-calc_bloc.patch
and it can be found in the queue-6.10 subdirectory.

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



commit 5497d8019e25152a6cb14d56d2f4c6ee1f7e17f6
Author: Nicholas Susanto <nicholas.susanto@xxxxxxx>
Date:   Tue May 7 14:01:39 2024 -0400

    drm/amd/display: Fix pipe addition logic in calc_blocks_to_ungate DCN35
    
    [ Upstream commit 3aec7a5af4d6248b7462b7d1eb597f06d35f5ee0 ]
    
    [Why]
    
    Missing check for when there is new pipe configuration but both cur_pipe
    and new_pipe are both populated causing update_state of DSC for that
    instance not being updated correctly.
    
    This causes some display mode changes to cause underflow since DSCCLK
    is still gated when the display requires DSC.
    
    [How]
    
    Added another condition in the new pipe addition branch that checks if
    there is a new pipe configuration and if it is not the same as cur_pipe.
    cur_pipe does not necessarily have to be NULL to go in this branch.
    
    Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@xxxxxxx>
    Acked-by: Roman Li <roman.li@xxxxxxx>
    Signed-off-by: Nicholas Susanto <nicholas.susanto@xxxxxxx>
    Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
index dcced89c07b3..f829ff82797e 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
@@ -1077,7 +1077,8 @@ void dcn35_calc_blocks_to_ungate(struct dc *dc, struct dc_state *context,
 			continue;
 
 		if ((!cur_pipe->plane_state && new_pipe->plane_state) ||
-			(!cur_pipe->stream && new_pipe->stream)) {
+			(!cur_pipe->stream && new_pipe->stream) ||
+			(cur_pipe->stream != new_pipe->stream && new_pipe->stream)) {
 			// New pipe addition
 			for (j = 0; j < PG_HW_PIPE_RESOURCES_NUM_ELEMENT; j++) {
 				if (j == PG_HUBP && new_pipe->plane_res.hubp)




[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