diff options
author | avg <avg@FreeBSD.org> | 2016-12-14 16:30:47 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2016-12-14 16:30:47 +0000 |
commit | 385104e3df367151031afbc7ee78984993802882 (patch) | |
tree | d35b96f12e6f79bc176fe197d6eb9576b11ea485 | |
parent | 32ef569d0ceff11eaf80fa26d8b69266100731b3 (diff) | |
download | FreeBSD-src-385104e3df367151031afbc7ee78984993802882.zip FreeBSD-src-385104e3df367151031afbc7ee78984993802882.tar.gz |
MFC r309092: fwohci: report whether PhysicalUpperBound register is implemented
-rw-r--r-- | sys/dev/firewire/fwohci.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index a5d25cc..5162c06 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -1860,6 +1860,16 @@ fwohci_intr_core(struct fwohci_softc *sc, uint32_t stat, int count) 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); |