Differentiate between two e500 core (in mult-core e500)

Wang Haiying-r54964 Haiying.Wang at freescale.com
Fri Feb 2 04:14:48 EST 2007


As Kumar said, you can differentiate cores by reading PIR register.
Core0 always starts up after Poweron. you can write a code to kick off
core1 in your bootcode, and direct core1's output in another serial
port, thus the both cores are running simutaneously, showing output in
different console. Then you test both cores as you planed.

Haiying  

>-----Original Message-----
>From: 
>linuxppc-embedded-bounces+haiying.wang=freescale.com at ozlabs.org
> 
>[mailto:linuxppc-embedded-bounces+haiying.wang=freescale.com at oz
>labs.org] On Behalf Of vinay hegde
>Sent: Wednesday, January 31, 2007 11:15 PM
>To: Kumar Gala
>Cc: linuxppc-embedded at ozlabs.org
>Subject: Re: Differentiate between two e500 core (in mult-core e500)
>
>Hi Kumar,
>
>Thanks for the pointers. This POST will run from the
>bootcode. 
>
>I looked into the block diagram for MPC8572, and it
>seems that apart from L1 caches other component are
>shared (foe ex, L2, table look-up unit, gigE, SDRAM).
>So, I was wondering whether we can do something like -
>run _all_ the POST from core 1 and run only L1 cache
>test from core 2. 
>
>Actually I referred 'e500 core Family Ref Manual', but
>could not get answer to my below question. 
>
>Thanks,
>Vinay.
>
>--- Kumar Gala <galak at kernel.crashing.org> wrote:
>
>> 
>> On Jan 31, 2007, at 2:02 AM, vinay hegde wrote:
>> 
>> > Hi,
>> >
>> > Actually, what I mean is, there are two
>> independent L1
>> > caches (one in first e500 core and other in second
>> > e500 core) in mpc8572. Now, if I am running cache
>> > test(POST) on mpc8572, I must somehow make sure
>> that
>> > it tests both the L1 caches. Generally, earlier
>> there
>> > used to be one e500 core, one L1 cache and hence
>> cache
>> > test does not need to query whether it is testing
>> L1
>> > of first core or L1 of second.
>> >
>> > So, how to make sure that I am testing L1 caches
>> on
>> > _both_ the e500 cores?
>> 
>> Ok, will it sounds like just want to run your tests
>> on both cores.   
>> It depends on how you are invoking your tests today.
>>  Is it from  
>> bootcode? or a Linux app or driver?
>> 
>> - k
>> 
>> >> On Jan 30, 2007, at 10:58 PM, vinay hegde wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> Sorry for the repeat mail on this, I forgot to
>> ask
>> >> the
>> >>> question;-)
>> >>>
>> >>> If anybody knows how to differentiate one e500
>> >> core
>> >>> from another (in multi-core proc's), please post
>> a
>> >>> message.
>> >>
>> >> Do you mean some software ID to know which core
>> you
>> >> are running on?
>> >>
>> >> If so the PIR should be used for this purpose.
>> >>
>> >> - k
>> >>
>> >>> --- vinay hegde <thisismevinay at yahoo.co.in>
>> wrote:
>> >>>
>> >>>> Hi,
>> >>>>
>> >>>> I have a need to write a POST sort of a test to
>> >> test
>> >>>> L1 data/inst cache residing on each of the e500
>> >> v2
>> >>>> multi-core seperately (for a network hardware).
>> >> This
>> >>>> is because multicore e500 has seperate L1
>> caches
>> >> and
>> >>>> shared L2 cache.
>> >>>>
>> >>>> This is for mpc8572. I learnt from this list
>> that
>> >>>> mpc8572 isn't out yet, but thought that
>> >>>> differentiating between e500 mult-cores has
>> >> nothing
>> >>>> to
>> >>>> do with mpc8572.
>> >>>>
>> >>>> Please let me know if you have any inputs.
>> >>>>
>> >>>> Thanks,
>> >>>> Vinay.
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>
>> >
>>
>______________________________________________________________________
>> >>
>> >>> ______________
>> >>>> Expecting? Get great news right away with email
>> >>>> Auto-Check.
>> >>>> Try the Yahoo! Mail Beta.
>> >>>>
>> >>>
>> >>
>> >
>>
>http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
>> >>>>
>> >>>> _______________________________________________
>> >>>> Linuxppc-embedded mailing list
>> >>>> Linuxppc-embedded at ozlabs.org
>> >>>>
>> >>>
>> >>
>> >
>>
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >
>>
>______________________________________________________________________
>> >>
>> >>> ______________
>> >>> Don't get soaked.  Take a quick peak at the
>> >> forecast
>> >>> with the Yahoo! Search weather shortcut.
>> >>>
>> >>
>> http://tools.search.yahoo.com/shortcuts/#loc_weather
>> >>> _______________________________________________
>> >>> Linuxppc-embedded mailing list
>> >>> Linuxppc-embedded at ozlabs.org
>> >>>
>> >>
>> >
>>
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>> >>
>> >>
>> >
>> >
>> >
>> >
>> >
>>
>______________________________________________________________________
>> 
>> > ______________
>> > 8:00? 8:25? 8:40? Find a flick in no time
>> > with the Yahoo! Search movie showtime shortcut.
>> > http://tools.search.yahoo.com/shortcuts/#news
>> 
>> 
>
>
>
> 
>_______________________________________________________________
>_____________________
>Expecting? Get great news right away with email Auto-Check. 
>Try the Yahoo! Mail Beta.
>http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 
>_______________________________________________
>Linuxppc-embedded mailing list
>Linuxppc-embedded at ozlabs.org
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>



More information about the Linuxppc-embedded mailing list