<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">> <span style="font-size:11pt;font-family:"calibri",sans-serif;color:rgb(31,73,125)">The PCIID should be 0x040a, and we support that device.<br><br></span><span style="font-family:"courier new"">Here it is:</span><br><br><span style="font-family:"courier new"">vgapci0@pci0:0:2:0: class=0x030000 card=[0x040a]1849 chip=[0x040a]8086 rev=0x06 hdr=0x00<br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:"courier new""></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:"courier new""><br>> </span><span style="font-family:"courier new""><span style="font-size:11pt;font-family:"calibri",sans-serif;color:rgb(31,73,125)">ls /dev/dri/</span><br><br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:"courier new"">It returns:<br><br>card0 controlD64<br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:"courier new""><span style="font-size:11pt;font-family:"calibri",sans-serif;color:rgb(31,73,125)"></span><br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:"courier new"">There's no renderD128.<br><br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:"courier new"">kldstat says that i915kms.ko and drm2.ko are loaded.<br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:"courier new""><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-12 6:17 GMT+03:00 Pan, Xiuli <span dir="ltr"><<a href="mailto:xiuli.pan@intel.com" target="_blank">xiuli.pan@intel.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div class="m_4044995352836568836WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Igor,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The PCIID should be 0x040a, and we support that device.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If you are running without X, then you should check if<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">ls /dev/dri/<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">will return something like these:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">card0 controlD64 renderD128<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If not you may need to enable i915 in your kernel.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Otherwise, there may be something wrong with you libdrm<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Xiuli<u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_4044995352836568836__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></a></p>
<p class="MsoNormal"><a name="m_4044995352836568836______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:<a href="mailto:igor.arabesc.pavlov@gmail.com" target="_blank">igor.arabesc.pavlov@<wbr>gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, October 12, 2016 8:00 AM<br>
<b>To:</b> Pan, Xiuli <<a href="mailto:xiuli.pan@intel.com" target="_blank">xiuli.pan@intel.com</a>><br>
<b>Cc:</b> <a href="mailto:beignet@lists.freedesktop.org" target="_blank">beignet@lists.freedesktop.org</a><br>
<b>Subject:</b> Re: [Beignet] Weird clinfo ouput @ FreeBSD-11.0/Intel GPU<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="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<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Do I have to load some driver maybe?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2016-10-11 10:27 GMT+03:00 Pan, Xiuli <<a href="mailto:xiuli.pan@intel.com" target="_blank">xiuli.pan@intel.com</a>>:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Igor,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Could you provide the PCI ID of your device by</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">lspci –v.</span><u></u><u></u></p>
<p class="MsoNormal"><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><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Xiuli</span><u></u><u></u></p>
<p class="MsoNormal"><a name="m_4044995352836568836_m_8671015368116596317__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></a><u></u><u></u></p>
<p class="MsoNormal"><a name="m_4044995352836568836_m_8671015368116596317______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">
Beignet [mailto:<a href="mailto:beignet-bounces@lists.freedesktop.org" target="_blank">beignet-bounces@lists.<wbr>freedesktop.org</a>]
<b>On Behalf Of </b>Igor Pavlov<br>
<b>Sent:</b> Monday, October 10, 2016 8:51 PM<br>
<b>To:</b> <a href="mailto:beignet@lists.freedesktop.org" target="_blank">beignet@lists.freedesktop.org</a><br>
<b>Subject:</b> [Beignet] Weird clinfo ouput @ FreeBSD-11.0/Intel GPU</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New"">Dear Beignet community,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New"">Could someone kindly clarify, what do all of this mean?</span><u></u><u></u></p>
<pre><code># uname -opr</code><u></u><u></u></pre>
<pre><code>FreeBSD 11.0-RELEASE-p1 amd64</code><u></u><u></u></pre>
<pre><code> </code><u></u><u></u></pre>
<pre><code># sysctl hw.model </code><u></u><u></u></pre>
<pre><code>hw.model: Intel(R) Xeon(R) CPU E3-1265L v3 @ 2.50GHz</code><u></u><u></u></pre>
<pre><code> </code><u></u><u></u></pre>
<pre><code># pkg info | grep beignet</code><u></u><u></u></pre>
<pre><code>beignet-1.2.0 OpenCL library for Intel GPUs</code><u></u><u></u></pre>
<pre><code> </code><u></u><u></u></pre>
<pre><code># clinfo -v</code><u></u><u></u></pre>
<pre><code>clinfo version 2.1.16.01.12</code><u></u><u></u></pre>
<pre><code> </code><u></u><u></u></pre>
<pre><code># clinfo </code><u></u><u></u></pre>
<pre><code>Device open failed, aborting...</code><u></u><u></u></pre>
<pre><code>Number of platforms 1</code><u></u><u></u></pre>
<pre><code> Platform Name <wbr> Intel Gen OCL Driver</code><u></u><u></u></pre>
<pre><code> Platform Vendor <wbr> Intel</code><u></u><u></u></pre>
<pre><code> Platform Version <wbr> OpenCL 1.2 beignet 1.2</code><u></u><u></u></pre>
<pre><code> Platform Profile FULL_PROFILE</code><u></u><u></u></pre>
<pre><code> Platform Extensions <wbr> cl_khr_global_int32_base_<wbr>atomics cl_khr_global_int32_extended_<wbr>atomics cl_khr_local_int32_base_<wbr>atomics cl_khr_local_int32_extended_<wbr>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><u></u><u></u></pre>
<pre><code> Platform Extensions function suffix Intel</code><u></u><u></u></pre>
<pre><code>Device open failed, aborting...</code><u></u><u></u></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><u></u><u></u></pre>
<pre><code> </code><u></u><u></u></pre>
<pre><code> Platform Name <wbr> Intel Gen OCL Driver</code><u></u><u></u></pre>
<pre><code>Number of devices <wbr> 0</code><u></u><u></u></pre>
<pre><code> </code><u></u><u></u></pre>
<pre><code>NULL platform behavior</code><u></u><u></u></pre>
<pre><code> clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Intel Gen OCL Driver</code><u></u><u></u></pre>
<pre><code>Device open failed, aborting...</code><u></u><u></u></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><u></u><u></u></pre>
<pre><code> clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Intel Gen OCL Driver</code><u></u><u></u></pre>
<pre><code> clCreateContext(NULL, ...) [default] No devices found in platform</code><u></u><u></u></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform</code><u></u><u></u></pre>
<pre><code>Device open failed, aborting...</code><u></u><u></u></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><u></u><u></u></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform</code><u></u><u></u></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform</code><u></u><u></u></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform</code><u></u><u></u></pre>
<pre><code>Device open failed, aborting...</code><u></u><u></u></pre>
<pre><code>cl_get_gt_device(): error, unknown device: ffffffff</code><u></u><u></u></pre>
<pre><code> clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform</code><u></u><u></u></pre>
<pre><code> </code><u></u><u></u></pre>
<pre><code>ICD loader properties</code><u></u><u></u></pre>
<pre><code> ICD loader Name <wbr> OpenCL ICD Loader</code><u></u><u></u></pre>
<pre><code> ICD loader Vendor <wbr> OCL Icd free software</code><u></u><u></u></pre>
<pre><code> ICD loader Version 2.2.7</code><u></u><u></u></pre>
<pre><code> ICD loader Profile <wbr> OpenCL 1.2</code><u></u><u></u></pre>
<pre><code> NOTE: your OpenCL library declares to support OpenCL 1.2,</code><u></u><u></u></pre>
<pre><code> but it seems to support up to OpenCL 2.0 too.</code><u></u><u></u></pre>
<pre><code>Nothing to output !</code><span class="HOEnZb"><font color="#888888"><br><br><code>--</code><br><code>Igor</code><u></u><u></u></font></span></pre>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</blockquote></div><br></div>