socsvn commit: r257458 - soc2013/zcore/head/usr.sbin/bhyve

zcore at FreeBSD.org zcore at FreeBSD.org
Wed Sep 18 15:00:02 UTC 2013


Author: zcore
Date: Wed Sep 18 15:00:02 2013
New Revision: 257458
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=257458

Log:
  fix SLOTs setting if blockif queue size is larger than 32

Modified:
  soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c

Modified: soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c	Wed Sep 18 11:07:32 2013	(r257457)
+++ soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c	Wed Sep 18 15:00:02 2013	(r257458)
@@ -1305,7 +1305,10 @@
 	pthread_mutex_init(&sc->mtx, NULL);
 
 	/* Intel Cougar Point AHCI */
-	slots = sc->port[0].ioqsz - 1;
+	slots = sc->port[0].ioqsz;
+	if (slots > 32)
+		slots = 32;
+	--slots;
 	sc->cap = AHCI_CAP_64BIT | AHCI_CAP_SNCQ | AHCI_CAP_SSNTF |
 		AHCI_CAP_SMPS | AHCI_CAP_SSS | AHCI_CAP_SALP |
 		AHCI_CAP_SAL | AHCI_CAP_SCLO | (0x3 << AHCI_CAP_ISS_SHIFT)|


More information about the svn-soc-all mailing list