Skip to content

RFC arm64: Scalable Vector Extension core support

Yao Qi linux-arm-kernel 1 version New

Get series with b4
b4 am 20161202215646.s2xymph6d6jlyrv3@localhost

Versions newest first

  1. v1 RFC Latest0 of 29 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 29 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 00/29] arm64: Scalable Vector Extension core support
Quoted 6 lines · Dave Martin

So, my key goal is to support _per-process_ vector length control.

From the kernel perspective, it is easiest to achieve this by providing per-thread control since that is the unit that context switching acts on.

Hi, Dave,
Thanks for the explanation.

Quoted 6 lines

How useful it really is to have threads with different VLs in the same process is an open question. It's theoretically useful for runtime environments, which may want to dispatch code optimised for different VLs -- changing the VL on-the-fly within a single thread is not something I want to encourage, due to overhead and ABI issues, but switching between threads of different VLs would be more manageable.

This is a weird programming model.

Quoted 10 lines

However, I expect mixing different VLs within a single process to be very much a special case -- it's not something I'd expect to work with general-purpose code.

Since the need for indepent VLs per thread is not proven, we could

* forbid it -- i.e., only a thread-group leader with no children is
permitted to change the VL, which is then inherited by any child threads that are subsequently created

Quoted 5 lines

* permit it only if a special flag is specified when requesting the VL
change

* permit it and rely on userspace to be sensible -- easiest option for
the kernel.

Both the first and the third one is reasonable to me, but the first one fit well in existing GDB design. I don't know how useful it is to have per-thread VL, there may be some workloads can be implemented that way. GDB needs some changes to support "per-thread" target description.

Signature · 1 line
Yao