Port-sandpoint archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Waiting for disks to spin up
Hi,
When I reboot my DS207 (but not when powering on), it seems that the disks
spin down and spin up again one after the other. This causes altboot (and
sometimes NetBSD) to only detect the first disk. A work round for this is
to add a delay when checking for disks, as per the attached patch. However,
I wondered if there was a better way to do this.
Thanks,
J
--
My other computer also runs NetBSD / Sailing at Newbiggin
http://www.netbsd.org/ / http://www.newbigginsailingclub.org/
Index: siisata.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sandpoint/stand/altboot/siisata.c,v
retrieving revision 1.4
diff -u -r1.4 siisata.c
--- siisata.c 30 May 2011 19:48:12 -0000 1.4
+++ siisata.c 16 Jan 2012 11:30:30 -0000
@@ -99,6 +99,9 @@
pcicfgwrite(tag, 0x80, 0x00);
pcicfgwrite(tag, 0x84, 0x00);
+ printf("Waiting for disk(s) to spin up.\n");
+ delay(40000 * 1000);
+
for (n = 0, retries = 0; n < nchan; n++) {
l->presense[n] = 0;
Home |
Main Index |
Thread Index |
Old Index