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 <[email protected]> Signed-off-by: Mark Brown <[email protected]> Reviewed-by: Dave Martin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent ae35792 commit 3fd97cf

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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)