linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: /proc/cpuinfo updates for compat tasks
@ 2016-05-31 14:55 Catalin Marinas
  2016-05-31 14:55 ` [PATCH 1/2] arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks Catalin Marinas
  2016-05-31 14:55 ` [PATCH 2/2] arm64: Always provide compat /proc/cpuinfo for 32-bit tasks Catalin Marinas
  0 siblings, 2 replies; 7+ messages in thread
From: Catalin Marinas @ 2016-05-31 14:55 UTC (permalink / raw)
  To: linux-arm-kernel

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(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-29 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-31 14:55 [PATCH 0/2] arm64: /proc/cpuinfo updates for compat tasks Catalin Marinas
2016-05-31 14:55 ` [PATCH 1/2] arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks Catalin Marinas
2016-05-31 16:16   ` Will Deacon
2016-05-31 16:42     ` Catalin Marinas
2016-05-31 14:55 ` [PATCH 2/2] arm64: Always provide compat /proc/cpuinfo for 32-bit tasks Catalin Marinas
2016-05-31 16:18   ` Will Deacon
2016-06-29 19:51   ` Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).