[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091125113622.5b1218b0@lxorguk.ukuu.org.uk>
Date: Wed, 25 Nov 2009 11:36:22 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Dominik Brodowski <linux@...inikbrodowski.net>
Cc: x86@...nel.org, Komuro <komurojun-mbn@...ty.com>,
linux-pcmcia@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: ioports 0x100-0x3af and iomem 0xd000-0xdffff,
0xa0000000-0xa0ffffff -- safe to use on x86 for pcmcia?
> This latter configuration file most often contains
> include port 0x100-0x3af
> include memory 0xc0000-0xfffff
> include memory 0xa0000000-0xa0ffffff
Which crashes older thinkpads, some ATI chipset systems and
usually anything containing an NE2000 clone in ISA space.
> And so Komuro (CCed) suggested to add these default resource entries to the
> kernel, so that it can later use parts of these resource areas to enable
> PCMCIA devices without userspace interaction.
>
> Do you think it would be safe to enable these areas by (kernel) default on
> x86? Of course, other entries in /proc/io{mem,ports} would be honoured, there
> would be a boot option to disable this feature, and some tests are run on the
> iomem and ioport resource areas.
The problem you have is that you change the ordering.
If you load the ne2k ISA driver before pcmcia (as occurs now because of
it being done from user space) the resources get claimed first. If you do
it the other way around and test then merely reading an I/O register
mapped to an NE2K or most NE2K clones crashes the machine.
Are there any modern systems where the PCI based autoconfig is
insufficient, or is this just ancient stuff ?
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists