From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22343 invoked from network); 25 Aug 1999 04:33:04 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 25 Aug 1999 04:33:04 -0000 Received: from schmee.sfgoth.com (mitch@schmee.sfgoth.com [204.188.110.18]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA00562 for ; Wed, 25 Aug 1999 00:33:03 -0400 Received: (from mitch@localhost) by schmee.sfgoth.com (8.9.3/8.9.3) id VAA57025 for axp-list@redhat.com; Tue, 24 Aug 1999 21:33:02 -0700 (PDT) Date: Tue, 24 Aug 1999 21:33:02 -0700 From: Mitchell Blank Jr To: axp-list@redhat.com Subject: Re: Problems with SX164 IDE in recent 2.3 Message-ID: <19990824213302.A56965@sfgoth.com> References: <19990817000925.B46404@sfgoth.com> <19990822225139.A27981@sfgoth.com> <19990824222539.A767@jurassic.park.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990824222539.A767@jurassic.park.msu.ru>; from Ivan Kokshaysky on Tue, Aug 24, 1999 at 10:25:39PM +0400 Ivan Kokshaysky wrote: > Interesting. Recent 2.3.x kernels somehow break settings of the Cypress chip, > so IDE addresses are bogus (something like 0xfff0). As a temporary workaround > try this hack (tested with 2.3.15pre2), it set IDE i/o back to 0x1f0/0x170. Thanks for the reply! I've really been beating my head against the wall on this one... I'm certainly not adverse to hacking on the kernel, but IDE and PCI are far away from my areas of expertise, so the going is VERY slow. Unfortunately the patch didn't QUITE work - it seems that now it's mapping some of the IDE space correctly, but not enough.... now I get: CY82C693: IDE controller on PCI bus 00 dev 41 CY82C693: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x8800-0x8807, BIOS settings: hda:pio, hdb:pio CY82C693U driver v0.33 99-01-23 Andreas S. Krebs (akrebs@altavista.net) ide1: BM-DMA at 0x8808-0x880f, BIOS settings: hdc:pio, hdd:pio hda: probing with STATUS(0x50) instead of ALTSTATUS(0xff) hda: IBM-DJNA-371800, ATA DISK drive hdb: probing with STATUS(0x00) instead of ALTSTATUS(0xff) hdb: probing with STATUS(0x00) instead of ALTSTATUS(0xff) ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hda: IBM-DJNA-371800, 17206MB w/1966kB Cache, CHS=34960/16/63, (U)DMA [...] Partition check: hda:Dev 03:00 Sun disklabel: bad magic 1c17 unknown partition table attempt to access beyond end of device 03:02: rw=0, want=2, limit=0 EXT2-fs: unable to read superblock Kernel panic: VFS: Unable to mount root fs on 03:02 So I could do a STATUS, but not an ALTSTATUS and could get the drive's identity but not do real I/O. You're clearly on the right track, though. Tha above was with .15pre2. I'll try some other variations and tweaking and if I get something different I'll let you know (.15pre3 is out of the question because the PCI merge is going to require some enlightened tweaking of arch/alpha/kernel/bios32.c to sort out, but I can fall back to .14rth2 and see how that goes) -Mitch