[Top] [All Lists]

Re: RFC: Cleanup/detection patch

To: Keith M Wesolowski <>
Subject: Re: RFC: Cleanup/detection patch
From: Jun Sun <>
Date: Tue, 03 Apr 2001 19:43:07 -0700
References: <>
Keith M Wesolowski wrote:
> I have posted an initial copy of my patch for machine detection,
> namespace cleanup, and promlib abstraction at
>  This is against
> 2.4.2 CURRENT oss.  It currently passes my regression testsuite which
> unfortunately does not include an ip27 boot test.

Keith,  I am interested in this stuff, but I have not got time around to look
into it.  

Here are some of my thoughts on this issues.  Maybe you can clarify them here.

1. Right now, our tree (at least 32-bit) does not even support multiple CPUs
(with the same machine/board).  Take a look of
arch/mips/mm/loadmmu.c:loadmmu(), and you will see what I mean.  The CPU
specific ld_mmu_xxx is #ifdef'ed.  So if you enable multiple CPU, the last
ld_mmu_xxx will win!

So a modest step forward would be fixing that first.

2. Currently all CPU specific ld_mmu_xxx stuff lump cache and TLB together. 
That is not very good.  I have seen CPUs that can share cache but not TLB. 
Vice versa.  Personally I like to see their separation first before a more
dramatic scheme is in place.

3. Unfortunally not all CPUs can be fully probed at the run-time, specifically
the external cache size and geometry.  I was thinking perhaps a board
detection routine should be placed at the beginning which will supply external
cache info.  In addition it will probably set prom_init() pointer - yes, we do
have conflicting prom_init() from every board-specific implementation - and
board_setup() pointer.  What do you think?

Sorry for not giving you patch specific comments, but I figure if I don't spit
it out now it will be probably never. :-)


<Prev in Thread] Current Thread [Next in Thread>