Summary: | "cl_get_gt_device(): error, unknown device: 0" on Dell XPS 13 Skylake with kernel 4.4 | ||
---|---|---|---|
Product: | Beignet | Reporter: | Cedric Nugteren <web> |
Component: | Beignet | Assignee: | rongyang <rong.r.yang> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Cedric Nugteren
2016-01-23 19:57:05 UTC
Any ideas? Let me know if more information or tests are required. It seems fail when get device id. Can list the device under /dev/dri and check the return value of function intel_driver_open in src/intel/intel_driver.c? Below is the requested information: bash:~$ ls -l /dev/dri total 0 crw-rw----+ 1 root video 226, 0 Feb 14 11:02 card0 crw-rw---- 1 root video 226, 64 Feb 14 11:01 controlD64 crw-rw----+ 1 root video 226, 128 Feb 14 11:01 renderD128 I added a printf statement after each of the return statements in "intel_driver_open" and it turns out that it returns CL_SUCCESS. Please also print out intel->device_id before return? The value of device_id is zero. I've printed the values of the other integers from that structure: fd: 4 device_id: 0 gen_ver: 0 locked: 0 need_close: 0 atomic_test_result: 0 This just before return CL_SUCCESS; Beignet check the device depends on the device id, and the device id is get from libdrm's api drm_intel_bufmgr_gem_get_devid in function intel_driver_memman_init. And libdrm get the device id from pci ids. It seems libdrm's issue. Have you set environment variable "INTEL_DEVID_OVERRIDE"? It will override the device id of the pci id. Or can you set it to your pci id? Maybe you could also try to intel gpu tools. No, I didn't do anything of the above. In the meantime I've updated to Linux kernel 4.5.1, the latest Intel drivers and the latest development version of Beignet, and now it is fixed. I am not sure which of the earlier mentioned 3 is responsible, perhaps it is a combination. Thanks for your feedback, I will close it. |
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.