9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9load ahci funny
@ 2009-02-24 20:11 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2009-02-24 20:11 UTC (permalink / raw)
  To: 9fans

according to acs-2 §7.19.6 p. 163, this is illegal, but i got
a $20 dvd-rom that doesn't have a serial number.  this
doesn't sit well with 9load.  here's a workaround for the
broken hardware:

sdiahci.c:1711,1717 - /n/dump/2009/0224/sys/src/boot/pc/sdiahci.c:1711,1716
  			d->portno = i;
  			d->driveno = -1;
  			d->sectors = 0;
- 			d->serial[0] = ' ';
  			d->ctlr = c;
  			if((c->hba->pi & (1<<i)) == 0)
  				continue;

acs-2 is the draft follow-on standard to ata-8.

i put this and a similar fix the kernel on sources.
/n/sources/contrib/quanstro/src/9loadaoe
/n/sources/contrib/quanstro/src/9/pc/sdiahci.c  (requires ../*/sd* and ../port/fis*, too)

- erik



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-24 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 20:11 [9fans] 9load ahci funny erik quanstrom

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