From e82165207d24ba835f93b6863c27dd4c9b50551c Mon Sep 17 00:00:00 2001 From: avg Date: Wed, 14 Dec 2016 16:30:53 +0000 Subject: MFC r309092: fwohci: report whether PhysicalUpperBound register is implemented --- sys/dev/firewire/fwohci.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index ae753d5..a898e08 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -1874,6 +1874,16 @@ fwohci_intr_core(struct fwohci_softc *sc, uint32_t stat, int count) 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); -- cgit v1.1