[PATCH v1 10/38] arm64/sve: Generalise vector length configuration prctl() for SME

Jonathan Cameron Jonathan.Cameron at Huawei.com
Mon Oct 11 03:27:50 PDT 2021


On Thu, 30 Sep 2021 19:11:16 +0100
Mark Brown <broonie at kernel.org> wrote:

> In preparation for adding SME support update the bulk of the implementation
> for the vector length configuration prctl() calls to be independent of
> vector type.
> 
> Signed-off-by: Mark Brown <broonie at kernel.org>

And let the trivial continue (which is just a reflection of the fact I don't have
enough of a grasp on this to find anything substantial - or there is nothing there
to find :)

...

>  	/*
> -	 * Clamp to the maximum vector length that VL-agnostic SVE code can
> -	 * work with.  A flag may be assigned in the future to allow setting
> -	 * of larger vector lengths without confusing older software.
> +	 * Clamp to the maximum vector length that VL-agnostic code
> +	 * can work with.  A flag may be assigned in the future to
> +	 * allow setting of larger vector lengths without confusing
> +	 * older software.

Why the oddly short wrapping at sub 70 chars?

>  	 */
> -	if (vl > SVE_VL_ARCH_MAX)
> -		vl = SVE_VL_ARCH_MAX;
> +	if (vl > VL_ARCH_MAX)
> +		vl = VL_ARCH_MAX;



More information about the linux-arm-kernel mailing list