Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2013 15:00:02 GMT
From:      zcore@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r257458 - soc2013/zcore/head/usr.sbin/bhyve
Message-ID:  <201309181500.r8IF02SV010474@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)|



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