[PATCH 2/6] drm/xe/guc: Add GLOBAL_CFG_GMD_ID KLV definition

Matt Roper matthew.d.roper at intel.com
Thu May 23 20:50:39 UTC 2024


On Thu, May 23, 2024 at 09:22:36PM +0200, Michal Wajdeczko wrote:
> VF drivers can't access GMD_ID register over MMIO.
> The value of the GMD_ID register must be queried from GuC.
> It is available as GLOBAL_CFG_GMD_ID KLV.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>

Matches what I see documented in the GuC interface spec.

Reviewed-by: Matt Roper <matthew.d.roper at intel.com>

> ---
>  drivers/gpu/drm/xe/abi/guc_klvs_abi.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> index 5c1d40432ca0..8f9f60b28306 100644
> --- a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> +++ b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> @@ -35,6 +35,20 @@
>  #define GUC_KLV_0_LEN				(0xffffu << 0)
>  #define GUC_KLV_n_VALUE				(0xffffffffu << 0)
>  
> +/**
> + * DOC: GuC Global Config KLVs
> + *
> + * `GuC KLV`_ keys available for use with HOST2GUC_SELF_CFG_.
> + *
> + * _`GUC_KLV_GLOBAL_CFG_GMD_ID` : 0x3000
> + *      Refers to 32 bit architecture version as reported by the HW IP.
> + *      This key is supported on MTL+ platforms only.
> + *      Requires GuC ABI 1.2+.
> + */
> +
> +#define GUC_KLV_GLOBAL_CFG_GMD_ID_KEY			0x3000u
> +#define GUC_KLV_GLOBAL_CFG_GMD_ID_LEN			1u
> +
>  /**
>   * DOC: GuC Self Config KLVs
>   *
> -- 
> 2.43.0
> 

-- 
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation


More information about the Intel-xe mailing list