From: Christoph Hellwig <hch@lst.de> Date: 2004-02-03 21:03:21
I've recently switched CONFIG_ISA on to compile-test various scsi
drivers and get lots of warnings like:
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_bus_to_virt
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_page_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_virt_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol udelay
from looking at other architectures it looks like architectures
supporting CONFIG_ISA are supposed to supply them. Any idea how to
implement this properly for ppc? (and no, I can't test it, by mac
doesn't actually have an isa bus)
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2004-02-03 22:25:30
On Wed, 2004-02-04 at 08:03, Christoph Hellwig wrote:
I've recently switched CONFIG_ISA on to compile-test various scsi
drivers and get lots of warnings like:
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_bus_to_virt
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_page_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_virt_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol udelay
udelay is a different story, the driver probably lacks an include
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
On Tue, Feb 03, 2004 at 10:03:21PM +0100, Christoph Hellwig wrote:
I've recently switched CONFIG_ISA on to compile-test various scsi
drivers and get lots of warnings like:
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_bus_to_virt
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_page_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_virt_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol udelay
from looking at other architectures it looks like architectures
supporting CONFIG_ISA are supposed to supply them. Any idea how to
implement this properly for ppc? (and no, I can't test it, by mac
doesn't actually have an isa bus)
On PPC32, CONFIG_ISA is kinda hack'ish. I know it will / must work on
PRePs, and it _may_ but I'm not certain of some CHRP machines as well.
So you can probably look at the i386 versions of the functions (save for
udelay as Ben mentioned) and do something like:
if (_machine == _MACH_prep) {
... do i386 version ...
} else
return -EINVAL; // whatever
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
From: Olaf Hering <hidden> Date: 2004-02-04 09:40:17
On Tue, Feb 03, Christoph Hellwig wrote:
I've recently switched CONFIG_ISA on to compile-test various scsi
drivers and get lots of warnings like:
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_bus_to_virt
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_page_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol isa_virt_to_bus
WARNING: /lib/modules/2.6.2-rc3/kernel/drivers/scsi/wd7000.ko needs unknown symbol udelay
Who is using that kind of hardware on ppc32?
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
From: Christoph Hellwig <hch@lst.de> Date: 2004-02-14 16:46:11
On Tue, Feb 03, 2004 at 04:17:28PM -0700, Tom Rini wrote:
On PPC32, CONFIG_ISA is kinda hack'ish. I know it will / must work on
PRePs, and it _may_ but I'm not certain of some CHRP machines as well.
So you can probably look at the i386 versions of the functions (save for
udelay as Ben mentioned) and do something like:
if (_machine == _MACH_prep) {
... do i386 version ...
} else
return -EINVAL; // whatever
Well, there's no really sane error return for any of those, but as these
routines are clearly for isa drivers only I'd just implement the prep
versions.
Does this patch look okay?
--- 1.16/include/asm-ppc/io.h Wed Feb 4 06:31:18 2004+++ edited/include/asm-ppc/io.h Fri Feb 13 07:30:39 2004
On Tue, Feb 03, 2004 at 04:17:28PM -0700, Tom Rini wrote:
quoted
On PPC32, CONFIG_ISA is kinda hack'ish. I know it will / must work on
PRePs, and it _may_ but I'm not certain of some CHRP machines as well.
So you can probably look at the i386 versions of the functions (save for
udelay as Ben mentioned) and do something like:
if (_machine == _MACH_prep) {
... do i386 version ...
} else
return -EINVAL; // whatever
Well, there's no really sane error return for any of those, but as these
routines are clearly for isa drivers only I'd just implement the prep
versions.
Does this patch look okay?
--- 1.16/include/asm-ppc/io.h Wed Feb 4 06:31:18 2004+++ edited/include/asm-ppc/io.h Fri Feb 13 07:30:39 2004
@@ -265,6 +285,13 @@ return (void*) mm_ptov (address); #endif }++/*+ * ISA I/O bus memory addresses are 1:1 with the physical address.+ */+#define isa_virt_to_bus virt_to_phys+#define isa_page_to_bus page_to_phys+#define isa_bus_to_virt phys_to_virt
Same for this.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2004-02-15 12:24:36
quoted
+#define __ISA_IO_base ((char *)(PAGE_OFFSET))
This is not true, I think.
Don't we have an isa_io_base and isa_mem_base ? let's just use
these and return 0xffffffff if not there... (assume base = 0 as
non-existing is safe, we'll never ioremap these at 0 physical)
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2004-02-15 12:25:15
On Sun, 2004-02-15 at 23:24, Benjamin Herrenschmidt wrote:
quoted
quoted
+#define __ISA_IO_base ((char *)(PAGE_OFFSET))
This is not true, I think.
Don't we have an isa_io_base and isa_mem_base ? let's just use
these and return 0xffffffff if not there... (assume base = 0 as
non-existing is safe, we'll never ioremap these at 0 physical)
I mean at 0 virtual of course ... time to go to bed
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/