[Beignet] corrupted AST file

Rees, Kevron kevron.m.rees at intel.com
Wed Nov 12 08:55:12 PST 2014


passing drm.rnodes=1 to the kernel args enables render nodes.  Works
now without root.  Thanks!

On Tue, Nov 11, 2014 at 9:12 PM, Zhigang Gong
<zhigang.gong at linux.intel.com> wrote:
> Beignet supports three methods to open the dri driver:
> 1.  Open the device directly, but you need to do this as root.
> 2.  Use dri2 authentication with X server, this method needs to set correct DISPLAY environment variable.
> 3.  Open render node directly with render nodes enabled.
>
> Methods 2 and 3 don't need root, but it needs to satisfy the system requirement as described above.
>
>> -----Original Message-----
>> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
>> Rees, Kevron
>> Sent: Wednesday, November 12, 2014 8:37 AM
>> To: Zhigang Gong
>> Cc: beignet at lists.freedesktop.org
>> Subject: Re: [Beignet] corrupted AST file
>>
>> That works.  Thanks.
>>
>> My next problem is that I'm only able to run as root.  When I run as a normal
>> user, I get the following:
>>
>> /dev/dri/card0 not authenticated
>> open("/dev/dri/card1", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card2", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card3", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card4", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card5", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card6", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card7", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card8", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card9", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card10", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card11", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card12", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card13", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card14", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card15", O_RDWR) failed: No such file or directory Device open
>> failed, aborting...
>> /dev/dri/card0 not authenticated
>> open("/dev/dri/card1", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card2", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card3", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card4", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card5", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card6", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card7", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card8", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card9", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card10", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card11", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card12", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card13", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card14", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card15", O_RDWR) failed: No such file or directory Device open
>> failed, aborting...
>> cl_get_gt_device(): error, unknown device: ffffffff
>> /dev/dri/card0 not authenticated
>> open("/dev/dri/card1", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card2", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card3", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card4", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card5", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card6", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card7", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card8", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card9", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card10", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card11", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card12", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card13", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card14", O_RDWR) failed: No such file or directory
>> open("/dev/dri/card15", O_RDWR) failed: No such file or directory Device open
>> failed, aborting...
>> Segmentation fault (core dumped)
>>
>>
>>
>> On Mon, Nov 10, 2014 at 10:02 PM, Zhigang Gong
>> <zhigang.gong at linux.intel.com> wrote:
>> > I just realized this is a pch header file relocation issue.
>> > I sent a patch a few minutes ago, could you have a try and let me know
>> > whether it fix this issue for you.
>> >
>> > Thanks,
>> > Zhigang Gong.
>> >
>> > On Mon, Nov 10, 2014 at 09:35:27AM -0800, Rees, Kevron wrote:
>> >> I updated to the latest on master
>> >> (48e2da81c01b4bc14b2249a9bead8667319c212d).  Same error.
>> >>
>> >> -Kevron
>> >>
>> >> On Sun, Nov 9, 2014 at 7:49 PM, Zhigang Gong
>> >> <zhigang.gong at linux.intel.com> wrote:
>> >> > Could you try git master beignet? We are going to release a new version
>> very soon.
>> >> >
>> >> > On Fri, Nov 07, 2014 at 03:24:26PM -0800, Rees, Kevron wrote:
>> >> >> Hi,
>> >> >>
>> >> >> I'm trying to get beignet running on tizen with OpenCV.  It
>> >> >> appears that OpenCV finds the device, but a strange AST error
>> >> >> appears right before OpenCV aborts.  Here's the log:
>> >> >>
>> >> >> 718.96           | platform:  Intel Gen OCL Driver  vendor:  Intel
>> >> >> 718.961          | There are  1  OpenCL devices on this system
>> >> >> 718.963          | OpenCLDeviceName:  73
>> >> >> 718.963          | OpenCLDeviceName:  110
>> >> >> 718.964          | OpenCLDeviceName:  116
>> >> >> 718.964          | OpenCLDeviceName:  101
>> >> >> 718.964          | OpenCLDeviceName:  108
>> >> >> 718.965          | OpenCLDeviceName:  40
>> >> >> 718.966          | OpenCLDeviceName:  82
>> >> >> 718.966          | OpenCLDeviceName:  41
>> >> >> 718.967          | OpenCLDeviceName:  32
>> >> >> 718.967          | OpenCLDeviceName:  72
>> >> >> 718.968          | OpenCLDeviceName:  68
>> >> >> 718.968          | OpenCLDeviceName:  32
>> >> >> 718.969          | OpenCLDeviceName:  71
>> >> >> 718.969          | OpenCLDeviceName:  114
>> >> >> 718.97           | OpenCLDeviceName:  97
>> >> >> 718.97           | OpenCLDeviceName:  112
>> >> >> 718.971          | OpenCLDeviceName:  104
>> >> >> 718.971          | OpenCLDeviceName:  105
>> >> >> 718.972          | OpenCLDeviceName:  99
>> >> >> 718.972          | OpenCLDeviceName:  115
>> >> >> 718.973          | OpenCLDeviceName:  32
>> >> >> 718.973          | OpenCLDeviceName:  66
>> >> >> 718.974          | OpenCLDeviceName:  97
>> >> >> 718.974          | OpenCLDeviceName:  121
>> >> >> 718.974          | OpenCLDeviceName:  32
>> >> >> 718.975          | OpenCLDeviceName:  84
>> >> >> 718.975          | OpenCLDeviceName:  114
>> >> >> 718.976          | OpenCLDeviceName:  97
>> >> >> 718.976          | OpenCLDeviceName:  105
>> >> >> 718.977          | OpenCLDeviceName:  108
>> >> >> 718.977          | OpenCLDeviceName:  45
>> >> >> 718.978          | OpenCLDeviceName:  84
>> >> >> 719.242          | Subscribing to:  VehicleSpeed
>> >> >> 719.242          | Subscribing to:  Latitude
>> >> >> 719.242          | Subscribing to:  Longitude
>> >> >> HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP HIGHGUI ERROR: V4L2:
>> >> >> getting property #5 is not supported
>> >> >>
>> >> >> BUILD LOG: cvt_color:  -D INTEL_DEVICE -D DEPTH_0 -D scn=4 -D
>> >> >> bidx=0 -D pixels_per_work_item=4 fatal error: malformed or
>> >> >> corrupted AST file: 'could not find file
>> >> >>
>> '/home/abuild/rpmbuild/BUILD/beignet-0.9.3.git1414386114.6eb5d67/backen
>> d/src/libocl/include/ocl_workitem.h'
>> >> >> referenced by AST file'
>> >> >>
>> >> >> OpenCV Error: Gpu API call (CL_BUILD_PROGRAM_FAILURE) in
>> >> >> getOrBuildProgram, file
>> >> >> /home/abuild/rpmbuild/BUILD/OpenCV-2.4.9/modules/ocl/src/cl_progra
>> >> >> mcache.cpp,
>> >> >> line 445
>> >> >> terminate called after throwing an instance of 'cv::Exception'
>> >> >>   what():
>> /home/abuild/rpmbuild/BUILD/OpenCV-2.4.9/modules/ocl/src/cl_programcach
>> e.cpp:445:
>> >> >> error: (-217) CL_BUILD_PROGRAM_FAILURE in function
>> >> >> getOrBuildProgram
>> >> >>
>> >> >> Aborted (core dumped)
>> >> >>
>> >> >> -----
>> >> >>
>> >> >> any ideas what would cause this?
>> >> >>
>> >> >> -Kevron
>> >> >> _______________________________________________
>> >> >> Beignet mailing list
>> >> >> Beignet at lists.freedesktop.org
>> >> >> http://lists.freedesktop.org/mailman/listinfo/beignet
>> >> _______________________________________________
>> >> Beignet mailing list
>> >> Beignet at lists.freedesktop.org
>> >> http://lists.freedesktop.org/mailman/listinfo/beignet
>> _______________________________________________
>> Beignet mailing list
>> Beignet at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/beignet
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list