Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2009 12:34:07 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 168100 for review
Message-ID:  <200909031234.n83CY7Nl058637@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=168100

Change 168100 by mav@mav_mavbook on 2009/09/03 12:34:06

	ATI SB600 can't handle 256 sectors transfers with FPDMA (NCQ).

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/dev/ahci/ahci.c#59 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/dev/ahci/ahci.c#59 (text+ko) ====

@@ -1942,6 +1942,9 @@
 		cpi->protocol = PROTO_ATA;
 		cpi->protocol_version = PROTO_VERSION_UNSPECIFIED;
 		cpi->maxio = MAXPHYS;
+		/* ATI SB600 can't handle 256 sectors with FPDMA (NCQ). */
+		if (pci_get_devid(device_get_parent(dev)) == 0x43801002)
+			cpi->maxio = min(cpi->maxio, 255 * 512);
 		cpi->ccb_h.status = CAM_REQ_CMP;
 		xpt_done(ccb);
 		break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909031234.n83CY7Nl058637>