Re: [PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-27 Thread Catalin Marinas
On Wed, Apr 27, 2016 at 02:13:01AM +, Zengtao (B) wrote: > Suzuki K Poulose wrote: > > On 26/04/16 03:21, Zengtao (B) wrote: > > > So you mean the 64-bit grep should see the same cpuinfo as its father > > > process > > > which is 32-bit? > > > > > > For 32-bit process running on 64-bit kernel,

RE: [PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-26 Thread Zengtao (B)
m.com; > linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH] arm64: fix /proc/cpuinfo for elf32 > > On 26/04/16 03:21, Zengtao (B) wrote: > > > > So you mean the 64-bit grep should see the same cpuinfo as its father > > process > > which is 32-bit? > &

Re: [PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-26 Thread Suzuki K Poulose
On 26/04/16 03:21, Zengtao (B) wrote: So you mean the 64-bit grep should see the same cpuinfo as its father process which is 32-bit? For 32-bit process running on 64-bit kernel, we have to explicitly call the personality syscall to get the right cpuinfo, but how to deal with the old 32-bit bin

RE: [PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-25 Thread Zengtao (B)
.mo...@arm.com; linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH] arm64: fix /proc/cpuinfo for elf32 > > On Mon, Apr 25, 2016 at 11:37:33AM +0800, Zeng Tao wrote: > > For elf32 thread, personality is used for arm32, > > and thread_flag for arm64. > > &

Re: [PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-25 Thread Zengtao (B)
On 2016-04-25 09:12, Catalin Marinas wrote: > On Mon, Apr 25, 2016 at 11:37:33AM +0800, Zeng Tao wrote: > > For elf32 thread, personality is used for arm32, > > and thread_flag for arm64. > > > > Here personality is used for arm64, so fix it. > > > > Signed-off-by: Zeng Tao > > --- > > arch/arm

Re: [PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-25 Thread Catalin Marinas
On Mon, Apr 25, 2016 at 11:37:33AM +0800, Zeng Tao wrote: > For elf32 thread, personality is used for arm32, > and thread_flag for arm64. > > Here personality is used for arm64, so fix it. > > Signed-off-by: Zeng Tao > --- > arch/arm64/kernel/cpuinfo.c | 2 +- > 1 file changed, 1 insertion(+),