[PATCH AUTOSEL 5.10 1/7] drm/amd/display: Exit idle optimizations before HDCP execution

Pavel Machek pavel at denx.de
Tue Jun 18 09:13:30 UTC 2024


Hi!

> [WHY]
> PSP can access DCN registers during command submission and we need
> to ensure that DCN is not in PG before doing so.
> 
> [HOW]
> Add a callback to DM to lock and notify DC for idle optimization exit.
> It can't be DC directly because of a potential race condition with the
> link protection thread and the rest of DM operation.

Why is this picked for 5.10-stable?

It adds an callback, but noone is going to use it in 5.10.

Best regards,
								Pavel

> +++ b/drivers/gpu/drm/amd/display/modules/inc/mod_hdcp.h
> @@ -143,6 +143,13 @@ struct mod_hdcp_ddc {
>  	} funcs;
>  };
>  
> +struct mod_hdcp_dm {
> +	void *handle;
> +	struct {
> +		void (*exit_idle_optimizations)(void *handle);
> +	} funcs;
> +};
> +
>  struct mod_hdcp_psp {
>  	void *handle;
>  	void *funcs;
> @@ -252,6 +259,7 @@ struct mod_hdcp_display_query {
>  struct mod_hdcp_config {
>  	struct mod_hdcp_psp psp;
>  	struct mod_hdcp_ddc ddc;
> +	struct mod_hdcp_dm dm;
>  	uint8_t index;
>  };
>  

-- 
DENX Software Engineering GmbH,        Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20240618/c0e3d139/attachment.sig>


More information about the amd-gfx mailing list