public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: siimage driver status
@ 2003-06-04 17:23 Rob Browning
  0 siblings, 0 replies; 20+ messages in thread
From: Rob Browning @ 2003-06-04 17:23 UTC (permalink / raw)
  To: linux-kernel


Alan Cox (alan@lxorguk.ukuu.org.uk) writes:
> On Iau, 2003-05-29 at 15:32, Wm. Josiah Erikson wrote:
> > hard drives that I'm trying to get to work with linux 2.4.21-rc6. The
> > problem I'm having is that it's REALLY slow and crashy. The kernel reports
> > this on bootup:
>
> I'm running the siimage driver fine with several drives. Your setup
> is intriguing in that the BIOS has chosen to leave the drives in PIO
> mode

As an extra datapoint I have very a very similar problem with a WD360
drive and an siimage 3112 PCI controller on a shuttle (via-based)
AK31V2.0 motherboard.

The sii3112 interfaces show up as ide0 and ide1 (can that be changed?)
using MMIO-DMA/pio.  Testing the drive as-is results in ~3.5MB/s
transfer rates (via hdparm -t), and attempting to enable DMA via
"hdparm -d 1" results in an immediate lockup the next time the drive
is accessed.

When I get another chance, I'll probably try the two fixes others in
this thread have suggested:

  hdparm -X66 -d1 /dev/hda

and if that still has trouble under load, someone suggested:

  echo "max_kb_per_request:15" > /proc/ide/hda/settings

Hope this helps.

(I'm not on the list right now, so please cc any replies you want to
 make sure I see -- thanks.)

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: siimage driver status
@ 2003-05-31  9:34 Inigo Surguy
  0 siblings, 0 replies; 20+ messages in thread
From: Inigo Surguy @ 2003-05-31  9:34 UTC (permalink / raw)
  To: linux-kernel

From: lk@trolloc.com (lk@trolloc.com)
> I reinstalled my SiImage controller this morning because I hadn't
> documented using the -X66 switch during my previous testing.  It actually
> makes a bit of a difference- the DMA enables and THEN the machine locks
> hard when any reasonable amount of data is written to the drives on the
> controller.
> 
> I get two console messages before the machine locks hard:
> hde: dma_timer_expiry: dma status == 0x22
> hde: dma_timer_expiry status = 0xd8 { Busy }
> 

I have the same problem - I have an Asus A7N8X using the SiI3112A, with a
Seagate Barracuda SATA ST380023AS. It comes up (and works, but very slowly)
in pio.

When I enable DMA with hdparm -d1 /dev/hde, or hdparm -Xudma2 -d1,
then I get the dma_timer_expiry messages above, and then a hard lock.

When I enable DMA with hdparm -Xudma6 -d1, or hdparm -Xudma5 -d1, then the
DMA enables, I can hdparm -t to see that transfer rate is much better (25x)
than before, but as soon as I write to the drive I get the dma_timer_expiry
messages above. 

(Dual-boot Windows XP is using UDMA6 for this drive)

There's similar behaviour under 2.4.20, 2.4.21rc5ac2 and 2.4.21rc6.

Inigo

---

/var/log/messages

May 29 19:53:22 localhost kernel: NFORCE2: IDE controller at PCI slot 00:09.0
May 29 19:53:22 localhost kernel: NFORCE2: chipset revision 162
May 29 19:53:22 localhost kernel: NFORCE2: not 100%% native mode: will probe irqs later
May 29 19:53:22 localhost kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
May 29 19:53:22 localhost kernel: AMD_IDE: PCI device 10de:0065 (nVidia Corporation) (rev a2) UDMA100 controller on pci00:09.0
May 29 19:53:22 localhost kernel:     ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
May 29 19:53:22 localhost kernel:     ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
May 29 19:53:22 localhost kernel: SiI3112 Serial ATA: IDE controller at PCI slot 01:0b.0
May 29 19:53:22 localhost kernel: SiI3112 Serial ATA: chipset revision 2
May 29 19:53:22 localhost kernel: SiI3112 Serial ATA: not 100%% native mode: will probe irqs later
May 29 19:53:22 localhost kernel:     ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio
May 29 19:53:22 localhost kernel:     ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio
May 29 19:53:22 localhost autofs: automount startup succeeded
May 29 19:53:22 localhost automount[1145]: starting automounter version 3.1.7, path = /automount/cabbit, maptype = file, mapname = /etc/auto.cabbit
May 29 19:53:22 localhost kernel: hda: Pioneer DVD-ROM ATAPIModel DVD-104S 020, ATAPI CD/DVD-ROM drive
May 29 19:53:22 localhost kernel: hdd: Maxtor 98196H8, ATA DISK drive
May 29 19:53:22 localhost kernel: blk: queue c033b030, I/O limit 4095Mb (mask 0xffffffff)
May 29 19:53:22 localhost kernel: hde: ST380023AS, ATA DISK drive
May 29 19:53:22 localhost kernel: hdg: no response (status = 0xfe)
May 29 19:53:22 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
May 29 19:53:22 localhost kernel: ide1 at 0x170-0x177,0x376 on irq 15
May 29 19:53:22 localhost kernel: ide2 at 0xf880d080-0xf880d087,0xf880d08a on irq 11

---

hdparm -i /dev/hde
/dev/hde:
 
 Model=ST380023AS, FwRev=3.01, SerialNo=3KB18AAX
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156301488
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 udma6
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2:  1 2 3 4 5 6

---

The console messages after enabling DMA (these are copied down from my 
digital camera, so may not be exact, but I think they're pretty close)

hde: dma_timer_expiry: dma_status == 0x21
hde: timeout waiting for DMA
hde: status timeout: status=0xd8 { Busy }
ide2: reset phy, status=0x00000113,siimage_reset
hde: drive not ready for command
ide2: reset timed-out, statux 0xd8 { Busy }
hde: status timeout: status=0xd8 { Busy }
ide2: reset phy, status=0x00000113,siimage_reset
hde: drive not ready for command
ide2: reset timed-out, statux 0xd8 { Busy }
end_request: I/O error, dev 21:01 (hde), sector (something)
end_request: I/O error, dev 21:01 (hde), sector (something)
journal-601, buffer write failed
kernel BUG at prints.c:334!
invalid operand: 0000
(and then some stack information and call trace information - if this 
is useful, I can type it in too, but it looks essentially like reiserfs
complaining that the disk isn't working)



^ permalink raw reply	[flat|nested] 20+ messages in thread
* siimage driver status
@ 2003-05-29 14:32 Wm. Josiah Erikson
  2003-05-29 13:54 ` Alan Cox
  2003-05-29 15:00 ` lk
  0 siblings, 2 replies; 20+ messages in thread
From: Wm. Josiah Erikson @ 2003-05-29 14:32 UTC (permalink / raw)
  To: linux-kernel

Hello all,
	I have an Asus A7V8X Deluxe motherboard with a couple of WD Raptor 
hard drives that I'm trying to get to work with linux 2.4.21-rc6. The 
problem I'm having is that it's REALLY slow and crashy. The kernel reports 
this on bootup:

Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with 
idebus=xx
NFORCE2: IDE controller at PCI slot 00:09.0
NFORCE2: chipset revision 162
NFORCE2: not 100% native mode: will probe irqs later
AMD_IDE: Bios didn't set cable bits corectly. Enabling workaround.
ide: Assuming 33MHz system bus speed for PIO modes; override with 
idebus=xx
AMD_IDE: PCI device 10de:0065 (nVidia Corporation) (rev a2) UDMA100 
controller o
n pci00:09.0
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
SiI3112 Serial ATA: IDE controller at PCI slot 01:0b.0
SiI3112 Serial ATA: chipset revision 2
SiI3112 Serial ATA: not 100% native mode: will probe irqs later
    ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio
    ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio
hda: SAMSUNG SP4002H, ATA DISK drive
blk: queue c02f6d40, I/O limit 4095Mb (mask 0xffffffff)
hdc: _NEC CD-RW NR-9300A, ATAPI CD/DVD-ROM drive
hdd: JLMS XJ-HD166S, ATAPI CD/DVD-ROM drive
hde: WDC WD360GD-00FNA0, ATA DISK drive
hdg: WDC WD360GD-00FNA0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide2 at 0xe0800080-0xe0800087,0xe080008a on irq 11
ide3 at 0xe08000c0-0xe08000c7,0xe08000ca on irq 11
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 78242976 sectors (40060 MB) w/2048KiB Cache, CHS=4870/255/63, 
UDMA(100)
hde: attached ide-disk driver.
hde: host protected area => 1
hde: 72303840 sectors (37020 MB) w/8192KiB Cache, CHS=4500/255/63
hdg: attached ide-disk driver.
hdg: host protected area => 1
hdg: 72303840 sectors (37020 MB) w/8192KiB Cache, CHS=4500/255/63
hdc: attached ide-scsi driver.
hdd: attached ide-scsi driver.
Partition check:
 hda: hda1 hda2 hda3
 hde: unknown partition table
 hdg: unknown partition table

The nforce2 ide controller works great, as does the drive on it. When I 
try to use either of the drives on the siimage controller, it brings 
everything else on my system to a temporary halt, and hdparm -t reports 
about 1.3MB/sec reads. This is a bummer, as I was hoping to RAID 0 them 
together and make them my boot drives :)

If I try and enable DMA, the machine instantly hardlocks.

I'm running debian sarge, if it matters.

Is there anything I should try, or is the siimage driver just still very 
early on in its development? I would be more than happy to beta- (or 
alpha) test code, or give developers access to my box if testbed platforms 
are needed. Whatever I can do to make it work :)

Thanks very much in advance
	-Josiah

Computer Guy
Hampshire College School of NS
Amherst, MA 01002


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2003-06-04 17:10 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-04 17:23 siimage driver status Rob Browning
  -- strict thread matches above, loose matches on Subject: below --
2003-05-31  9:34 Inigo Surguy
2003-05-29 14:32 Wm. Josiah Erikson
2003-05-29 13:54 ` Alan Cox
2003-05-29 15:00   ` Wm. Josiah Erikson
2003-05-29 14:56     ` Alan Cox
2003-05-29 19:32       ` Wm. Josiah Erikson
2003-05-29 22:26   ` Gutko
2003-06-03  7:17     ` Marco Tedaldi
2003-06-03 12:43       ` Alan Cox
2003-06-03 14:11       ` Wm. Josiah Erikson
2003-06-03 13:49         ` Alan Cox
2003-06-03 15:07           ` Wm. Josiah Erikson
2003-06-03 15:13           ` Bob Johnson
2003-06-03 15:29             ` Wm. Josiah Erikson
2003-06-03 15:58               ` Bob Johnson
2003-06-03 14:45         ` Justin Cormack
2003-05-30 18:57   ` lk
2003-05-30 21:44     ` Bob Johnson
2003-05-29 15:00 ` lk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox