<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/document_iterator.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/find_proxy.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/get_html_text.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/global_constants.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/name_injection_builder.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/number_injection_builder.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/string_finder.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/change_sink.js"></script><style type="text/css" id="owaParaStyle"></style>
<meta name="document_iterator.js">
<meta name="find_proxy.js">
<meta name="get_html_text.js">
<meta name="global_constants.js">
<meta name="name_injection_builder.js">
<meta name="number_injection_builder.js">
<meta name="string_finder.js">
<meta name="change_sink.js">
</head>
<body style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>[ccing maillist]</div>
Thanks Garrett,
<div>That's precisely what I'm doing right now.</div>
<div>In most of the places, the fixes I need to do is just removing hardcoded restrictions and changing uint to uint64.</div>
<div>There's one structure however, 'struct regspec', which seems to require more care since it is integrated in a ddi_map_obj_t structure and is passed around quite a lot.</div>
<div><br>
</div>
<div>Pavel</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF550092" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>From:</b> Garrett D'Amore [garrett.damore@gmail.com] on behalf of Garrett D'Amore [garrett@damore.org]<br>
<b>Sent:</b> Thursday, November 01, 2012 11:00 AM<br>
<b>To:</b> Pavel Zakharov<br>
<b>Cc:</b> illumos-team@openindiana.org<br>
<b>Subject:</b> Re: [Illumos-team] 64-Bit PCI space<br>
</font><br>
</div>
<div></div>
<div>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" target="_blank">pavel.zakharov@mail.mcgill.ca</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div 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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing: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"></span>_______________________________________________<br>
Illumos-team mailing list<br>
<a href="mailto:Illumos-team@openindiana.org" target="_blank">Illumos-team@openindiana.org</a><br>
<a href="http://openindiana.org/mailman/listinfo/illumos-team" target="_blank">http://openindiana.org/mailman/listinfo/illumos-team</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<span id="skype_highlighting_settings" display="none" autoextractnumbers="1"></span>
<object id="skype_plugin_object" location.href="https://exchange.mcgill.ca/owa/?ae=PreFormAction&a=ReplyAll&t=IPM.Note&id=RgAAAAAAHbdz0iiORKuvZzK00HujBwAKNxDQWEruQLHd3VZU0LMHAAAACa3zAAAKNxDQWEruQLHd3VZU0LMHAAAACa4TAAAJ&pspid=_1351782143598_203539906" location.hostname="exchange.mcgill.ca" style="position: absolute; visibility: hidden; left: -100px; top: -100px; " width="0" height="0" type="application/x-vnd.skype.click2call.chrome.5.7.0">
</object>
</body>
</html>