Bug 101332 - 'error, unknown device: 1927' on i5-6267U (Skylake), INTEL_DEVID_OVERRIDE won't help much
Summary: 'error, unknown device: 1927' on i5-6267U (Skylake), INTEL_DEVID_OVERRIDE won...
Status: RESOLVED MOVED
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) All
: medium major
Assignee: Xiuli Pan
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-07 18:32 UTC by Jacek Konieczny
Modified: 2018-10-12 21:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
utest_run output for INTEL_DEVID_OVERRIDE=0x1906 (200.39 KB, text/x-log)
2017-06-07 18:32 UTC, Jacek Konieczny
Details
utest_run output after the patch applied (42.60 KB, text/plain)
2017-06-14 15:36 UTC, Jacek Konieczny
Details

Description Jacek Konieczny 2017-06-07 18:32:26 UTC
Created attachment 131786 [details]
utest_run output for INTEL_DEVID_OVERRIDE=0x1906

Beignet: 1.3.1
Kernel: 4.9.6-1
Acer Aspire E 15 laptop
CPU: Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
GPU: VGA compatible controller [0300]: Intel Corporation Iris Graphics 550 [8086:1927] (rev 0a)
Mesa works properly on this system (both OpenGL and Vulkan)

clinfo fails:
$ ./clinfo 
cl_get_gt_device(): error, unknown device: 1927
cl_get_gt_device(): error, unknown device: 1927
Platform #0
  Name:                                  Intel(R) OpenCL
  Version:                               OpenCL 2.0 LINUX

  Device #0
    Name:                                Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
    Type:                                CPU
    Version:                             OpenCL 2.0 (Build 400)
    Global memory size:                  7 GB 756 MB 708 kB 
    Local memory size:                   32 kB 
    Max work group size:                 8192
    Max work item sizes:                 (8192, 8192, 8192)

Platform #1
  Name:                                  Intel Gen OCL Driver
  Version:                               OpenCL 2.0 beignet 1.3

cl_get_gt_device(): error, unknown device: 1927
./clinfo: Cannot get the number of OpenCL devices available on this platform.

I tried $INTEL_DEVID_OVERRIDE (with different values) with no luck:

$ INTEL_DEVID_OVERRIDE=0x1906 ./clinfo 
Beignet: self-test failed: (3, 7, 5) + (5, 7, 3) returned (3, 7, 5)
See README.md or http://www.freedesktop.org/wiki/Software/Beignet/
Beignet: disabling non-working device
Beignet: disabling non-working device

utests:

$ ./utest_run 
platform number 1
platform_profile "FULL_PROFILE"
platform_name "Intel Gen OCL Driver"
platform_vendor "Intel"
platform_version "OpenCL 2.0 beignet 1.3"
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_depth_images cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_subgroups cl_intel_subgroups_short cl_khr_gl_sharing"
cl_get_gt_device(): error, unknown device: 1927
error calling clGetDeviceIDs
Failed to initialize cl device.

summary:
----------
  total: 1000
  run: 0
  pass: 0
  fail: 0
  pass rate: 0.000000

$ INTEL_DEVID_OVERRIDE=0x1906 ./utest_run
[...full log attached...]
summary:
----------
  total: 1000
  run: 959
  pass: 51
  fail: 908
  pass rate: 0.053180


The same Beignet binaries work on another Skylake system (i5-6400)
Comment 1 Xiuli Pan 2017-06-14 02:33:19 UTC
Hi Jacek,

It seems we did not update the supported PCIID as there are some new skylake device. I will send a patch to update these PCIIDs. We do not have devices with ALL of the PCIIDs,so could you have a try with utest to see if the patch works fine?

Thanks
Xiuli
Comment 2 Xiuli Pan 2017-06-14 03:44:03 UTC
The patch is here, could you try it and give me some feedback.

https://patchwork.freedesktop.org/patch/161569/

Thanks
Xiuli
Comment 3 Jacek Konieczny 2017-06-14 15:36:20 UTC
Created attachment 131955 [details]
utest_run output after the patch applied
Comment 4 Jacek Konieczny 2017-06-14 15:37:02 UTC
Much better now:

[...]
compiler_fill_gl_image()    [FAILED]
    Error: error calling clBuildProgram with error CL_BUILD_PROGRAM_FAILURE 

  at file [...]/utests/utest_helper.cpp, function cl_kernel_init, line 269

summary:
----------
  total: 1000
  run: 959
  pass: 958
  fail: 1
  pass rate: 0.998957
Comment 5 Xiuli Pan 2017-06-15 02:39:16 UTC
What the LLVM version you are using? That's a known issue with LLVM 3.8+ and it has been fixed by 

https://cgit.freedesktop.org/beignet/commit/?id=8e119eb32e01066c23c3d96bd2b42032e03f7628

Thanks
Xiuli
Comment 6 Jacek Konieczny 2017-06-15 09:35:58 UTC
I use LLVM 39.1 and the patch fixed the last test for me.

Thank you, Xiuli. 

Jacek
Comment 7 Xiuli Pan 2017-06-16 03:01:23 UTC
OK, I will close this bug report after my patch is merged in.
And you can try our master branch then.

Thanks
Xiuli
Comment 8 GitLab Migration User 2018-10-12 21:25:05 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/beignet/beignet/issues/40.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.