PERFORCE change 165606 for review
Alexander Motin
mav at FreeBSD.org
Sat Jul 4 19:18:55 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165606
Change 165606 by mav at mav_mavbook on 2009/07/04 19:18:44
Add hypothetic 32MB data size limitation for 48bit commands.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#17 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#17 (text+ko) ====
@@ -705,7 +705,7 @@
softc->disk->d_name = "ada";
softc->disk->d_drv1 = periph;
if (cgd->ident_data.support.command2 & ATA_SUPPORT_ADDRESS48)
- softc->disk->d_maxsize = MAXPHYS; /* ahci driver limit */
+ softc->disk->d_maxsize = min(MAXPHYS, 65535 * 512);
else /* 28bit ATA command limit */
softc->disk->d_maxsize = min(MAXPHYS, 255 * 512);
softc->disk->d_unit = periph->unit_number;
More information about the p4-projects
mailing list