Date: Sat, 4 Jul 2009 19:18:53 GMT From: Alexander Motin <mav@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 165606 for review Message-ID: <200907041918.n64JIrdq018663@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165606 Change 165606 by mav@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907041918.n64JIrdq018663>