svn commit: r325468 - head/sys/powerpc/mpc85xx

Justin Hibbits jhibbits at FreeBSD.org
Mon Nov 6 05:09:19 UTC 2017


Author: jhibbits
Date: Mon Nov  6 05:09:18 2017
New Revision: 325468
URL: https://svnweb.freebsd.org/changeset/base/325468

Log:
  Set the PRD extension list base address in little endian
  
  All data accesses with the SATA controller are little endian.  This was
  missed when writing the extension code.

Modified:
  head/sys/powerpc/mpc85xx/fsl_sata.c

Modified: head/sys/powerpc/mpc85xx/fsl_sata.c
==============================================================================
--- head/sys/powerpc/mpc85xx/fsl_sata.c	Mon Nov  6 04:43:43 2017	(r325467)
+++ head/sys/powerpc/mpc85xx/fsl_sata.c	Mon Nov  6 05:09:18 2017	(r325468)
@@ -985,8 +985,8 @@ fsl_sata_dmasetprd(void *arg, bus_dma_segment_t *segs,
 	for (i = 0, j = 0; i < nsegs; i++, j++) {
 		if (j == FSL_SATA_PRD_EXT_INDEX &&
 		    FSL_SATA_PRD_MAX_DIRECT < nsegs) {
-			prd[j].dba = FSL_SATA_CTP_BUS(ch, slot) +
-				     FSL_SATA_PRD_OFFSET(j+1);
+			prd[j].dba = htole32(FSL_SATA_CTP_BUS(ch, slot) +
+				     FSL_SATA_PRD_OFFSET(j+1));
 			j++;
 			extlen = 0;
 		}


More information about the svn-src-all mailing list