svn commit: r310073 - stable/11/sys/dev/firewire

Andriy Gapon avg at FreeBSD.org
Wed Dec 14 16:30:48 UTC 2016


Author: avg
Date: Wed Dec 14 16:30:47 2016
New Revision: 310073
URL: https://svnweb.freebsd.org/changeset/base/310073

Log:
  MFC r309092: fwohci: report whether PhysicalUpperBound register is implemented

Modified:
  stable/11/sys/dev/firewire/fwohci.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/firewire/fwohci.c
==============================================================================
--- stable/11/sys/dev/firewire/fwohci.c	Wed Dec 14 16:27:28 2016	(r310072)
+++ stable/11/sys/dev/firewire/fwohci.c	Wed Dec 14 16:30:47 2016	(r310073)
@@ -1860,6 +1860,16 @@ fwohci_intr_core(struct fwohci_softc *sc
 				prequpper = OHCI_PREQUPPER_MAX;
 			}
 			OWRITE(sc, OHCI_PREQUPPER, prequpper & 0xffffffff);
+			if (OREAD(sc, OHCI_PREQUPPER) !=
+			    (prequpper & 0xffffffff)) {
+				device_printf(fc->dev,
+				   "PhysicalUpperBound register is not "
+				   "implemented.  Physical memory access "
+				   "is limited to the first 4GB\n");
+				device_printf(fc->dev,
+				   "PhysicalUpperBound = 0x%08x\n",
+				    OREAD(sc, OHCI_PREQUPPER));
+			}
 		}
 		/* Set ATRetries register */
 		OWRITE(sc, OHCI_ATRETRY, 1<<(13 + 16) | 0xfff);


More information about the svn-src-stable-11 mailing list