* How to recognize a LEON CPU?
@ 2012-05-21 16:22 Sam Ravnborg
2012-05-21 21:12 ` David Miller
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Sam Ravnborg @ 2012-05-21 16:22 UTC (permalink / raw)
To: sparclinux
Who is the relevant Gaisler contact person these days for Linux stuff?
I sometimes uses Daniel, sometimes Konrad.
I can just add both of you - this is no problem.
As I plan to update the LEON integration it would be good
to have in place.
Anyway - the real question..
In head_32.S I need very early on to determine the CPU type,
so I can distingush between LEON and SUN.
This is due to LEON using a different ASI for mmuregs
as discussed in another mail.
I assume this can be determinded from PSR.
If this is correct - then what values shall I use
to determine if the relevant cpu is LEON or SUN?
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How to recognize a LEON CPU?
2012-05-21 16:22 How to recognize a LEON CPU? Sam Ravnborg
@ 2012-05-21 21:12 ` David Miller
2012-05-22 6:28 ` Konrad Eisele
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2012-05-21 21:12 UTC (permalink / raw)
To: sparclinux
From: Sam Ravnborg <sam@ravnborg.org>
Date: Mon, 21 May 2012 18:22:53 +0200
> I assume this can be determinded from PSR.
From arch/sparc/kernel/cpu.c:
psr IMPL 0xf with psr VERS of 3
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How to recognize a LEON CPU?
2012-05-21 16:22 How to recognize a LEON CPU? Sam Ravnborg
2012-05-21 21:12 ` David Miller
@ 2012-05-22 6:28 ` Konrad Eisele
2012-05-22 6:40 ` Daniel Hellstrom
2012-05-22 6:41 ` Daniel Hellstrom
3 siblings, 0 replies; 5+ messages in thread
From: Konrad Eisele @ 2012-05-22 6:28 UTC (permalink / raw)
To: sparclinux
Sam Ravnborg wrote:
> Who is the relevant Gaisler contact person these days for Linux stuff?
> I sometimes uses Daniel, sometimes Konrad.
The software groups leader is Daniel, I also
work on linux if there tasks to do, so both
can be mailed...
-- Konrad
>
> I can just add both of you - this is no problem.
> As I plan to update the LEON integration it would be good
> to have in place.
>
> Anyway - the real question..
>
> In head_32.S I need very early on to determine the CPU type,
> so I can distingush between LEON and SUN.
> This is due to LEON using a different ASI for mmuregs
> as discussed in another mail.
>
> I assume this can be determinded from PSR.
> If this is correct - then what values shall I use
> to determine if the relevant cpu is LEON or SUN?
>
> Sam
> --
> To unsubscribe from this list: send the line "unsubscribe sparclinux" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to recognize a LEON CPU?
2012-05-21 16:22 How to recognize a LEON CPU? Sam Ravnborg
2012-05-21 21:12 ` David Miller
2012-05-22 6:28 ` Konrad Eisele
@ 2012-05-22 6:40 ` Daniel Hellstrom
2012-05-22 6:41 ` Daniel Hellstrom
3 siblings, 0 replies; 5+ messages in thread
From: Daniel Hellstrom @ 2012-05-22 6:40 UTC (permalink / raw)
To: sparclinux
On 05/21/2012 06:22 PM, Sam Ravnborg wrote:
> Who is the relevant Gaisler contact person these days for Linux stuff?
> I sometimes uses Daniel, sometimes Konrad.
Please CC both of us. Kristoffer Glembo is no longer active though.
> I can just add both of you - this is no problem.
> As I plan to update the LEON integration it would be good
> to have in place.
>
> Anyway - the real question..
>
> In head_32.S I need very early on to determine the CPU type,
> so I can distingush between LEON and SUN.
> This is due to LEON using a different ASI for mmuregs
> as discussed in another mail.
>
> I assume this can be determinded from PSR.
> If this is correct - then what values shall I use
> to determine if the relevant cpu is LEON or SUN?
The LEON is SPARC compliant and has a registered number, from the manual (http://gaisler.com/products/grlib/grip.pdf section LEON3 and LEON4):
65.2.3 SPARC Implementor's ID
Gaisler Research is assigned number 15 (0xF) as SPARC implementor's identification. This value is
hard-coded into bits 31:28 in the %psr register. The version number for LEON3 is 3, which is hard-
coded in to bits 27:24 of the %psr.
Note that LEON3 and LEON4 have the same version number, they are software compatible.
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to recognize a LEON CPU?
2012-05-21 16:22 How to recognize a LEON CPU? Sam Ravnborg
` (2 preceding siblings ...)
2012-05-22 6:40 ` Daniel Hellstrom
@ 2012-05-22 6:41 ` Daniel Hellstrom
3 siblings, 0 replies; 5+ messages in thread
From: Daniel Hellstrom @ 2012-05-22 6:41 UTC (permalink / raw)
To: sparclinux
On 05/21/2012 11:12 PM, David Miller wrote:
> From: Sam Ravnborg<sam@ravnborg.org>
> Date: Mon, 21 May 2012 18:22:53 +0200
>
>> I assume this can be determinded from PSR.
> > From arch/sparc/kernel/cpu.c:
>
> psr IMPL 0xf with psr VERS of 3
Correct. As I written Sam:
The LEON is SPARC compliant and has a registered number, from the manual (http://gaisler.com/products/grlib/grip.pdf section LEON3 and LEON4):
65.2.3 SPARC Implementor's ID
Gaisler Research is assigned number 15 (0xF) as SPARC implementor's identification. This value is
hard-coded into bits 31:28 in the %psr register. The version number for LEON3 is 3, which is hard-
coded in to bits 27:24 of the %psr.
Note that LEON3 and LEON4 have the same version number, they are software compatible.
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-22 6:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 16:22 How to recognize a LEON CPU? Sam Ravnborg
2012-05-21 21:12 ` David Miller
2012-05-22 6:28 ` Konrad Eisele
2012-05-22 6:40 ` Daniel Hellstrom
2012-05-22 6:41 ` Daniel Hellstrom
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.