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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Metcalf
Date: Friday, May 28, 2010 - 9:45 am

On 5/25/2010 5:45 PM, Arnd Bergmann wrote:

I looked at where inb() and friends are used, and although we can get
close to not requiring them for tile, it's not quite there, and will
need some further discussions on the various lists to clean up enough
for our purposes.  There are three problems that surface when I try to
remove the inb family:

1. The ide-io-std.c file sets up the default_tp_ops, which we override
in our IDE driver, but we still have to build this file, and it contains
calls to inb, etc.

2. The usb pci quirks file contains some quirks that use inb and outb,
and since we support PCI, we have to try to compile this file.

3. CONFIG_DEVPORT defaults to yes, unless you're M68K.

None of this seems to depend on CONFIG_HAS_IOPORT.

Our PCI driver supports IOMEM read/write, but not IOPORT.

Perhaps something like CONFIG_ARCH_PCI_HAS_NO_IOPORT or some such, and
then we can disable all of the above things if that config option is
present (and CONFIG_HAS_IOPORT is false also?).

For now, I'll just leave the inb/outb implementation as panic() calls.

-- 
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, Geert Uytterhoeven, (Thu May 27, 6:41 am)
Re: [PATCH] arch/tile: new multi-core architecture for Linux, Chris Metcalf, (Fri May 28, 9:45 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)