Patch "drm/amd/display: Don't optimize bandwidth before disabling planes" has been added to the 5.4-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: Don't optimize bandwidth before disabling planes

to the 5.4-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-don-t-optimize-bandwidth-before-disa.patch
and it can be found in the queue-5.4 subdirectory.

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



commit 8d9cbf686c58c2469a60d1ae50286a840b4e281e
Author: Aric Cyr <aric.cyr@xxxxxxx>
Date:   Fri Feb 12 18:13:59 2021 -0500

    drm/amd/display: Don't optimize bandwidth before disabling planes
    
    [ Upstream commit 6ad98e8aeb0106f453bb154933e8355849244990 ]
    
    [Why]
    There is a window of time where we optimize bandwidth due to no streams
    enabled will enable PSTATE changing but HUBPs are not disabled yet.
    This results in underflow counter increasing in some hotplug scenarios.
    
    [How]
    Set the optimize-bandwidth flag for later processing once all the HUBPs
    are properly disabled.
    
    Signed-off-by: Aric Cyr <aric.cyr@xxxxxxx>
    Acked-by: Bindu Ramamurthy <bindu.r@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/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 68d56a91d44b..092db590087c 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1961,7 +1961,8 @@ static void commit_planes_do_stream_update(struct dc *dc,
 					if (pipe_ctx->stream_res.audio && !dc->debug.az_endpoint_mute_only)
 						pipe_ctx->stream_res.audio->funcs->az_disable(pipe_ctx->stream_res.audio);
 
-					dc->hwss.optimize_bandwidth(dc, dc->current_state);
+					dc->optimized_required = true;
+
 				} else {
 					if (!dc->optimize_seamless_boot)
 						dc->hwss.prepare_bandwidth(dc, dc->current_state);



[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