Re: [PATCH] powerpc/64s: Fix NULL AT_BASE_PLATFORM when using DT CPU features

2018-03-23 Thread Gustavo Romero
Hi Yi, On 03/14/2018 05:34 AM, Li Yi (Adam) wrote: So set it in the DT CPU features code also. This results in eg: $ LD_SHOW_AUXV=1 /bin/true | grep "AT_.*PLATFORM" AT_PLATFORM: power9 AT_BASE_PLATFORM:power9 Is this issue related with DD2.2 CPU? I tested on a Boston system with

Re: [PATCH] powerpc/64s: Fix NULL AT_BASE_PLATFORM when using DT CPU features

2018-03-14 Thread Li Yi (Adam)
> Date: Wed, 14 Mar 2018 10:14:11 +1100 > From: Michael Ellerman > To: linuxppc-...@ozlabs.org > Cc: suka...@linux.vnet.ibm.com, npig...@gmail.com > Subject: [PATCH] powerpc/64s: Fix NULL AT_BASE_PLATFORM when using DT > CPU features > Message-ID: <20180313231411.9

Re: [PATCH] powerpc/64s: Fix NULL AT_BASE_PLATFORM when using DT CPU features

2018-03-13 Thread Nicholas Piggin
On Wed, 14 Mar 2018 10:14:11 +1100 Michael Ellerman wrote: > When running virtualised the powerpc kernel is able to run the system > in "compat mode" - which means the kernel and hardware are pretending > to userspace that the CPU is an older version than it actually is. > > AT_BASE_PLATFORM is

[PATCH] powerpc/64s: Fix NULL AT_BASE_PLATFORM when using DT CPU features

2018-03-13 Thread Michael Ellerman
When running virtualised the powerpc kernel is able to run the system in "compat mode" - which means the kernel and hardware are pretending to userspace that the CPU is an older version than it actually is. AT_BASE_PLATFORM is an AUXV entry that we export to userspace for use when we're running in