9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] VIA VT8237 SATA/RAID i/o errors, dma doesnt work
@ 2008-02-05 22:13 cinap_lenrek
  2008-02-06  8:41 ` Kernel Panic
  0 siblings, 1 reply; 19+ messages in thread
From: cinap_lenrek @ 2008-02-05 22:13 UTC (permalink / raw)
  To: 9fans

more information:

term% pci -v
0.0.0:	brg  06.00.00 1106/0314   0
	VIA Technology
0.0.1:	brg  06.00.00 1106/1314   0
	VIA Technology
0.0.2:	brg  06.00.00 1106/2314   0
	VIA Technology
0.0.3:	brg  06.00.00 1106/3208   0
	VIA Technology PT890 CPU to PCI Bridge
0.0.4:	brg  06.00.00 1106/4314   0
	VIA Technology
0.0.7:	brg  06.00.00 1106/7314   0
	VIA Technology
0.1.0:	brg  06.04.00 1106/b198   0
	VIA Technology
0.15.0:	disk 01.04.00 1106/3149  11 0:0000ff01 16 1:0000fe01 16 2:0000fd01 16 3:0000fc01 16 4:0000fb01 16 5:0000f401 256
	VIA Technology VT8237  VT6410 SATA RAID Controller
0.15.1:	disk 01.01.8a 1106/0571  10 4:0000fa01 16
	VIA Technology VT82C596x drivers
0.16.0:	usb 0c.03.00 1106/3038  10 4:0000f901 32
	VIA Technology VT83C572, VT6202 USB 2.0 Controller
0.16.1:	usb 0c.03.00 1106/3038  10 4:0000f801 32
	VIA Technology VT83C572, VT6202 USB 2.0 Controller
0.16.2:	usb 0c.03.00 1106/3038  11 4:0000f701 32
	VIA Technology VT83C572, VT6202 USB 2.0 Controller
0.16.3:	usb 0c.03.00 1106/3038  11 4:0000f601 32
	VIA Technology VT83C572, VT6202 USB 2.0 Controller
0.16.4:	usb 0c.03.20 1106/3104   5 0:fdfff000 256
	VIA Technology VT6202 USB 2.0 Enhanced Host Controller
0.17.0:	brg  06.01.00 1106/3227   0
	VIA Technology VT8237 PCI-to-ISA Bridge
0.17.5:	---  04.01.00 1106/3059   5 0:0000f201 256
	VIA Technology VT8233/33A/8235/8237/8251 AC97 Enhanced Audio Controller - the 8251 controller is different
0.18.0:	net  02.00.00 1106/3065  10 0:0000f001 256 1:fdffe000 256
	VIA Technology VT6102 Rhine II PCI Fast Ethernet Controller
0.20.0:	net  02.00.00 10ec/8139  11 0:0000ee01 256 1:fdffd000 256
	Realtek Semiconductor RTL8139 10/100 Mbps Fast Ethernet NIC
1.0.0:	vid  03.00.00 1106/3344  10 0:f4000008 67108864 1:fb000000 16777216
	VIA Technology


with the controller in RAID mode (this is the BIOS default) following:

% cat /dev/sdC0/ctl
inquiry WDC WD3200AAJS-0c0YFA0
config 427A capabilities 2F00 dma 00550040 dmactl 00000000 rwm 16 rwmctl 0 lba48always off
geometry 625142448 512 16383 16 63
part data 0 625142448
part plan9 63 625137345
part 9fat 63 204863
part nvram 204863 204864
part fscfg 204864 204865
part fossil 204865 4112641
part 9hal.i.fossil 4112641 87998721
part 9hal.visect0 87998721 106873089
part 9hal.m.varena 106873089 625137345

% cat /dev/sdD0/ctl
inquiry SAMSUNG HD321KJ
config 0040 capabilities 2F00 rwm 16 rwmctl 0 lba48always off
geometry 625142448 512 16383 16 63
part data 0 625142448
part plan9 63 625137345
part 9hal.vbloom 3981569 4112641
part 9hal.i.fossil 4112641 87998721
part 9hal.visect1 87998721 106873089
part 9hal.m.varena 106873089 625137345

ok, i wrote a script that tests sequencial reading/writing:

fn rotest {
echo rotest1 $1
dd -if $1 -of /dev/null -bs $3 &
sleep $2
slay dd|rc

echo rotest2 $1
dd -if $1 -of /dev/null -bs $3 &
sleep 5
dd -if $1 -of /dev/null -bs $3 &
sleep $2
slay dd|rc
}

fn wrtest {
echo wrtest1 $1
dd -if /dev/zero -of $1 -bs $3 &
sleep $2
slay dd|rc

echo wrtest2 $1
dd -if /dev/zero -of $1 -bs $3 &
sleep 5
dd -if /dev/zero -of $1 -bs $3 &
sleep $2
slay dd|rc
}

fn rwtest {
echo rwtest2 $1
dd -if /dev/zero -of $1 -bs $3 &
sleep 5
dd -if $1 -of /dev/null -bs $3 &
sleep $2
slay dd|rc
}

slay dd|rc

t=300
b=65536

for(m in off on){
echo dma $m
echo dma $m >/dev/sdC0/ctl
echo dma $m >/dev/sdD0/ctl
for(d in /dev/sdC0/9hal.m.varena /dev/sdD0/9hal.m.varena){
	rotest $d $t $b
	wrtest $d $t $b
	rwtest $d $t $b
}
}

output:

term% ./dtest.rc
dma off
echo: write error: bad process or channel control request
rotest1 /dev/sdC0/9hal.m.varena
rotest2 /dev/sdC0/9hal.m.varena
wrtest1 /dev/sdC0/9hal.m.varena
wrtest2 /dev/sdC0/9hal.m.varena
rwtest2 /dev/sdC0/9hal.m.varena
rotest1 /dev/sdD0/9hal.m.varena
rotest2 /dev/sdD0/9hal.m.varena
wrtest1 /dev/sdD0/9hal.m.varena
wrtest2 /dev/sdD0/9hal.m.varena
rwtest2 /dev/sdD0/9hal.m.varena
dma on
echo: write error: bad process or channel control request
rotest1 /dev/sdC0/9hal.m.varena
rotest2 /dev/sdC0/9hal.m.varena
wrtest1 /dev/sdC0/9hal.m.varena
wrtest2 /dev/sdC0/9hal.m.varena
rwtest2 /dev/sdC0/9hal.m.varena
rotest1 /dev/sdD0/9hal.m.varena
rotest2 /dev/sdD0/9hal.m.varena
wrtest1 /dev/sdD0/9hal.m.varena
wrtest2 /dev/sdD0/9hal.m.varena
rwtest2 /dev/sdD0/9hal.m.varena

well, seems to work fine!

lets use both drives in paralel (dma still enabled):

term% dd -if /dev/sdC0/9hal.m.varena -of /dev/null -bs 65536 &
term% dd -if /dev/sdD0/9hal.m.varena -of /dev/null -bs 65536 &
term% read: i/o error
13967+0 records in
13967+0 records out

paralel reading and writing on both drives results in:

term% cat /dev/kprint
command C8
data f17fd360 limit f17ff160 dlen 65536 status 50 error 0
lba 106889089 -> 106889119, count 128 -> 98 (15)
 0x00 0x00 0xAD 0xFF 0x5E 0xE6 0x50
bmicx 09 bmisx 01 prdt f14df0b4
pa 0x017FD360 count 00000CA0
pa 0x017FE000 count 80001160
atagenioretry: disabling dma
sdC0: retry: dma 00000000 rwm 0000

ok, so far for now...

cinap


^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <54b639a7eb08c31e4ef2a6d9fd7b6a62@quanstro.net>]
* Re: [9fans] usb ohci support arrives -- another caution
@ 2008-02-06 17:58 Sape Mullender
  2008-02-06 19:23 ` [9fans] VIA VT8237 SATA/RAID i/o errors, dma doesnt work cinap_lenrek
  0 siblings, 1 reply; 19+ messages in thread
From: Sape Mullender @ 2008-02-06 17:58 UTC (permalink / raw)
  To: 9fans

> If you do rebuild a kernel with the new usb interface, and you have
> a usb mouse with a scroll wheel, you must ensure that usb/usbmouse
> is started with the '-s' flag (e.g. in /bin/usbstart), or your
> mouse won't work at all.  I'll submit a patch for this shortly.

Yes, the mouse driver should get the configuration descriptor and
interpret it.  USB audio does that too, but the mouse was mostly
done as a quick hack to get it working.  It would be nice if somebody
did a proper job.

Speaking of proper jobs, we'd really approciate a volunteer or two
undertaking to work on USB keyboards and serial ports.

USB ethernet adapters may be a bit much to ask and so may bluetooth, but
hey, if somebody has the energy  ... ?


Geoff also pushed the man page usb(3); check this to see how the new
endpoint (ep) command works.  We used to distinguish only isochronous
from everything else, but in OHCI, we need to distinguish between Control,
Interrupt and Bulk too.  A mouse, in the UHCI world, was treated as a
Bulk device.  In the OHCI world it's an Interrupt device (meaning the h/w
polls it every 10 ms (and this number 10 should be gotten from the
configuration descriptor, which it isn't right now)).


	Sape


^ permalink raw reply	[flat|nested] 19+ messages in thread
* [9fans] VIA VT8237 SATA/RAID i/o errors, dma doesnt work
@ 2008-02-05  8:18 Kernel Panic
  2008-02-05  8:54 ` Lorenzo Fernando Bivens de la Fuente
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Kernel Panic @ 2008-02-05  8:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

I purchased an C7 based machine with VIA VT8237 SATA/RAID:

http://www2.digitalo.de/deeplink.jsp;jsessionid=0FEFF78E7DE9EC893CD54A5B75AA7B60?PROD=948733&EXT=SHOPPING

Have 2 SATA disks attached. They are detected like normal IDE devices.
The Installation of Plan9 worked fine. Created partitions and #k mirror
and setup
venti. I wanted to copy the arenas of my old fileserver to it and then
later format
fossil with the last score, but the machine fails before
finishing/reading the first
arena. :-(

First, i found that DMA was disabled for both drives, so i forced it on
with:
echo dma on >/dev/sdC0/ctl
echo dma on >/dev/sdD0/ctl

...then i get i/o errors in venti and plan9 paniced. so this was not
such a good idea i guess...
reformated all venti partitions and tried again several times with
different bios options
(without DMA, tried both bios SATA IDE and SATA RAID mode):

- after hours of disk activity, sdD0 failed... i tried to read
/dev/sdD0/data and got i/o error instantly and
after reboot worked again.

- after hours of disk activity, i see i/o-error that it cant read
/dev/sdD0/9hal.vtbloom
(venti bloomfilter partition 64MB). and then crashed with poolpanic.

http://plan9.bell-labs.com/wiki/plan9/Supported_PC_hardware/index.html
shows that this
controller should work but it doesnt for me currently.

pci -v shows the as same ids as in the sdata.c driver.

Is anybody using that sata controller? (with multiple SATA disks?) Do i
miss here something?
Are here any special BIOS options i need to get this working?

cinap


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

end of thread, other threads:[~2008-02-08 15:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-05 22:13 [9fans] VIA VT8237 SATA/RAID i/o errors, dma doesnt work cinap_lenrek
2008-02-06  8:41 ` Kernel Panic
2008-02-06  9:45   ` erik quanstrom
2008-02-06 10:43     ` Kernel Panic
2008-02-06 11:03       ` erik quanstrom
     [not found] <54b639a7eb08c31e4ef2a6d9fd7b6a62@quanstro.net>
2008-02-08  9:35 ` Kernel Panic
2008-02-08 14:55   ` erik quanstrom
2008-02-08 14:56   ` Robert Raschke
2008-02-08 15:27     ` Robert Raschke
  -- strict thread matches above, loose matches on Subject: below --
2008-02-06 17:58 [9fans] usb ohci support arrives -- another caution Sape Mullender
2008-02-06 19:23 ` [9fans] VIA VT8237 SATA/RAID i/o errors, dma doesnt work cinap_lenrek
2008-02-06 20:04   ` erik quanstrom
2008-02-06 22:29     ` cinap_lenrek
2008-02-06 22:40       ` erik quanstrom
2008-02-06 23:26         ` cinap_lenrek
2008-02-05  8:18 Kernel Panic
2008-02-05  8:54 ` Lorenzo Fernando Bivens de la Fuente
2008-02-05 13:20 ` erik quanstrom
2008-02-05 19:48 ` Robert Raschke
2008-02-06  2:01 ` arisawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).