<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:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@宋体";
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:0cm;
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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">It is a message from libdrm, what’s your exact version of libdrm and linux kernel?<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">I did not see this message at my Ubuntu14.04 64bit system with libdrm 2.4.58 (built from source) and linux kernel 3.19 (download from kernel.org)<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"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Beignet [mailto:beignet-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>Gao, Sanshan<br>
<b>Sent:</b> Thursday, May 07, 2015 9:39 AM<br>
<b>To:</b> beignet@lists.freedesktop.org<br>
<b>Subject:</b> Re: [Beignet] "utest_run -c runtime_use_host_ptr_buffer" failed to release test userptr object! [Append]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My simple demo now has the same hint, <span style="background:yellow">Failed to release test userptr object! (9) i915 kernel driver may not be sane!</span> , but it works correct last night.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have used the Patch and run "<span style="font-family:Consolas;background:ghostwhite">echo 0 > /sys/module/i915/parameters/enable_cmd_parser</span>".<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal">-----<span lang="ZH-CN" style="font-family:宋体">原始邮件</span>-----<br>
<b><span lang="ZH-CN" style="font-family:宋体">发件人</span>:</b>"Gao, Sanshan" <<a href="mailto:gss@mail.ustc.edu.cn">gss@mail.ustc.edu.cn</a>><br>
<b><span lang="ZH-CN" style="font-family:宋体">发送时间</span>:</b>2015-05-07 09:29:19 (<span lang="ZH-CN" style="font-family:宋体">星期四</span>)<br>
<b><span lang="ZH-CN" style="font-family:宋体">收件人</span>:</b> "<a href="mailto:beignet@lists.freedesktop.org">beignet@lists.freedesktop.org</a>" <<a href="mailto:beignet@lists.freedesktop.org">beignet@lists.freedesktop.org</a>><br>
<b><span lang="ZH-CN" style="font-family:宋体">抄送</span>:</b> <br>
<b><span lang="ZH-CN" style="font-family:宋体">主题</span>:</b> "utest_run -c runtime_use_host_ptr_buffer" failed to release test userptr object!<br>
<br>
Hello, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>1. </b>When I run "./utest_run -c runtime_use_host_ptr_buffer", I get this message:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">... ...<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">device_opencl_c_version "OpenCL C 1.2 beignet 1.1 (git-83f8739)"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="background:yellow">Failed to release test userptr object! (9) i915 kernel driver may not be sane!</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">21 image formats are supported<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">... ...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">runtime_use_host_ptr_buffer() [SUCCESS]<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="background:yellow">Failed to release test userptr object! (9) i915 kernel driver may not be sane!</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">summary:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">----------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> total: 681<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> run: 1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <span style="background:yellow">pass: 1</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> fail: 0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> pass rate: 1.000000<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>2. </b>When I run "cmake ../", maybe everything is OK, because I get this message:<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">-- Building mode: RelWithDebInfo<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- LLVM llvm-config found at: /usr/bin/llvm-config-3.5<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- find unstable LLVM version 3.5.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Looking for XLib - found<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="background:yellow">-- Looking for DRM - found at /usr 2.4.60</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="background:yellow">-- Looking for DRM Intel - found at /usr 2.4.60</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="background:yellow">-- Enable userptr support</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Enable EU total query support<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Enable subslice total query support<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Looking for OpenGL - found at /usr<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Looking for Xext - found at /usr<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Looking for Xfixes - found at /usr<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Looking for EGL - found at /usr<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Looking for OCL ICD header file - found<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Building mode: RelWithDebInfo<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">running cd "/home/gss/files/beignet/utests" && mkdir generated -p 2>&1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Configuring done<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Generating done<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- Build files have been written to: /home/gss/files/beignet/build<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>3. </b>I have written a simple demo using CL_MEM_USE_HOST_PTR, and it gets right result.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Problem: What's wrong with my Beignet? <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>