Re: ARM CPU part numbers

2011-09-07 Thread Dave Martin
On Wed, Sep 07, 2011 at 11:37:12AM +0200, Arnd Bergmann wrote: > On Wednesday 07 September 2011 10:32:27 Dave Martin wrote: > > Note that the hwcaps info in /proc/cpuinfo is generated from the same > > hwcaps word exposed via auxv so, for now, the information is identical. > > > > I would normally

Re: ARM CPU part numbers

2011-09-07 Thread Arnd Bergmann
On Wednesday 07 September 2011 10:32:27 Dave Martin wrote: > Note that the hwcaps info in /proc/cpuinfo is generated from the same > hwcaps word exposed via auxv so, for now, the information is identical. > > I would normally rate parsing /proc/cpuinfo as being a bad idea, but > /proc/cpuinfo is p

Re: ARM CPU part numbers

2011-09-07 Thread Dave Martin
On Mon, Sep 05, 2011 at 11:10:10AM +0100, Peter Maydell wrote: > On 5 September 2011 10:52, Marcin Juszkiewicz > wrote: > > W dniu 05.09.2011 11:28, Andrew Stubbs pisze: > >> Next question ... is /proc/cpuinfo really the best way to detect this? > >> > >> I mean, is auxv a better approach? Or some

Re: ARM CPU part numbers

2011-09-05 Thread Peter Maydell
On 5 September 2011 10:52, Marcin Juszkiewicz wrote: > W dniu 05.09.2011 11:28, Andrew Stubbs pisze: >> Next question ... is /proc/cpuinfo really the best way to detect this? >> >> I mean, is auxv a better approach? Or something else? What's the most >> efficient, and most stable API to read the C

Re: ARM CPU part numbers

2011-09-05 Thread Marcin Juszkiewicz
W dniu 05.09.2011 11:28, Andrew Stubbs pisze: > Next question ... is /proc/cpuinfo really the best way to detect this? > > I mean, is auxv a better approach? Or something else? What's the most > efficient, and most stable API to read the CPU architecture, CPU model, > and FPU/NEON availability? >

Re: ARM CPU part numbers

2011-09-05 Thread Andrew Stubbs
On 01/09/11 10:40, Andrew Stubbs wrote: I'm currently trying to get GCC to auto-detect what CPU to optimize for by finding out what CPU it's actually running on (the user would only have to pass -mcpu=native). It does this simply by reading /proc/cpuinfo. Thanks to everybody who answered my pre

Re: ARM CPU part numbers

2011-09-02 Thread Marcin Juszkiewicz
W dniu 02.09.2011 06:40, David Brown pisze: > Processor : ARMv7 Processor rev 1 (v7l) > BogoMIPS: 191.69 > Features: swp half thumb fastmult vfp edsp neon vfpv3 > CPU implementer : 0x41 > CPU architecture: 7 > CPU variant : 0x0 > CPU part: 0xc05 > CPU revision:

Re: ARM CPU part numbers

2011-09-01 Thread David Brown
On Thu, Sep 01, 2011 at 10:40:27AM +0100, Andrew Stubbs wrote: > I'm currently trying to get GCC to auto-detect what CPU to optimize > for by finding out what CPU it's actually running on (the user would > only have to pass -mcpu=native). It does this simply by reading > /proc/cpuinfo. > > The pr

Re: ARM CPU part numbers

2011-09-01 Thread Stubbs, Andrew
On 01/09/11 12:02, Pawel Moll wrote: >> If you search the specs on http://infocenter.arm.com for "Main ID >> register" you should get all the numbers you wish for :-) > > Apparently it's called "ID Code Register" for ARM9 and the expected (not > tested ;-) values would be: Thanks Paweł, this is ex

Re: ARM CPU part numbers

2011-09-01 Thread Pawel Moll
> > PS. The number I quoted are valid when "CPU implementer" == 0x41 (ARM Ltd.) > > What about non-ARM implementations from e.g. Qualcomm and Marvell? Sorry, I have no access to theirs specs and the ARM ARM (Architecture Reference Manual) does not enforce any particular numbering scheme. Some SA

Re: ARM CPU part numbers

2011-09-01 Thread Arnd Bergmann
On Thursday 01 September 2011, Andrew Stubbs wrote: > Hi all, > > I'm currently trying to get GCC to auto-detect what CPU to optimize for > by finding out what CPU it's actually running on (the user would only > have to pass -mcpu=native). It does this simply by reading /proc/cpuinfo. > > The p

Re: ARM CPU part numbers

2011-09-01 Thread Mans Rullgard
On 1 September 2011 12:02, Pawel Moll wrote: >> If you search the specs on http://infocenter.arm.com for "Main ID >> register" you should get all the numbers you wish for :-) > > Apparently it's called "ID Code Register" for ARM9 and the expected (not > tested ;-) values would be: > > ARM926 - 0x9

Re: ARM CPU part numbers

2011-09-01 Thread David Gilbert
On 1 September 2011 10:40, Andrew Stubbs wrote: > Hi all, > > I'm currently trying to get GCC to auto-detect what CPU to optimize for by > finding out what CPU it's actually running on (the user would only have to > pass -mcpu=native). It does this simply by reading /proc/cpuinfo. > > The problem

Re: ARM CPU part numbers

2011-09-01 Thread Pawel Moll
> I actually did look for a bit and never found a definitive list. I've > found descriptions of the bitfield and some sample values, but I haven't > seen an actual official list. That's correct, I don't think such a list exists (at least within official ARM specs). What I meant is searching for th

Re: ARM CPU part numbers

2011-09-01 Thread Marcin Juszkiewicz
W dniu 01.09.2011 12:20, Pawel Moll pisze: >> Does anybody have a list of such numbers? ARM926 - 0x926 (atmel at91sam9263) ARM920 - 0x920 (atmel at91rm9200) I have some armv4t/v5t/v6 systems here but none of them under power. ___ linaro-dev mailing lis

Re: ARM CPU part numbers

2011-09-01 Thread Christian Robottom Reis
On Thu, Sep 01, 2011 at 11:20:21AM +0100, Pawel Moll wrote: > > Does anybody have a list of such numbers? > > If you search the specs on http://infocenter.arm.com for "Main ID > register" you should get all the numbers you wish for :-) I actually did look for a bit and never found a definitive li

Re: ARM CPU part numbers

2011-09-01 Thread Pawel Moll
> If you search the specs on http://infocenter.arm.com for "Main ID > register" you should get all the numbers you wish for :-) Apparently it's called "ID Code Register" for ARM9 and the expected (not tested ;-) values would be: ARM926 - 0x926 ARM946 - 0x946 ARM966 - 0x966 etc., you get the pict

Re: ARM CPU part numbers

2011-09-01 Thread Pawel Moll
> Does anybody have a list of such numbers? If you search the specs on http://infocenter.arm.com for "Main ID register" you should get all the numbers you wish for :-) > Or else, perhaps people could just post any number they happen to know? For v6 and v7 processors, the /proc/cpuinfo's "CPU par