ide.2.2.15.20000509 patch breaks WDC31200F w/ VIA 82C586B

From: Matthias Andree (ma@dt.e-technik.uni-dortmund.de)
Date: Sun May 21 2000 - 08:30:40 EST


Hi,

I have recently upgraded my machine to a heavily patched 2.2.15 kernel,
and I saw error messages such as /dev/hdc: unknown partition table. hdc
is an old Western Digital Caviar AC 31200F (1.2 GB, mid-90s).

I then backed out the ide.2.2.15.20000509 patch and /dev/hdc was fine
again. Note hdparm -i seems unaffected of these problems, the output
below is the same regardless. Note that hda, which is a 1999 WDC
AC420400D is fine with either kernel version (patched as well as
unpatched). Turning off DMA or explicitly programming PIO 0 with hdparm
does not help either.

hdparm -i output of the drives and lspci output below.

Note that fdisk -l and sfdisk -l also stated that the partition table
was unknown. Note it was nothing with the geometry, I booted with the
proper geometry set as well, at no avail.

Note also that dd if=/dev/hdc count=1 bs=512 | hexdump showed a lot of
0x55's in the MBR that are not present when doing the same command with
an unpatched 2.2.15. This may be a hint to misprogrammed or mismatching
transfer modes in the drive and chipset.

The BIOS and Linux kernel default to (U)DMA upon boot-up. ide0 is
autotuned as per kernel boot command line, ide1 (hdc) is not.

I am willing to help debug further, please send directions.

/sbin/lspci:
 00:00.0 Host bridge: VIA Technologies, Inc. VT82C597 [Apollo VP3] (rev 04)
 00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3 AGP]
 00:07.0 ISA bridge: VIA Technologies, Inc. VT82C586 ISA [Apollo VP] (rev 41)
>00:07.1 IDE interface: VIA Technologies, Inc. VT82C586 IDE [Apollo] (rev 06)
 00:07.2 USB Controller: VIA Technologies, Inc. VT82C586B USB (rev 02)
 00:07.3 Host bridge: VIA Technologies, Inc. VT82C586B ACPI (rev 10)
 00:08.0 Ethernet controller: 3Com Corporation 3c900 Combo [Boomerang]
 00:09.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 02)
 00:09.1 Multimedia controller: Brooktree Corporation Bt878 (rev 02)
 00:0a.0 SCSI storage controller: Symbios Logic Inc. (formerly NCR) 53c875 (rev 03)
 00:0b.0 SCSI storage controller: Advanced Micro Devices 53c974 [PCscsi] (rev 10)
 01:00.0 VGA compatible controller: Nvidia Corporation Riva TNT (rev 04)

Additional information from lspci -vv:
 00:07.1 IDE interface: VIA Technologies, Inc. VT82C586 IDE [Apollo] (rev 06) (prog-if 8a)
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
         Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
         Latency: 32 set
         Region 4: I/O ports at d000
 
/dev/hda:

 Model=WDC AC420400D, FwRev=J58OA30K, SerialNo=[REMOVED FOR PRIVACY]
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=34
 BuffType=3(DualPortCache), BuffSize=1966kB, MaxMultSect=16, MultSect=16
 DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=39876480
 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, PIO modes: mode3 mode4

/dev/hdc:

>Model=WDC AC31200F, FwRev=14.04E28, SerialNo=[REMOVED FOR PRIVACY]
>Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
>RawCHS=2484/16/63, TrkSize=57600, SectSize=600, ECCbytes=4
>BuffType=3(DualPortCache), BuffSize=64kB, MaxMultSect=16, MultSect=4
>DblWordIO=no, maxPIO=1(medium), DMA=yes, maxDMA=0(slow)
>CurCHS=2484/16/63, CurSects=2503872, LBA=yes, LBAsects=2503872
>tDMA={min:150,rec:150}, DMA modes: mword0 *mword1
>IORDY=on/off, tPIO={min:380,w/IORDY:180}, PIO modes: mode3

-- 
Matthias Andree

Where do you think you're going today?

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:19 EST