[Beignet] "utest_run -c runtime_use_host_ptr_buffer" failed to release test userptr object! [Solved]

Gao, Sanshan gss at mail.ustc.edu.cn
Wed May 6 20:45:19 PDT 2015


Problem has been solved by compiling libdrm form source code, so the release error is caused by libdrm.


1. I run the follow command, problem not solved. I guess it's wrong with PPA https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers/
sudo apt-get --purge autoremove libdrm-dev
sudo apt-get install libdrm-dev
apt-show-versions libdrm-dev
libdrm-dev:amd64/trusty 2.4.60+git1505061830.812e8f~gd~t uptodate
... recompile Beignet


2. Recompile libdrm-2.4.58.tar.gz from http://dri.freedesktop.org/libdrm/, it's OK


3. Recompile libdrm-2.4.60.tar.gz from http://dri.freedesktop.org/libdrm/, it's OK 



-----原始邮件-----
发件人:"Guo, Yejun" <yejun.guo at intel.com>
发送时间:2015-05-07 10:41:32 (星期四)
收件人: "Gao, Sanshan" <gss at mail.ustc.edu.cn>, "beignet at lists.freedesktop.org" <beignet at lists.freedesktop.org>
抄送:
主题: RE: [Beignet] "utest_run -c runtime_use_host_ptr_buffer" failed to release test userptr object! [Append]



It is a message from libdrm, what’s your exact version of libdrm and linux kernel?

 

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)

 

From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Gao, Sanshan
Sent: Thursday, May 07, 2015 9:39 AM
To:beignet at lists.freedesktop.org
Subject: Re: [Beignet] "utest_run -c runtime_use_host_ptr_buffer" failed to release test userptr object! [Append]

 

My simple demo now has the same hint, Failed to release test userptr object! (9) i915 kernel driver may not be sane! , but it works correct last night.

 

I have used the Patch and run "echo 0 > /sys/module/i915/parameters/enable_cmd_parser".







-----原始邮件-----
发件人:"Gao, Sanshan" <gss at mail.ustc.edu.cn>
发送时间:2015-05-07 09:29:19 (星期四)
收件人: "beignet at lists.freedesktop.org" <beignet at lists.freedesktop.org>
抄送:
主题: "utest_run -c runtime_use_host_ptr_buffer" failed to release test userptr object!

Hello, 

 

1. When I run "./utest_run -c runtime_use_host_ptr_buffer", I get this message:

 

... ...

device_opencl_c_version "OpenCL C 1.2 beignet 1.1 (git-83f8739)"

Failed to release test userptr object! (9) i915 kernel driver may not be sane!

21 image formats are supported

... ...

runtime_use_host_ptr_buffer()    [SUCCESS]

Failed to release test userptr object! (9) i915 kernel driver may not be sane!

 

summary:

----------

  total: 681

  run: 1

  pass: 1

  fail: 0

  pass rate: 1.000000

 

2. When I run "cmake ../", maybe everything is OK, because I get this message:

-- Building mode: RelWithDebInfo

-- LLVM llvm-config found at: /usr/bin/llvm-config-3.5

-- find unstable LLVM version 3.5.0

-- Looking for XLib - found

-- Looking for DRM - found at /usr 2.4.60

-- Looking for DRM Intel - found at /usr 2.4.60

-- Enable userptr support

-- Enable EU total query support

-- Enable subslice total query support

-- Looking for OpenGL - found at /usr

-- Looking for Xext - found at /usr

-- Looking for Xfixes - found at /usr

-- Looking for EGL - found at /usr

-- Looking for OCL ICD header file - found

-- Building mode: RelWithDebInfo

running cd "/home/gss/files/beignet/utests" && mkdir generated -p  2>&1

-- Configuring done

-- Generating done

-- Build files have been written to: /home/gss/files/beignet/build

 

3. I have written a simple demo using CL_MEM_USE_HOST_PTR, and it gets right result.

 

Problem: What's wrong with my Beignet? 

 

 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20150507/a1b80622/attachment.html>


More information about the Beignet mailing list