Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2019 00:56:41 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r344911 - stable/11/sys/dev/isp
Message-ID:  <201903080056.x280uffU092202@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Mar  8 00:56:41 2019
New Revision: 344911
URL: https://svnweb.freebsd.org/changeset/base/344911

Log:
  MFC r344661, r344669: Limit 24xx adapters to only MSI interrupts by default.
  
  This was actually the known good configuration we used before.
  Single MSI-X configuration doesn't even work there on my tests, just due
  to lack of documentation not sure whether by design or I am doing something
  wrong.
  
  PR:		233654

Modified:
  stable/11/sys/dev/isp/isp_pci.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/isp/isp_pci.c
==============================================================================
--- stable/11/sys/dev/isp/isp_pci.c	Fri Mar  8 00:56:07 2019	(r344910)
+++ stable/11/sys/dev/isp/isp_pci.c	Fri Mar  8 00:56:41 2019	(r344911)
@@ -1908,7 +1908,7 @@ isp_pci_irqsetup(ispsoftc_t *isp)
 
 	ISP_UNLOCK(isp);
 	if (ISP_CAP_MSIX(isp)) {
-		max_irq = IS_26XX(isp) ? 3 : 2;
+		max_irq = IS_26XX(isp) ? 3 : (IS_25XX(isp) ? 2 : 0);
 		resource_int_value(device_get_name(dev),
 		    device_get_unit(dev), "msix", &max_irq);
 		max_irq = imin(ISP_MAX_IRQS, max_irq);



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