[Intel-xe] [PATCH 6/6] drm/xe: don't expose the GSCCS to users

Matt Roper matthew.d.roper at intel.com
Wed Aug 16 23:11:34 UTC 2023


On Wed, Aug 16, 2023 at 11:04:25AM -0700, Daniele Ceraolo Spurio wrote:
> The kernel is the only expected user of the GSCCS, so we don't want to
> expose it to userspace.
> 
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>

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

> ---
>  drivers/gpu/drm/xe/xe_hw_engine.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_hw_engine.c b/drivers/gpu/drm/xe/xe_hw_engine.c
> index 7ce3e740c508..ee417b7aeee5 100644
> --- a/drivers/gpu/drm/xe/xe_hw_engine.c
> +++ b/drivers/gpu/drm/xe/xe_hw_engine.c
> @@ -794,6 +794,9 @@ bool xe_hw_engine_is_reserved(struct xe_hw_engine *hwe)
>  	struct xe_gt *gt = hwe->gt;
>  	struct xe_device *xe = gt_to_xe(gt);
>  
> +	if (hwe->class == XE_ENGINE_CLASS_OTHER)
> +		return true;
> +
>  	return xe->info.supports_usm && hwe->class == XE_ENGINE_CLASS_COPY &&
>  		hwe->instance == gt->usm.reserved_bcs_instance;
>  }
> -- 
> 2.41.0
> 

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


More information about the Intel-xe mailing list