Re: [PATCH 6.1.y 01/10] drm/amd/display: Handle virtual hardware detect

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

 



On Mon, Aug 07, 2023 at 10:20:46AM +0800, tiancyin wrote:
> From: Rodrigo Siqueira <Rodrigo.Siqueira@xxxxxxx>
> 
> If virtual hardware is detected, there is no reason to run the full
> dc_commit_streams process, and DC can return true immediately.
> 
> Reviewed-by: Harry Wentland <harry.wentland@xxxxxxx>
> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@xxxxxxx>
> Co-developed-by: Aurabindo Pillai <aurabindo.pillai@xxxxxxx>
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@xxxxxxx>
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/display/dc/core/dc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
> index 8f9c60ed6f8b..9b7ddd0e10a5 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
> @@ -1942,6 +1942,9 @@ enum dc_status dc_commit_streams(struct dc *dc,
>  	struct pipe_ctx *pipe;
>  	bool handle_exit_odm2to1 = false;
>  
> +	if (dc->ctx->dce_environment == DCE_ENV_VIRTUAL_HW)
> +		return res;
> +
>  	if (!streams_changed(dc, streams, stream_count))
>  		return res;
>  
> -- 
> 2.34.1
> 

For this whole series:

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

Please fix up and resend.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux