[PATCH] drm/amd: add dc feature mask flags for PSR allow smu and multi-display optimizations

Li, Roman Roman.Li at amd.com
Mon Apr 25 19:56:30 UTC 2022


[Public]

Reviewed-by: Roman Li <Roman.Li at amd.com>

> -----Original Message-----
> From: Zhang, Dingchen (David) <Dingchen.Zhang at amd.com>
> Sent: Monday, April 25, 2022 3:25 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Wentland, Harry <Harry.Wentland at amd.com>; Li, Sun peng (Leo)
> <Sunpeng.Li at amd.com>; Lakha, Bhawanpreet
> <Bhawanpreet.Lakha at amd.com>; Siqueira, Rodrigo
> <Rodrigo.Siqueira at amd.com>; Pillai, Aurabindo <Aurabindo.Pillai at amd.com>;
> Zhuo, Qingqing (Lillian) <Qingqing.Zhuo at amd.com>; Li, Roman
> <Roman.Li at amd.com>; Lin, Wayne <Wayne.Lin at amd.com>; Wang, Chao-kai
> (Stylon) <Stylon.Wang at amd.com>; Chiu, Solomon <Solomon.Chiu at amd.com>;
> Kotarac, Pavle <Pavle.Kotarac at amd.com>; Gutierrez, Agustin
> <Agustin.Gutierrez at amd.com>; Zuo, Jerry <Jerry.Zuo at amd.com>
> Subject: [PATCH] drm/amd: add dc feature mask flags for PSR allow smu and
> multi-display optimizations
>
> [Why]
> Allow for PSR SMU optimization and PSR multiple display optimization.
>
> [How]
> Add feature flags of PSR smu optimization and PSR multiple display
> optimiztaion, and set them during init sequence. By default, flags are disabled.
>
> Signed-off-by: David Zhang <dingchen.zhang at amd.com>
> ---
>  drivers/gpu/drm/amd/include/amd_shared.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/include/amd_shared.h
> b/drivers/gpu/drm/amd/include/amd_shared.h
> index 741dae17562a..06f21e9008c6 100644
> --- a/drivers/gpu/drm/amd/include/amd_shared.h
> +++ b/drivers/gpu/drm/amd/include/amd_shared.h
> @@ -234,6 +234,8 @@ enum DC_FEATURE_MASK {
>       DC_EDP_NO_POWER_SEQUENCING = (1 << 4), //0x10, disabled by
> default
>       DC_DISABLE_LTTPR_DP1_4A = (1 << 5), //0x20, disabled by default
>       DC_DISABLE_LTTPR_DP2_0 = (1 << 6), //0x40, disabled by default
> +     DC_PSR_ALLOW_SMU_OPT = (1 << 7), //0x80, disabled by default
> +     DC_PSR_ALLOW_MULTI_DISP_OPT = (1 << 8), //0x100, disabled by
> default
>  };
>
>  enum DC_DEBUG_MASK {
> --
> 2.25.1



More information about the amd-gfx mailing list