Skip to content

Commit 3fd97cf

Browse files
brooniectmarinas
authored andcommitted
arm64/fp: Clarify effect of setting an unsupported system VL
The documentation for system vector length configuration does not cover all cases where unsupported values are written, tighten it up. Reported-by: Edmund Grimley-Evans <edmund.grimley-evans@arm.com> Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Dave Martin <Dave.Martin@arm.com> Link: https://lore.kernel.org/r/20240124-arm64-sve-sme-doc-v2-3-fe3964fb3c19@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent ae35792 commit 3fd97cf

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Documentation/arch/arm64/sme.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,8 @@ The regset data starts with struct user_za_header, containing:
379379
/proc/sys/abi/sme_default_vector_length
380380

381381
Writing the text representation of an integer to this file sets the system
382-
default vector length to the specified value, unless the value is greater
383-
than the maximum vector length supported by the system in which case the
384-
default vector length is set to that maximum.
382+
default vector length to the specified value rounded to a supported value
383+
using the same rules as for setting vector length via PR_SME_SET_VL.
385384

386385
The result can be determined by reopening the file and reading its
387386
contents.

Documentation/arch/arm64/sve.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,8 @@ The regset data starts with struct user_sve_header, containing:
423423
/proc/sys/abi/sve_default_vector_length
424424

425425
Writing the text representation of an integer to this file sets the system
426-
default vector length to the specified value, unless the value is greater
427-
than the maximum vector length supported by the system in which case the
428-
default vector length is set to that maximum.
426+
default vector length to the specified value rounded to a supported value
427+
using the same rules as for setting vector length via PR_SVE_SET_VL.
429428

430429
The result can be determined by reopening the file and reading its
431430
contents.

0 commit comments

Comments
 (0)