From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: axp-list@redhat.com
Subject: Re: Problems with SX164 IDE in recent 2.3
Date: Wed, 25 Aug 1999 15:39:58 +0400 [thread overview]
Message-ID: <19990825153958.A1989@jurassic.park.msu.ru> (raw)
In-Reply-To: <19990824232932.A21308@twiddle.net>; from Richard Henderson on Tue, Aug 24, 1999 at 11:29:32PM -0700
On Tue, Aug 24, 1999 at 11:29:32PM -0700, Richard Henderson wrote:
> The correct place to poke things is in arch/alpha/kernel/bios32.c,
> in function layout_device.
>
Well, it seems like BASE0 and BASE1 (IDE ports) left initialized
to all ones after Cypress IDE check. I think moving this check
to the beginning of the cycle should help.
Ivan.
--- bios32.c.orig Fri Aug 13 22:53:50 1999
+++ bios32.c Wed Aug 25 15:32:54 1999
@@ -481,6 +481,16 @@
pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
for (idx = 0; idx <= 5; idx++) {
+ /* We don't want to disturb normal IDE functions, so
+ we don't touch the first two I/O ports on the
+ Cypress. */
+ if (dev->vendor == PCI_VENDOR_ID_CONTAQ
+ && dev->device == PCI_DEVICE_ID_CONTAQ_82C693
+ && dev->devfn < 3
+ && idx < 2) {
+ continue;
+ }
+
off = PCI_BASE_ADDRESS_0 + 4*idx;
/*
* Figure out how much space and of what type this
@@ -516,15 +526,6 @@
base &= PCI_BASE_ADDRESS_IO_MASK;
mask = (~base << 1) | 0x1;
size = (mask & base) & 0xffffffff;
-
- /* We don't want to disturb normal IDE functions, so
- we don't touch the first two I/O ports on the
- Cypress. */
- if (dev->vendor == PCI_VENDOR_ID_CONTAQ
- && dev->device == PCI_DEVICE_ID_CONTAQ_82C693
- && idx < 2) {
- continue;
- }
/*
* Aligning to 0x800 rather than the minimum base of
next prev parent reply other threads:[~1999-08-25 11:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-17 7:09 Problems with SX164 IDE in recent 2.3 Mitchell Blank Jr
1999-08-23 5:51 ` Mitchell Blank Jr
1999-08-24 18:25 ` Ivan Kokshaysky
1999-08-24 18:34 ` bushman
1999-08-24 22:25 ` PCXCV-AC Antonio S. Martins Jr.
1999-08-25 4:33 ` Problems with SX164 IDE in recent 2.3 Mitchell Blank Jr
1999-08-25 6:29 ` Richard Henderson
1999-08-25 11:39 ` Ivan Kokshaysky [this message]
1999-08-25 17:59 ` Mitchell Blank Jr
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox