News: 0001594531

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux Kernel Developers Eye Uses For Extra General Purpose Registers With APX

([Intel] 4 Hours Ago Extra GPRs For Kernel-Use)


With [1]Advanced Performance Extensions (APX) on upcoming Intel processors doubling the number of general purpose registers (GPRs) among other advantages, Intel engineers are beginning to think of possible kernel uses for the extra registers.

To date there hasn't been much thought given to kernel uses for these extra registers with the enablement thus far of APX primarily focused on user-space software. There is some thinking that these EGPRs (Extended General Purpose Registers) may be useful to help reduce kernel stack pressure. But it also needs to be decided among kernel developers just how much they plan to make use of these extra registers for knowing the best design for how to handle their use in sharing with user-space. Plus needing to keep assuming APX is optional for x86_64 Linux, maintaining legacy register use, etc.

Intel engineer Chang S. Bae began formalizing the discussion today over the in-kernel use for these EGPRs. Bae suggests a staged option could begin with self-contained libraries or performance-critical paths and to then expand from there as more processors become available.

As part of the discussion is a patch for using the EGPRs in the kernel's 64-bit checksum copy loop as a possible first-use.

See [2]this LKML thread for those interested in following the discussion about how the Linux kernel could make use of the extended general purpose registers to be found with upcoming Intel processors.



[1] https://www.phoronix.com/search/Advanced+Performance+Extensions

[2] https://lore.kernel.org/lkml/20251124213227.123779-1-chang.seok.bae@intel.com/



There is only one way to be happy by means of the heart -- to have none.
-- Paul Bourget