svn commit: r310074 - stable/10/sys/dev/firewire
Andriy Gapon
avg at FreeBSD.org
Wed Dec 14 16:30:54 UTC 2016
Author: avg
Date: Wed Dec 14 16:30:53 2016
New Revision: 310074
URL: https://svnweb.freebsd.org/changeset/base/310074
Log:
MFC r309092: fwohci: report whether PhysicalUpperBound register is implemented
Modified:
stable/10/sys/dev/firewire/fwohci.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/firewire/fwohci.c
==============================================================================
--- stable/10/sys/dev/firewire/fwohci.c Wed Dec 14 16:30:47 2016 (r310073)
+++ stable/10/sys/dev/firewire/fwohci.c Wed Dec 14 16:30:53 2016 (r310074)
@@ -1874,6 +1874,16 @@ fwohci_intr_core(struct fwohci_softc *sc
OWRITE(sc, OHCI_PREQLO, 0xffffffff);
/* 0 to 4GB region */
OWRITE(sc, OHCI_PREQUPPER, 0x10000);
+ 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-all
mailing list