[PATCH 3/8] drm/xe/vf: Don't program MOCS if VF

Matt Roper matthew.d.roper at intel.com
Sat Jan 13 00:54:24 UTC 2024


On Fri, Jan 12, 2024 at 04:26:44PM +0100, Michal Wajdeczko wrote:
> MOCS programming may only be done by the PF driver.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Matt Roper <matthew.d.roper at intel.com>

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

> ---
>  drivers/gpu/drm/xe/xe_mocs.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c
> index d205d684d809..609d997b3e9b 100644
> --- a/drivers/gpu/drm/xe/xe_mocs.c
> +++ b/drivers/gpu/drm/xe/xe_mocs.c
> @@ -13,6 +13,7 @@
>  #include "xe_gt_mcr.h"
>  #include "xe_mmio.h"
>  #include "xe_platform_types.h"
> +#include "xe_sriov.h"
>  #include "xe_step_types.h"
>  
>  #if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
> @@ -539,6 +540,9 @@ void xe_mocs_init(struct xe_gt *gt)
>  	struct xe_mocs_info table;
>  	unsigned int flags;
>  
> +	if (IS_SRIOV_VF(gt_to_xe(gt)))
> +		return;
> +
>  	/*
>  	 * MOCS settings are split between "GLOB_MOCS" and/or "LNCFCMOCS"
>  	 * registers depending on platform.
> -- 
> 2.25.1
> 

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


More information about the Intel-xe mailing list