[PATCH v5 0/6] Add hardware prefetch control driver for A64FX and x86
tarumizu.kohei at fujitsu.com
tarumizu.kohei at fujitsu.com
Wed Jun 29 22:24:46 PDT 2022
Hi Tony,
Thanks for the comment.
> Another approach would be to make the set of prefetch settings a task attribute.
> Then set them in the context switch code when the process is about to run on
> a CPU.
>
> But that assumes you can cheaply change the attributes. If doing so requires
> multiple MSR writes (on x86) it might be a non-starter.
On the x86 and A64FX, each parameter for controlling hardware prefetch
is contained in one register. The current specification makes each
parameter a separate attribute, so we need to write as many times as
there are parameters to change. However it is possible to change the
attribute with one MSR write per core by changing multiple parameters
before the context switch.
More information about the linux-arm-kernel
mailing list