[PATCH 05/10] drm/xe/guc: Update few GuC CTB ABI definitions

Piotr Piórkowski piotr.piorkowski at intel.com
Fri Dec 29 21:09:10 UTC 2023


Michal Wajdeczko <michal.wajdeczko at intel.com> wrote on czw [2023-gru-28 00:58:33 +0100]:
> In upcoming new GuC ABI definitions we will want to refer to max
> number of dwords that could fit into CTB HXG message. Add explicit
> definition named as GUC_CTB_MAX_DWORDS and start using it.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski at intel.com>

> ---
>  drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h b/drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h
> index 3b83f907ece4..4aaed1cb4e12 100644
> --- a/drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h
> +++ b/drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h
> @@ -81,12 +81,13 @@ static_assert(sizeof(struct guc_ct_buffer_desc) == 64);
>  
>  #define GUC_CTB_HDR_LEN				1u
>  #define GUC_CTB_MSG_MIN_LEN			GUC_CTB_HDR_LEN
> -#define GUC_CTB_MSG_MAX_LEN			256u
> +#define GUC_CTB_MSG_MAX_LEN			(GUC_CTB_MSG_MIN_LEN + GUC_CTB_MAX_DWORDS)
>  #define GUC_CTB_MSG_0_FENCE			(0xffff << 16)
>  #define GUC_CTB_MSG_0_FORMAT			(0xf << 12)
>  #define   GUC_CTB_FORMAT_HXG			0u
>  #define GUC_CTB_MSG_0_RESERVED			(0xf << 8)
>  #define GUC_CTB_MSG_0_NUM_DWORDS		(0xff << 0)
> +#define   GUC_CTB_MAX_DWORDS			255
>  
>  /**
>   * DOC: CTB HXG Message
> -- 
> 2.25.1
> 

-- 


More information about the Intel-xe mailing list