<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Igor,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">It seems something wrong with the libdrm, what the libdrm you are using?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Xiuli<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></a></p>
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Igor Pavlov [mailto:igor.arabesc.pavlov@gmail.com]
<br>
<b>Sent:</b> Wednesday, October 12, 2016 6:13 PM<br>
<b>To:</b> Pan, Xiuli <xiuli.pan@intel.com><br>
<b>Cc:</b> beignet@lists.freedesktop.org<br>
<b>Subject:</b> Re: [Beignet] Weird clinfo ouput @ FreeBSD-11.0/Intel GPU<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">> </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The PCIID should be 0x040a, and we support that device.<br>
<br>
</span><span style="font-family:"Courier New"">Here it is:<br>
<br>
vgapci0@pci0:0:2:0: class=0x030000 card=[0x040a]1849 chip=[0x040a]8086 rev=0x06 hdr=0x00<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New""><br>
> </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">ls /dev/dri/</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">It returns:<br>
<br>
card0 controlD64<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New"">There's no renderD128.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">kldstat says that i915kms.ko and drm2.ko are loaded.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2016-10-12 6:17 GMT+03:00 Pan, Xiuli <<a href="mailto:xiuli.pan@intel.com" target="_blank">xiuli.pan@intel.com</a>>:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Igor,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The PCIID should be 0x040a, and we support that device.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">If you are running without X, then you should check if</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">ls /dev/dri/</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">will return something like these:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">card0 controlD64 renderD128</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">If not you may need to enable i915 in your kernel.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Otherwise, there may be something wrong with you libdrm</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Xiuli</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a name="m_4044995352836568836__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span></a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a name="m_4044995352836568836______replyseparato"></a><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
Igor Pavlov [mailto:</span><a href="mailto:igor.arabesc.pavlov@gmail.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">igor.arabesc.pavlov@gmail.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">]
<br>
<b>Sent:</b> Wednesday, October 12, 2016 8:00 AM<br>
<b>To:</b> Pan, Xiuli <</span><a href="mailto:xiuli.pan@intel.com" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">xiuli.pan@intel.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">><br>
<b>Cc:</b> </span><a href="mailto:beignet@lists.freedesktop.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">beignet@lists.freedesktop.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
<b>Subject:</b> Re: [Beignet] Weird clinfo ouput @ FreeBSD-11.0/Intel GPU</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-family:"Courier New"">It's a headless system, there is no X.<br>
<br>
# pciconf -lvbce<br>
<br>
vgapci0@pci0:0:2:0: class=0x030000 card=0x040a1849 chip=0x040a8086 rev=0x06 hdr=0x00<br>
vendor = 'Intel Corporation'<br>
device = 'Xeon E3-1200 v3 Processor Integrated Graphics Controller'<br>
class = display<br>
subclass = VGA<br>
bar [10] = type Memory, range 64, base 0xf6400000, size 4194304, enabled<br>
bar [18] = type Prefetchable Memory, range 64, base 0xe0000000, size 268435456, enabled<br>
bar [20] = type I/O Port, range 32, base 0xf000, size 64, enabled<br>
cap 05[90] = MSI supports 1 message <br>
cap 01[d0] = powerspec 2 supports D0 D3 current D0<br>
cap 13[a4] = PCI Advanced Features: FLR TP</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Courier New"">Do I have to load some driver maybe?</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Courier New""> </span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">2016-10-11 10:27 GMT+03:00 Pan, Xiuli <<a href="mailto:xiuli.pan@intel.com" target="_blank">xiuli.pan@intel.com</a>>:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Igor,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Could you provide the PCI ID of your device by</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">lspci –v.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">It seems we could not get the device, it may because that you build with X but running without a screen
open, or build without X but running by non-root user.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Xiuli</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a name="m_4044995352836568836_m_8671015368116596"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></a></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Beignet [mailto:</span><a href="mailto:beignet-bounces@lists.freedesktop.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">beignet-bounces@lists.freedesktop.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">]
<b>On Behalf Of </b>Igor Pavlov<br>
<b>Sent:</b> Monday, October 10, 2016 8:51 PM<br>
<b>To:</b> </span><a href="mailto:beignet@lists.freedesktop.org" target="_blank"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">beignet@lists.freedesktop.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
<b>Subject:</b> [Beignet] Weird clinfo ouput @ FreeBSD-11.0/Intel GPU</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-family:"Courier New"">Dear Beignet community,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-family:"Courier New"">Could someone kindly clarify, what do all of this mean?</span><o:p></o:p></p>
<pre><code># uname -opr</code><o:p></o:p></pre>
<pre><code>FreeBSD 11.0-RELEASE-p1 amd64</code><o:p></o:p></pre>
<pre><code> </code><o:p></o:p></pre>
<pre><code># sysctl hw.model </code><o:p></o:p></pre>
<pre><code>hw.model: Intel(R) Xeon(R) CPU E3-1265L v3 @ 2.50GHz</code><o:p></o:p></pre>
<pre><code> </code><o:p></o:p></pre>
<pre><code># pkg info | grep beignet</code><o:p></o:p></pre>
<pre><code>beignet-1.2.0 OpenCL library for Intel GPUs</code><o:p></o:p></pre>
<pre><code> </code><o:p></o:p></pre>
<pre><code># clinfo -v</code><o:p></o:p></pre>
<pre><code>clinfo version 2.1.16.01.12</code><o:p></o:p></pre>
<pre><code> </code><o:p></o:p></pre>
<pre><code># clinfo </code><o:p></o:p></pre>
<pre><code>Device open failed, aborting...</code><o:p></o:p></pre>
<pre><code>Number of platforms 1</code><o:p></o:p></pre>
<pre><code> Platform Name Intel Gen OCL Driver</code><o:p></o:p></pre>
<pre><code> Platform Vendor Intel</code><o:p></o:p></pre>
<pre><code> Platform Version OpenCL 1.2 beignet 1.2</code><o:p></o:p></pre>
<pre><code> Platform Profile FULL_PROFILE</code><o:p></o:p></pre>
<pre><code> Platform Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_motion_estimation cl_intel_subgroups</code><o:p></o:p></pre>
<pre><code> Platform Extensions function suffix Intel</code><o:p></o:p></pre>
<pre><code>Device open failed, aborting...</code><o:p></o:p></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><o:p></o:p></pre>
<pre><code> </code><o:p></o:p></pre>
<pre><code> Platform Name Intel Gen OCL Driver</code><o:p></o:p></pre>
<pre><code>Number of devices 0</code><o:p></o:p></pre>
<pre><code> </code><o:p></o:p></pre>
<pre><code>NULL platform behavior</code><o:p></o:p></pre>
<pre><code> clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Intel Gen OCL Driver</code><o:p></o:p></pre>
<pre><code>Device open failed, aborting...</code><o:p></o:p></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><o:p></o:p></pre>
<pre><code> clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Intel Gen OCL Driver</code><o:p></o:p></pre>
<pre><code> clCreateContext(NULL, ...) [default] No devices found in platform</code><o:p></o:p></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform</code><o:p></o:p></pre>
<pre><code>Device open failed, aborting...</code><o:p></o:p></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><o:p></o:p></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform</code><o:p></o:p></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform</code><o:p></o:p></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform</code><o:p></o:p></pre>
<pre><code>Device open failed, aborting...</code><o:p></o:p></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><o:p></o:p></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform</code><o:p></o:p></pre>
<pre><code> </code><o:p></o:p></pre>
<pre><code>ICD loader properties</code><o:p></o:p></pre>
<pre><code> ICD loader Name OpenCL ICD Loader</code><o:p></o:p></pre>
<pre><code> ICD loader Vendor OCL Icd free software</code><o:p></o:p></pre>
<pre><code> ICD loader Version 2.2.7</code><o:p></o:p></pre>
<pre><code> ICD loader Profile OpenCL 1.2</code><o:p></o:p></pre>
<pre><code> NOTE: your OpenCL library declares to support OpenCL 1.2,</code><o:p></o:p></pre>
<pre><code> but it seems to support up to OpenCL 2.0 too.</code><o:p></o:p></pre>
<pre><code>Nothing to output !</code><span style="color:#888888"><br><br><code>--</code><br><code>Igor</code></span><o:p></o:p></pre>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>