[PATCH] arm64/sve: Document that __SVE_VQ_MAX is much larger than needed
Mark Brown
broonie at kernel.org
Wed Feb 7 07:10:28 PST 2024
On Wed, Feb 07, 2024 at 01:39:13PM +0000, Dave Martin wrote:
> How about something along the lines of:
> /*
> * Yes, this is 512 QUADWORDS.
> * To help ensure forward portability, this is much larger than the
> * current maximum value defined by the SVE architecture.
> * While arrays or static allocations can be sized based on this value,
> * watch out! It will waste a surprisingly large amount of memory.
> * Dynamic sizing based on the actual runtime vector length is likely to
> * be preferable for most purposes.
> */
That works for me. The cost of initialising can also add up in
emulation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240207/bcb0ab84/attachment.sig>
More information about the linux-arm-kernel
mailing list