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);
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to