Re: Microblaze Linux release

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <monstr@...>
Cc: Stephen Neuendorffer <stephen.neuendorffer@...>, John Williams <john.williams@...>, <jwboyer@...>, <benh@...>, John Linn <John.Linn@...>, <git-dev@...>, Grant Likely <grant.likely@...>, <git@...>, <microblaze-uclinux@...>, <linux-kernel@...>, <paulus@...>
Date: Tuesday, April 15, 2008 - 9:32 am

On Tuesday 15 April 2008, Michal Simek wrote:


I think the easiest way is to include those patches in your series
and ask for an Acked-by from paulus.

The order of the patches should be:

1. fix up any coding style issues you have found
2. move the files without further changes to drivers/of
3. add whatever code you need to make it work on both architectures

Be careful not to break sparc in the process, as they are already
sharing substantial parts of the OF code with powerpc.


2.6.26 will have a common implementation in kernel/semaphore.c.
All you need is a one-line asm/semaphore.h to #include linux/semaphore.h.


From what I can see, your consistent.c code is just wrong and uses an
obsolete interface. Since you currently don't use it, I'd suggest to
drop it from your current tree for the merge. We can discuss it again
when you add MMU support.
 

LMB doesn't have much to do with an MMU, but more with the way certain IBM
machines extend the OF interfaces.

I'd recommend splitting prom.c into code that can be shared between powerpc
and microblaze and architecture specific code. Anything that deals with
LMB should go into powerpc, and you can simply use the alloc_bootmem
mechanism for your architecture.
 

That was not my point, although it would be a good idea as well.
The important bit is that your version of these files don't contain
any architecture specific code (no guarantees, my review may have
been sloppy). Even if every architecture so far has a different
version of them, but any of them would be ok for you, please throw
one of them into asm-generic and start using it.
All future architectures can simply use that copy as well, as long as
they have the same constraints (e.g. you atomic.h assumes there are
no atomic operations other than spinlock, iirc).

If you want to be really nice, look for the most common implementation
across the existing architectures and put that into asm-generic.
Also, please cc the linux-arch mailing list on any patch that adds
a file in asm-generic.


Sorry, my comment was impossible to understand ;-).
What I meant is that a new architecture should not define these macros, because
only architectures with a need for backwards compatibility want the syscalls
they enable. If you find an exception and think you need one of them, please
tell us.

	Arnd <><
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Microblaze Linux release, Michal Simek, (Sun Apr 13, 9:26 am)
Re: Microblaze Linux release, Arnd Bergmann, (Sun Apr 13, 11:38 pm)
Re: Microblaze Linux release, Michal Simek, (Mon Apr 14, 3:10 am)
Re: Microblaze Linux release, Arnd Bergmann, (Mon Apr 14, 2:01 am)
Re: Microblaze Linux release, Michal Simek, (Tue Apr 15, 8:54 am)
RE: [microblaze-uclinux] Re: Microblaze Linux release, Stephen Neuendorffer, (Fri Apr 18, 1:56 pm)
Re: [microblaze-uclinux] Re: Microblaze Linux release, Michal Simek, (Sat Apr 19, 6:38 am)
Re: Microblaze Linux release, Arnd Bergmann, (Tue Apr 15, 9:32 am)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 23, 4:57 pm)
Re: Microblaze Linux release, Benjamin Herrenschmidt, (Tue Apr 15, 5:52 pm)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 23, 5:35 pm)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 16, 2:24 am)
Re: Microblaze Linux release, Benjamin Herrenschmidt, (Wed Apr 16, 3:45 am)
Re: Microblaze Linux release, Paul Mackerras, (Wed Apr 16, 3:31 am)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 16, 11:26 am)
Re: Microblaze Linux release, Arnd Bergmann, (Wed Apr 16, 3:44 am)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 16, 11:28 am)
Re: Microblaze Linux release, Arnd Bergmann, (Wed Apr 16, 11:33 am)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 23, 4:55 pm)
Re: Microblaze Linux release, Florian Fainelli, (Wed Apr 23, 4:57 pm)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 23, 5:22 pm)
Re: Microblaze Linux release, John Williams, (Wed Apr 23, 6:51 pm)
Re: Microblaze Linux release, Arnd Bergmann, (Wed Apr 23, 5:01 pm)
Re: Microblaze Linux release, Michal Simek, (Wed Apr 23, 5:08 pm)
Re: Microblaze Linux release, H. Peter Anvin, (Mon Apr 14, 1:10 am)
Re: Microblaze Linux release, Arnd Bergmann, (Mon Apr 14, 2:55 am)
Re: Microblaze Linux release, Josh Boyer, (Sun Apr 13, 11:13 am)
Re: Microblaze Linux release, Michal Simek, (Sun Apr 13, 2:50 pm)
RE: Microblaze Linux release, Stephen Neuendorffer, (Mon Apr 14, 11:55 am)
Re: Microblaze Linux release, Michal Simek, (Tue Apr 15, 8:59 am)
Re: Microblaze Linux release, Grant Likely, (Sun Apr 13, 9:33 am)
Re: Microblaze Linux release, Michal Simek, (Sun Apr 13, 11:44 am)