arm64: /proc/cpuinfo updates for compat tasks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasksarch/ arch/ | +9 | 1 reply | |
| 1/2 | arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks | +0 | 0 replies | |
| 2/2 | arm64: Always provide compat /proc/cpuinfo for 32-bit tasksarch/ | +2 | 2 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Will Deacon |
|---|---|
| 1/2 | A-b |
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] arm64: /proc/cpuinfo updates for compat tasks
The first patch is relatively simple, adding the "model name" line which is present in the arm32 /proc/cpuinfo.
The second patch is up for discussion. When arm64 support was merged, we concluded that "uname -m" should report "aarch64" even for compat tasks. The only way to change the output to "armv8l" was to set the PER_LINUX32 personality (and I think this is in line with x86).
We followed a similar personality approach for /proc/cpuinfo where the compat one is only exposed if the task sets/inherits PER_LINUX32. The downside is that apparently some 32-bit applications started making use of the 64-bit /proc/cpuinfo format. To prevent further spread, I'm proposing the second patch in this series to force compat /proc/cpuinfo for 32-bit tasks. This is a departure from the "uname -m" behaviour but maybe they don't need to be coupled anyway.
Thoughts?
Catalin Marinas (2):
arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks
arm64: Always provide compat /proc/cpuinfo for 32-bit tasks
arch/arm64/include/asm/elf.h | 4 ++-- arch/arm64/kernel/cpuinfo.c | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-)