9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] SB600 i/o error on read/write
@ 2008-09-25 18:44 cinap_lenrek
  0 siblings, 0 replies; 3+ messages in thread
From: cinap_lenrek @ 2008-09-25 18:44 UTC (permalink / raw)
  To: 9fans

Hi,

buyed a MSI K9AGM4 mainboard with AMD SB600 chipset. (i have
given up on the via machine)

ethernet and graphics (vesa) works fine but here are problems
with the ata/sata. (not again :-( )

normal ata isnt detected at all, just sata. (not important for me)

here is an BIOS option called "RaidMode" that can be set to IDE, RAID or AHCI,
but seems to make no difference.

plan9 detects the sb600 ahci ok.

#S/sdE: ahci sb600 port 0xe0002800: sss 0 ncs 31 coal 1 mports 3 led 1 clo 1 ems 0
#S/sdE: sb600: sata-II with 4 ports

but doing any io gives me errors. I can reproduce it with any sata
drive i plug in. (hotplug works, really nice)

sdE1: i/o error 50 @5,738
sdE1: LLBA 312,581,808 secstore
  ST3160211AS 3AAE 6PT1Q4EP

I tested with dd, with varying block sizes.
the errors happen both on read and on write.
I'v just tested one drive at a time.

i use a recent (pulled the source and recompiled some
days ago) 9pcf kernel booted over pxe.

any suggestions how to debug this?

--
cinap




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

* [9fans] SB600 i/o error on read/write
@ 2008-09-25 19:34 cinap_lenrek
  0 siblings, 0 replies; 3+ messages in thread
From: cinap_lenrek @ 2008-09-25 19:34 UTC (permalink / raw)
  To: 9fans

hm... looks like we hit this:

static void
westerndigitalhung(Drive *d)
{
	if((d->portm.feat&Datapi) == 0 && d->active && TK2MS(d->intick) > 5000){
		dprint("%s: drive hung; resetting [%lux] ci %lx\n",
			d->unit->name, d->port->task, d->port->ci);
		d->state = Dreset;
	}
}

is ms in TK2MS refering to milliseconds? if this is the case, the error occurs mutch
faster than 5 seconds after i started the dd. maybe my machine is not time callibrated
correctly?

--
cinap




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

* [9fans] SB600 i/o error on read/write
@ 2008-09-25 19:15 cinap_lenrek
  0 siblings, 0 replies; 3+ messages in thread
From: cinap_lenrek @ 2008-09-25 19:15 UTC (permalink / raw)
  To: 9fans

more debug...

term% echo sdE debug >/dev/sdctl
term% dd -if /dev/sdE1/data -of /dev/null -bs 8192
sdE1: deive hung; resetting [d0] ci 1
sdE1: reset [reset]: mode 1; status 0113
resetdisk: icc 0  det 0 sdet 3
sdE1: i/o error 50 @28,000
read: i/o error
1750+0 records in
1750+0 records out
term% resetdisk: reset -> new
sdE1: LLBA 312,581,808 sectors
  ST3160211AS 3.AAE 6PT1Q4EP

--
cinap




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

end of thread, other threads:[~2008-09-25 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-25 18:44 [9fans] SB600 i/o error on read/write cinap_lenrek
2008-09-25 19:15 cinap_lenrek
2008-09-25 19:34 cinap_lenrek

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).