Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 01:03:15 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r257538 - projects/altix2/sys/ia64/sgisn
Message-ID:  <201311020103.rA213FkC036937@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sat Nov  2 01:03:14 2013
New Revision: 257538
URL: http://svnweb.freebsd.org/changeset/base/257538

Log:
  The TIOCP PCI Bridge has the low order bit of the NAS ID set. Mask it
  when we match PCI bridges to SHub ASICs.

Modified:
  projects/altix2/sys/ia64/sgisn/sgisn_shub.c

Modified: projects/altix2/sys/ia64/sgisn/sgisn_shub.c
==============================================================================
--- projects/altix2/sys/ia64/sgisn/sgisn_shub.c	Sat Nov  2 00:54:47 2013	(r257537)
+++ projects/altix2/sys/ia64/sgisn/sgisn_shub.c	Sat Nov  2 01:03:14 2013	(r257538)
@@ -477,7 +477,7 @@ sgisn_shub_attach(device_t dev)
 
 			fwbus = (void *)IA64_PHYS_TO_RR7(addr);
 			if (((fwbus->bus_base >> sc->sc_nasid_shft) &
-			    sc->sc_nasid_mask) != sc->sc_nasid)
+			    (sc->sc_nasid_mask - 1)) != sc->sc_nasid)
 				continue;
 
 			child = device_add_child(dev, "pcib", -1);



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