[Intel-gfx] [PATCH] drm/i915: Disable bonding on gen12+ platforms

John Harrison john.c.harrison at intel.com
Fri Aug 6 18:25:07 UTC 2021


On 7/28/2021 12:21, Matthew Brost wrote:
> Disable bonding on gen12+ platforms aside from ones already supported by
> the i915 - TGL, RKL, and ADL-S.
>
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
> ---
>   drivers/gpu/drm/i915/gem/i915_gem_context.c | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context.c b/drivers/gpu/drm/i915/gem/i915_gem_context.c
> index 05c3ee191710..9c3672bac0e2 100644
> --- a/drivers/gpu/drm/i915/gem/i915_gem_context.c
> +++ b/drivers/gpu/drm/i915/gem/i915_gem_context.c
> @@ -446,6 +446,13 @@ set_proto_ctx_engines_bond(struct i915_user_extension __user *base, void *data)
>   	u16 idx, num_bonds;
>   	int err, n;
>   
> +	if (GRAPHICS_VER(i915) >= 12 && !IS_TIGERLAKE(i915) &&
> +	    !IS_ROCKETLAKE(i915) && !IS_ALDERLAKE_S(i915)) {
> +		drm_dbg(&i915->drm,
> +			"Bonding on gen12+ aside from TGL, RKL, and ADL_S not allowed\n");
I would have said not supported rather than not allowed. Either way:
Reviewed-by: John Harrison <John.C.Harrison at Intel.com>

> +		return -ENODEV;
> +	}
> +
>   	if (get_user(idx, &ext->virtual_index))
>   		return -EFAULT;
>   



More information about the dri-devel mailing list