<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><base href="x-msg://3358/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I suspect this rabbit hole goes pretty deep. Obviously, it won't be possible to use this device in a 32-bit kernel, either. You'd want to examine the entire PCI stack, and possibly also the iommu code for this stuff. (I doubt you can use this device with an iommu, also.)<div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- Garrett</div><div><br><div><div>On Nov 1, 2012, at 7:32 AM, Pavel Zakharov <<a href="mailto:pavel.zakharov@mail.mcgill.ca">pavel.zakharov@mail.mcgill.ca</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div fpstyle="1" ocsi="0" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="direction: ltr; font-family: Tahoma; font-size: 10pt; "><font size="2"><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">Hello,</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">I've been trying a new feature on my BIOS that allows to memory map PCI device registers to spaces above 4G.</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">However, when I booted in Solaris, it failed to load some devices, and pci_boot also reported:</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">"unsupported 64-bit prefetch memory on pci-pci bridge [%d/%d/%d]" (copy pasted that line from pci_boot.c)</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">Digging further I also found some comments in npe.c in a register mapping function:</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">case PCI_ADDR_MEM64:</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">/*</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">* We can't handle 64-bit devices that are mapped above</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">* 4G or that are larger than 4G.</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">*/</span><br><br><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">I am in the process of rewriting the driver code right now, but I am wondering how deep will I have to go or if a fix already exists in OpenIndiana.</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">If you are wondering why I need all this, it is because I have a device that requires a very large space of prefetchable memory (>4G) and I need those BIOS settings to make it boot.</span><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><br style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); "><span style="font-family: tahoma, verdana, sans-serif; background-color: rgb(255, 255, 255); ">Thanks</span></font></div><span id="skype_highlighting_settings" display="none" autoextractnumbers="1"></span><object id="skype_plugin_object" location.href="https://exchange.mcgill.ca/owa/?ae=Item&a=New&t=IPM.Note&cc=MTQuMi4zMTguMixlbi1VUyw0Mjk0OTY3Mjk1LEhUTUwsMCww&pspid=_1351779282683_699312857" location.hostname="exchange.mcgill.ca" width="0" height="0" type="application/x-vnd.skype.click2call.chrome.5.7.0" style="position: absolute; visibility: hidden; left: -100px; top: -100px; "></object>_______________________________________________<br>Illumos-team mailing list<br><a href="mailto:Illumos-team@openindiana.org">Illumos-team@openindiana.org</a><br><a href="http://openindiana.org/mailman/listinfo/illumos-team">http://openindiana.org/mailman/listinfo/illumos-team</a><br></div></blockquote></div><br></div></body></html>