linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 405GPr support in linux2.4.18
@ 2003-02-18 10:11 Laurent Mohin
  2003-02-19  8:54 ` Eugene Surovegin
  0 siblings, 1 reply; 4+ messages in thread
From: Laurent Mohin @ 2003-02-18 10:11 UTC (permalink / raw)
  To: linuxppc-embedded


Hello all,

I'm designing a board with 405GP processor. I'm now trying to have it
working with a 405GPr version.
I've started to configure it working in legacy mode and made the necessary
changes in PPCBoot.

Once downloaded, my kernel hung in early_init function when it called the
memset_io to zero the BSS. Using a BDI2000 debugger, I saw that I've
reached the bad_page_fault function.

The only difference I know between 405GP and 405GPr in legacy mode is data
cache size. How does the kernel manage it?

I'm currently using kernel 2.4.18 from Montavista.

Any help is welcome,

Laurent


Laurent MOHIN
ACTERNA


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 405GPr support in linux2.4.18
  2003-02-18 10:11 405GPr support in linux2.4.18 Laurent Mohin
@ 2003-02-19  8:54 ` Eugene Surovegin
  2003-02-19  9:15   ` Eugene Surovegin
  0 siblings, 1 reply; 4+ messages in thread
From: Eugene Surovegin @ 2003-02-19  8:54 UTC (permalink / raw)
  To: Laurent Mohin; +Cc: linuxppc-embedded


At 02:11 AM 2/18/2003, Laurent Mohin wrote:
>I'm designing a board with 405GP processor. I'm now trying to have it
>working with a 405GPr version.
>I've started to configure it working in legacy mode and made the necessary
>changes in PPCBoot.
>
>Once downloaded, my kernel hung in early_init function when it called the
>memset_io to zero the BSS. Using a BDI2000 debugger, I saw that I've
>reached the bad_page_fault function.
>
>The only difference I know between 405GP and 405GPr in legacy mode is data
>cache size. How does the kernel manage it?

We successfully run 405GPr based board (in legacy mode) with the _same_
kernel we used for 405GP.
We don't use any 405GPr specific features though.

As far as I understand, the only function which depends on the data cache
size is flush_dcache_all in (arch/ppc/kernel/misc.S).
But it already handles the worst case which is 440GP (32K), so no change is
needed for 405GPr.

Eugene


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 405GPr support in linux2.4.18
  2003-02-19  8:54 ` Eugene Surovegin
@ 2003-02-19  9:15   ` Eugene Surovegin
  0 siblings, 0 replies; 4+ messages in thread
From: Eugene Surovegin @ 2003-02-19  9:15 UTC (permalink / raw)
  To: Laurent Mohin; +Cc: linuxppc-embedded


At 12:54 AM 2/19/2003, Eugene Surovegin wrote:

>At 02:11 AM 2/18/2003, Laurent Mohin wrote:
>>I'm designing a board with 405GP processor. I'm now trying to have it
>>working with a 405GPr version.
>>I've started to configure it working in legacy mode and made the necessary
>>changes in PPCBoot.
>>
>>Once downloaded, my kernel hung in early_init function when it called the
>>memset_io to zero the BSS. Using a BDI2000 debugger, I saw that I've
>>reached the bad_page_fault function.
>>
>>The only difference I know between 405GP and 405GPr in legacy mode is data
>>cache size. How does the kernel manage it?
>
>We successfully run 405GPr based board (in legacy mode) with the _same_
>kernel we used for 405GP.
>We don't use any 405GPr specific features though.
>
>As far as I understand, the only function which depends on the data cache
>size is flush_dcache_all in (arch/ppc/kernel/misc.S).
>But it already handles the worst case which is 440GP (32K), so no change is
>needed for 405GPr.

Small correction. We use 2_4_devel tree.

I just checked MVL 2.1 and 3.0 sources.
flush_dcache_all in those trees is an old one, which doesn't support caches
large than 8K.

You may consider using 2_4_devel for your 405GPr based board.

Eugene


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 405GPr support in linux2.4.18
@ 2003-02-19 10:53 Laurent Mohin
  0 siblings, 0 replies; 4+ messages in thread
From: Laurent Mohin @ 2003-02-19 10:53 UTC (permalink / raw)
  To: Eugene Surovegin; +Cc: Laurent Mohin, linuxppc-embedded


Eugene,

Thanks for your response.

I've checked that when my kernel hangs, it hasn't hit the flush_dcache_all
breakpoint I've put.
Nevertheless, I will try using the new function used in the 2_4_devel tree.

Laurent


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-19 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-18 10:11 405GPr support in linux2.4.18 Laurent Mohin
2003-02-19  8:54 ` Eugene Surovegin
2003-02-19  9:15   ` Eugene Surovegin
  -- strict thread matches above, loose matches on Subject: below --
2003-02-19 10:53 Laurent Mohin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).