From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3797 invoked from network); 25 Aug 1999 11:40:35 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 25 Aug 1999 11:40:35 -0000 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA22156 for ; Wed, 25 Aug 1999 07:40:28 -0400 Received: (from ink@localhost) by jurassic.park.msu.ru (8.9.3/8.9.3) id PAA02026 for axp-list@redhat.com; Wed, 25 Aug 1999 15:39:58 +0400 Date: Wed, 25 Aug 1999 15:39:58 +0400 From: Ivan Kokshaysky To: axp-list@redhat.com Subject: Re: Problems with SX164 IDE in recent 2.3 Message-ID: <19990825153958.A1989@jurassic.park.msu.ru> References: <19990817000925.B46404@sfgoth.com> <19990822225139.A27981@sfgoth.com> <19990824222539.A767@jurassic.park.msu.ru> <19990824232932.A21308@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i 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