Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-03 Thread Catalin Marinas
On Wed, Sep 02, 2015 at 05:21:24PM +, Pinski, Andrew wrote: > On Sep 3, 2015, at 1:12 AM, Catalin Marinas wrote: > > On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: > >> That is not a bad idea. Put this array in the data section of the > >> VDSO too. It should be small enough

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-03 Thread Catalin Marinas
On Wed, Sep 02, 2015 at 05:21:24PM +, Pinski, Andrew wrote: > On Sep 3, 2015, at 1:12 AM, Catalin Marinas wrote: > > On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: > >> That is not a bad idea. Put this array in the data section of the > >> VDSO too.

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Thomas Gleixner
On Wed, 2 Sep 2015, Pinski, Andrew wrote: > > On Sep 3, 2015, at 1:12 AM, Catalin Marinas wrote: > >> On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: > >> That is not a bad idea. Put this array in the data section of the > >> VDSO too. It should be small enough though on systems

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Pinski, Andrew
> On Sep 3, 2015, at 1:12 AM, Catalin Marinas wrote: > >> On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: >> On Wed, Sep 2, 2015 at 9:57 PM, Siarhei Siamashka >> wrote: > [...] > On Wed, 2 Sep 2015 01:58:56 +0800 pins...@gmail.com wrote: >> Yes but I guess you talk

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Catalin Marinas
On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: > On Wed, Sep 2, 2015 at 9:57 PM, Siarhei Siamashka > wrote: [...] > >> > On Wed, 2 Sep 2015 01:58:56 +0800 pins...@gmail.com wrote: > >> >> Yes but I guess you talk about caching the value in userspace but doing > >> >> it via the

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Andrew Pinski
On Wed, Sep 2, 2015 at 9:57 PM, Siarhei Siamashka wrote: > On Wed, 2 Sep 2015 00:28:28 + > "Pinski, Andrew" wrote: > >> > On Sep 2, 2015, at 3:13 AM, Siarhei Siamashka >> > wrote: >> > >> > On Wed, 2 Sep 2015 01:58:56 +0800 >> > pins...@gmail.com wrote: >> > >> >>> On Sep 2, 2015, at 1:30

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Siarhei Siamashka
On Wed, 2 Sep 2015 00:28:28 + "Pinski, Andrew" wrote: > > On Sep 2, 2015, at 3:13 AM, Siarhei Siamashka > > wrote: > > > > On Wed, 2 Sep 2015 01:58:56 +0800 > > pins...@gmail.com wrote: > > > >>> On Sep 2, 2015, at 1:30 AM, Mark Rutland wrote: > >>> > >>> [...] > >>> > >>> On Sat,

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Catalin Marinas
On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: > On Wed, Sep 2, 2015 at 9:57 PM, Siarhei Siamashka > wrote: [...] > >> > On Wed, 2 Sep 2015 01:58:56 +0800 pins...@gmail.com wrote: > >> >> Yes but I guess you talk about caching the value in userspace

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Pinski, Andrew
> On Sep 3, 2015, at 1:12 AM, Catalin Marinas wrote: > >> On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: >> On Wed, Sep 2, 2015 at 9:57 PM, Siarhei Siamashka >> wrote: > [...] > On Wed, 2 Sep 2015 01:58:56 +0800

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Thomas Gleixner
On Wed, 2 Sep 2015, Pinski, Andrew wrote: > > On Sep 3, 2015, at 1:12 AM, Catalin Marinas wrote: > >> On Wed, Sep 02, 2015 at 10:52:05PM +0800, Andrew Pinski wrote: > >> That is not a bad idea. Put this array in the data section of the > >> VDSO too. It should be small

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Siarhei Siamashka
On Wed, 2 Sep 2015 00:28:28 + "Pinski, Andrew" wrote: > > On Sep 2, 2015, at 3:13 AM, Siarhei Siamashka > > wrote: > > > > On Wed, 2 Sep 2015 01:58:56 +0800 > > pins...@gmail.com wrote: > > > >>> On Sep 2, 2015, at 1:30 AM,

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-02 Thread Andrew Pinski
On Wed, Sep 2, 2015 at 9:57 PM, Siarhei Siamashka wrote: > On Wed, 2 Sep 2015 00:28:28 + > "Pinski, Andrew" wrote: > >> > On Sep 2, 2015, at 3:13 AM, Siarhei Siamashka >> > wrote: >> > >> > On Wed,

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Pinski, Andrew
> On Sep 2, 2015, at 3:13 AM, Siarhei Siamashka > wrote: > > On Wed, 2 Sep 2015 01:58:56 +0800 > pins...@gmail.com wrote: > >>> On Sep 2, 2015, at 1:30 AM, Mark Rutland wrote: >>> >>> [...] >>> >>> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: >>> It is useful

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Siarhei Siamashka
On Wed, 2 Sep 2015 01:58:56 +0800 pins...@gmail.com wrote: > > On Sep 2, 2015, at 1:30 AM, Mark Rutland wrote: > > > > [...] > > > > On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > > It is useful to pass down MIDR register down to userland if all of > > the online

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Pinski, Andrew
> On Sep 2, 2015, at 1:19 AM, Mark Rutland wrote: > >> On Tue, Sep 01, 2015 at 05:51:44PM +0100, pins...@gmail.com wrote: >> >> >> >> >>> On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: >>> >>> Hi, >>> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: It is

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread pinskia
> On Sep 2, 2015, at 1:30 AM, Mark Rutland wrote: > > [...] > > On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > It is useful to pass down MIDR register down to userland if all of > the online cores are all the same type. This adds AT_ARM64_MIDR > aux vector

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Mark Rutland
[...] > >>> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > >>> It is useful to pass down MIDR register down to userland if all of > >>> the online cores are all the same type. This adds AT_ARM64_MIDR > >>> aux vector type and passes down the midr system register. > >>> > >>>

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Pinski, Andrew
> On Sep 2, 2015, at 12:51 AM, "pins...@gmail.com" wrote: > > > > > >> On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: >> >> Hi, >> >>> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: >>> It is useful to pass down MIDR register down to userland if all of >>> the online

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Mark Rutland
On Tue, Sep 01, 2015 at 05:51:44PM +0100, pins...@gmail.com wrote: > > > > > > On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: > > > > Hi, > > > >> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > >> It is useful to pass down MIDR register down to userland if all of > >>

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread pinskia
> On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: > > Hi, > >> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: >> It is useful to pass down MIDR register down to userland if all of >> the online cores are all the same type. This adds AT_ARM64_MIDR >> aux vector type and

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Mark Rutland
Hi, On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > It is useful to pass down MIDR register down to userland if all of > the online cores are all the same type. This adds AT_ARM64_MIDR > aux vector type and passes down the midr system register. > > This is alternative to

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Pinski, Andrew
> On Sep 2, 2015, at 12:51 AM, "pins...@gmail.com" wrote: > > > > > >> On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: >> >> Hi, >> >>> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: >>> It is useful to pass down MIDR register

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Siarhei Siamashka
On Wed, 2 Sep 2015 01:58:56 +0800 pins...@gmail.com wrote: > > On Sep 2, 2015, at 1:30 AM, Mark Rutland wrote: > > > > [...] > > > > On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > > It is useful to pass down MIDR register down to userland if all

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Pinski, Andrew
> On Sep 2, 2015, at 1:19 AM, Mark Rutland wrote: > >> On Tue, Sep 01, 2015 at 05:51:44PM +0100, pins...@gmail.com wrote: >> >> >> >> >>> On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: >>> >>> Hi, >>> On Sat, Aug 29, 2015 at

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Mark Rutland
On Tue, Sep 01, 2015 at 05:51:44PM +0100, pins...@gmail.com wrote: > > > > > > On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: > > > > Hi, > > > >> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > >> It is useful to pass down MIDR register down to

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Mark Rutland
[...] > >>> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > >>> It is useful to pass down MIDR register down to userland if all of > >>> the online cores are all the same type. This adds AT_ARM64_MIDR > >>> aux vector type and passes down the midr system register. > >>> > >>>

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread pinskia
> On Sep 2, 2015, at 1:30 AM, Mark Rutland wrote: > > [...] > > On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > It is useful to pass down MIDR register down to userland if all of > the online cores are all the same type. This adds

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Pinski, Andrew
> On Sep 2, 2015, at 3:13 AM, Siarhei Siamashka > wrote: > > On Wed, 2 Sep 2015 01:58:56 +0800 > pins...@gmail.com wrote: > >>> On Sep 2, 2015, at 1:30 AM, Mark Rutland wrote: >>> >>> [...] >>> >>> On Sat, Aug 29, 2015 at 07:46:22PM

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread Mark Rutland
Hi, On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: > It is useful to pass down MIDR register down to userland if all of > the online cores are all the same type. This adds AT_ARM64_MIDR > aux vector type and passes down the midr system register. > > This is alternative to

Re: [PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-09-01 Thread pinskia
> On Sep 2, 2015, at 12:33 AM, Mark Rutland wrote: > > Hi, > >> On Sat, Aug 29, 2015 at 07:46:22PM +0100, Andrew Pinski wrote: >> It is useful to pass down MIDR register down to userland if all of >> the online cores are all the same type. This adds AT_ARM64_MIDR >>

[PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-08-29 Thread Andrew Pinski
It is useful to pass down MIDR register down to userland if all of the online cores are all the same type. This adds AT_ARM64_MIDR aux vector type and passes down the midr system register. This is alternative to MIDR_EL1 part of

[PATCHv2] ARM64: Add AT_ARM64_MIDR to the aux vector

2015-08-29 Thread Andrew Pinski
It is useful to pass down MIDR register down to userland if all of the online cores are all the same type. This adds AT_ARM64_MIDR aux vector type and passes down the midr system register. This is alternative to MIDR_EL1 part of