Re: [PATCH] arch/tile: new multi-core architecture for Linux

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Metcalf
Date: Thursday, May 27, 2010 - 6:30 am

On 5/27/2010 4:41 AM, Arnd Bergmann wrote:

No, we haven't tried to do this.  I suppose it would be possible to port
the TILE-Gx kernel to use -m32 mode and HIGHMEM, but I think it would
just uglify the code.  :-)



Right, true enough.  I'm still building internally with
__ARCH_WANT_SYSCALL_OFF_T, so some extra compat functions are still
needed for linking the kernel.  I'll try to remember to unifdef them out
of the code I submit back to the community.

  


Yes, good point.  I'll be holding back this code from the initial patch,
so I can think about it some more.  I'm still predisposed to avoid
adding system calls in general, though.


OK, I bombed all our existing drivers to use .unlocked_ioctl.  It's
convenient that unlocked_ioctl now has the same signature as compat_ioctl.


We do now.  At the time we (semi-speculatively) wrote the hugevmap code,
we didn't.  I won't return this code to the community until we actually
use it, in any case.


We don't define CONFIG_HAVE_MMIO, but drivers certainly seem to use
ioread/iowrite methods as well as inb/outb without guarding them with
any particular tests, so we have to provide definitions of some kind for
all of them.  I'll confer with our PCI developer to see if we can clean
up the set of definitions in io.h.


We use this not for the floating-point operations, but for integer
divide-by-zero.  In principle we could use it for floating-point too,
but we currently don't, since generally folks don't expect it there.


Yes, we could override this in libc.  My assumption was that it was
cleaner to do it in the kernel, since we support uclibc and glibc, and
doing it in the kernel meant only doing it in one place.


I'll keep it as-is, then.  Like the sendfile discussion above, we'll
need both for now, but I'll see if I can unifdef the unwanted ones out
for the community.


Does this imply separate git commits to our repository, if we want to do
things the Right Way?  I always tend to try to commit things in such a
way that everything is always buildable between each commit, and I can't
easily pull out the disassembly-related files from the kernel.  On the
other hand I can easily split up a single bit GIT commit-patch into
multiple emails, but then of course it wouldn't apply easily to a "git
am".  Guidance??  :-)

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] arch/tile: new multi-core architecture for Linux, Chris Metcalf, (Wed May 19, 10:43 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux, Thomas Gleixner, (Tue May 25, 1:12 pm)
Re: [PATCH] arch/tile: new multi-core architecture for Linux, Chris Metcalf, (Thu May 27, 6:30 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux, Geert Uytterhoeven, (Thu May 27, 6:41 am)
[PATCH 4/8] arch/tile: core kernel/ code., Chris Metcalf, (Fri May 28, 8:10 pm)
[PATCH 5/8] arch/tile: the kernel/tile-desc_32.c file., Chris Metcalf, (Fri May 28, 8:11 pm)
[PATCH 6/8] arch/tile: the mm/ directory., Chris Metcalf, (Fri May 28, 8:13 pm)
[PATCH 7/8] arch/tile: lib/ directory., Chris Metcalf, (Fri May 28, 8:16 pm)
[PATCH 8/8] arch/tile: hypervisor console driver., Chris Metcalf, (Fri May 28, 8:17 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Chris Metcalf, (Fri May 28, 8:20 pm)
[PATCH 0/8] revised patch for arch/tile/ support, Chris Metcalf, (Fri May 28, 8:20 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Arnd Bergmann, (Sat May 29, 4:29 am)
Re: [PATCH 4/8] arch/tile: core kernel/ code., FUJITA Tomonori, (Sun May 30, 7:58 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Arnd Bergmann, (Thu Jun 3, 1:40 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Chris Metcalf, (Thu Jun 3, 2:48 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Chris Metcalf, (Fri Jun 4, 2:32 pm)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Stephen Rothwell, (Sat Jun 5, 5:56 am)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Chris Metcalf, (Sat Jun 5, 6:30 am)
Re: [PATCH 0/8] revised patch for arch/tile/ support, Stephen Rothwell, (Sat Jun 5, 7:10 am)