PERFORCE change 171420 for review
Alexander Motin
mav at FreeBSD.org
Sat Dec 5 19:21:31 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=171420
Change 171420 by mav at mav_mavtest on 2009/12/05 19:20:44
Improve PIO transaction size negotiation.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/dev/ata/ata-all.c#42 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/dev/ata/ata-all.c#42 (text+ko) ====
@@ -153,7 +153,10 @@
#ifdef ATA_CAM
for (i = 0; i < 16; i++) {
ch->user[i].mode = 0;
- ch->user[i].bytecount = 8192;
+ if (ch->flags & ATA_SATA)
+ ch->user[i].bytecount = 8192;
+ else
+ ch->user[i].bytecount = MAXPHYS;
ch->curr[i] = ch->user[i];
}
#endif
@@ -1494,7 +1497,9 @@
d->mode = cts->xport_specific.ata.mode;
}
if (cts->xport_specific.ata.valid & CTS_ATA_VALID_BYTECOUNT)
- d->bytecount = min(8192, cts->xport_specific.ata.bytecount);
+ d->bytecount = cts->xport_specific.ata.bytecount;
+ if (ch->flags & ATA_SATA)
+ d->bytecount = min(8192, d->bytecount);
}
ccb->ccb_h.status = CAM_REQ_CMP;
xpt_done(ccb);
More information about the p4-projects
mailing list