Date: Wed, 14 Dec 2016 16:30:53 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r310074 - stable/10/sys/dev/firewire Message-ID: <201612141630.uBEGUrKP099622@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612141630.uBEGUrKP099622>