Bug 1222141 - openCL with intel i915/xe (Intel Arc series) missing in Kernel 6.8, no compute device
Summary: openCL with intel i915/xe (Intel Arc series) missing in Kernel 6.8, no comput...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel:Drivers (show other bugs)
Version: Current
Hardware: Other openSUSE Tumbleweed
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-28 18:43 UTC by dani mackiol
Modified: 2024-04-05 14:04 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
tiwai: needinfo? (dani.mackiol)


Attachments
dmesg with kernel 6.7.9 (67.18 KB, text/plain)
2024-04-02 15:37 UTC, Luca Billi
Details
dmesg with kernel 6.8.1 (68.93 KB, text/plain)
2024-04-02 15:38 UTC, Luca Billi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dani mackiol 2024-03-28 18:43:45 UTC
Hello X11 Team,

Since kernel 6.8, openCL computing no longer works. 
No device is recognized with clinfo, only the Mesa driver.
Current tumbleweed with Intel Arc 770 GPU.

What information do you still need?

Dani
Comment 1 Stefan Dirsch 2024-03-28 20:39:50 UTC
So it works by booting the same system, just with an older kernel?
Comment 2 dani mackiol 2024-03-29 08:37:37 UTC
yes by kernel 6.7 it works.
Comment 3 dani mackiol 2024-03-29 09:32:23 UTC
(In reply to dani mackiol from comment #2)
> yes by kernel 6.7 it works.

Kernel 6.7.9
Platform #0: Intel(R) OpenCL Graphics
 `-- Device #0: Intel(R) Arc(TM) A770 Graphics
Platform #1: rusticl
Platform #2: Clover 

Kernel 6.8.1
Platform #1: rusticl
Platform #2: Clover
Comment 4 Stefan Dirsch 2024-03-29 09:43:52 UTC
Ok. Then better let's assign this to kernel component.
Comment 5 Takashi Iwai 2024-04-02 13:21:19 UTC
Please give dmesg outputs from both 6.7.x and 6.8.x kernels.  Also the hwinfo outputs from them, too.
Comment 6 dani mackiol 2024-04-02 14:50:10 UTC
============ start hardware log ============
============ start debug info ============
libhd version 23.2 (x86-64) [7688]
using /var/lib/hardware
kernel version is 6.7
----- /proc/cmdline -----
  BOOT_IMAGE=/boot/vmlinuz-6.7.9-1-default root=UUID=cbbdfb54-2b97-431c-838e-cb75be748b9f splash=silent resume=/dev/disk/by-uuid/d765dd18-1826-4bc4-aacb-36c8df8a74aa quiet security=apparmor 915.force_probe=!56A0 xe.force_probe=56A0 mitigations=auto
----- /proc/cmdline end -----
53: PCI d00.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: fSIl.nDfmnmUHKH4
  Old Unique ID: XB5r.nDfmnmUHKH4
  Parent ID: 2j84.mr2N3fBJq5F
  SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:0b:00.0/0000:0c:01.0/0000:0d:00.0
  SysFS BusID: 0000:0d:00.0
  Hardware Class: graphics card
  HW Class List: graphics card, pci
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x56a0 
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1020 
  Revision: 0x08
  Driver: "i915"
  Driver Modules: "i915"
  Main Driver Module: "i915"
  Memory Range: 0xfa000000-0xfaffffff (rw,non-prefetchable)
  Memory Range: 0x7800000000-0x7bffffffff (ro,non-prefetchable)
  Memory Range: 0xfb000000-0xfb1fffff (ro,non-prefetchable,disabled)
  IRQ: 150 (77488 events)
  Module Alias: "pci:v00008086d000056A0sv00008086sd00001020bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
    Driver DB0: 2, i915
  Persistent Properties:
    hwinfo.res.interrupts = { '144,721,1' }
    hwinfo.res.memory = { '0xfa000000,0x1000000,1,3,1', '0xf800000000,0x400000000,1,1,1', '0xfb000000,0x200000,0,1,1' }
    hwinfo.hwclasslist = '00100020000000'
    hwinfo.sysfsbusid = '0000:0d:00.0'
    hwinfo.sysfsid = '/devices/pci0000:00/0000:00:03.1/0000:0b:00.0/0000:0c:01.0/0000:0d:00.0'
    hwinfo.drivers = { 'i915' }
    hwinfo.subdeviceid = 69664 (0x11020)
    hwinfo.subvendorname = 'Intel Corporation'
    hwinfo.subvendorid = 98438 (0x18086)
    hwinfo.deviceid = 87712 (0x156a0)
    hwinfo.vendorname = 'Intel Corporation'
    hwinfo.vendorid = 98438 (0x18086)
    hwinfo.revisionid = 8 (0x8)
    hwinfo.baseclass = 3 (0x3)
    hwinfo.slot = 3328 (0xd00)
    hwinfo.bus = 4 (0x4)
    hwinfo.active = 'unknown'
    hwinfo.needed = 'no'
    hwinfo.available = 'yes'
    hwinfo.configured = 'new'
    hwinfo.hwclass = 'graphics card'
    hwinfo.model = 'Intel VGA compatible controller'
    hwinfo.parentid = '2j84.mr2N3fBJq5F'
    hwinfo.uniqueid = 'fSIl.nDfmnmUHKH4'
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #47 (PCI bridge)
53: PCI d00.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: fSIl.nDfmnmUHKH4
  Parent ID: 2j84.mr2N3fBJq5F
  SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:0b:00.0/0000:0c:01.0/0000:0d:00.0
  SysFS BusID: 0000:0d:00.0
  Hardware Class: graphics card
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x56a0 
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1020 
  Revision: 0x08
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0xfa000000-0xfaffffff (rw,non-prefetchable)
  Memory Range: 0x7800000000-0x7bffffffff (ro,non-prefetchable)
  Memory Range: 0xfb000000-0xfb1fffff (ro,non-prefetchable,disabled)
  IRQ: 150 (77488 events)
  Module Alias: "pci:v00008086d000056A0sv00008086sd00001020bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #47 (PCI bridge)

Primary display adapter: #53

============ start hardware log ============
============ start debug info ============
libhd version 23.2 (x86-64) [7688]
using /var/lib/hardware
kernel version is 6.8
----- /proc/cmdline -----
  BOOT_IMAGE=/boot/vmlinuz-6.8.1-1-default root=UUID=cbbdfb54-2b97-431c-838e-cb75be748b9f splash=silent resume=/dev/disk/by-uuid/d765dd18-1826-4bc4-aacb-36c8df8a74aa quiet security=apparmor 915.force_probe=!56A0 xe.force_probe=56A0 mitigations=auto
----- /proc/cmdline end -----
53: PCI d00.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: fSIl.nDfmnmUHKH4
  Old Unique ID: XB5r.nDfmnmUHKH4
  Parent ID: 2j84.mr2N3fBJq5F
  SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:0b:00.0/0000:0c:01.0/0000:0d:00.0
  SysFS BusID: 0000:0d:00.0
  Hardware Class: graphics card
  HW Class List: graphics card, pci
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x56a0 
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1020 
  Revision: 0x08
  Driver: "i915"
  Driver Modules: "i915"
  Main Driver Module: "i915"
  Memory Range: 0xfa000000-0xfaffffff (rw,non-prefetchable)
  Memory Range: 0x7800000000-0x7bffffffff (ro,non-prefetchable)
  Memory Range: 0xfb000000-0xfb1fffff (ro,non-prefetchable,disabled)
  IRQ: 150 (48163 events)
  Module Alias: "pci:v00008086d000056A0sv00008086sd00001020bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
    Driver DB0: 2, i915
  Driver Info #1:
    Driver Status: xe is active
    Driver Activation Cmd: "modprobe xe"
    Driver DB0: 2, xe
  Persistent Properties:
    hwinfo.res.interrupts = { '144,721,1' }
    hwinfo.res.memory = { '0xfa000000,0x1000000,1,3,1', '0xf800000000,0x400000000,1,1,1', '0xfb000000,0x200000,0,1,1' }
    hwinfo.hwclasslist = '00100020000000'
    hwinfo.sysfsbusid = '0000:0d:00.0'
    hwinfo.sysfsid = '/devices/pci0000:00/0000:00:03.1/0000:0b:00.0/0000:0c:01.0/0000:0d:00.0'
    hwinfo.drivers = { 'i915' }
    hwinfo.subdeviceid = 69664 (0x11020)
    hwinfo.subvendorname = 'Intel Corporation'
    hwinfo.subvendorid = 98438 (0x18086)
    hwinfo.deviceid = 87712 (0x156a0)
    hwinfo.vendorname = 'Intel Corporation'
    hwinfo.vendorid = 98438 (0x18086)
    hwinfo.revisionid = 8 (0x8)
    hwinfo.baseclass = 3 (0x3)
    hwinfo.slot = 3328 (0xd00)
    hwinfo.bus = 4 (0x4)
    hwinfo.active = 'unknown'
    hwinfo.needed = 'no'
    hwinfo.available = 'yes'
    hwinfo.configured = 'new'
    hwinfo.hwclass = 'graphics card'
    hwinfo.model = 'Intel VGA compatible controller'
    hwinfo.parentid = '2j84.mr2N3fBJq5F'
    hwinfo.uniqueid = 'fSIl.nDfmnmUHKH4'
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #47 (PCI bridge)

53: PCI d00.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: fSIl.nDfmnmUHKH4
  Parent ID: 2j84.mr2N3fBJq5F
  SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:0b:00.0/0000:0c:01.0/0000:0d:00.0
  SysFS BusID: 0000:0d:00.0
  Hardware Class: graphics card
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x56a0 
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1020 
  Revision: 0x08
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0xfa000000-0xfaffffff (rw,non-prefetchable)
  Memory Range: 0x7800000000-0x7bffffffff (ro,non-prefetchable)
  Memory Range: 0xfb000000-0xfb1fffff (ro,non-prefetchable,disabled)
  IRQ: 150 (48163 events)
  Module Alias: "pci:v00008086d000056A0sv00008086sd00001020bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Driver Info #1:
    Driver Status: xe is active
    Driver Activation Cmd: "modprobe xe"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #47 (PCI bridge)

Primary display adapter: #53
Comment 7 Luca Billi 2024-04-02 15:36:45 UTC
Same issue here with Intel i3-7100 and integrated Intel HD Graphics 630.
Driver intel-opencl stopped working after the recent upgrade to kernel 6.8.1.

Going back to kernel 6.7.9 fixes the problem.

Attaching dmesg's.
Comment 8 Luca Billi 2024-04-02 15:37:53 UTC
Created attachment 874007 [details]
dmesg with kernel 6.7.9
Comment 9 Luca Billi 2024-04-02 15:38:30 UTC
Created attachment 874008 [details]
dmesg with kernel 6.8.1
Comment 10 Luca Billi 2024-04-03 13:41:29 UTC
Upstream issue https://github.com/intel/compute-runtime/issues/710
Comment 11 Patrik Jakobsson 2024-04-03 13:54:33 UTC
Seems there is a potential fix for the intel-compute-runtime at [1]. If that works I'll update the package tomorrow.

[1] https://github.com/intel/compute-runtime/commit/420e1391b228586efa8546db343e8e6eb50e398b
Comment 12 Luca Billi 2024-04-03 14:27:15 UTC
Also, in the above issue discussion it's mentioned to set these env variables as a temporary workaround: NEOReadDebugKeys=1 and OverrideGpuAddressSpace=48.

In my case it works:

> NEOReadDebugKeys=1 OverrideGpuAddressSpace=48 clinfo -l
Platform #0: Intel(R) OpenCL Graphics
 `-- Device #0: Intel(R) HD Graphics 630
Comment 13 Patrik Jakobsson 2024-04-04 11:36:22 UTC
I've updated the intel-graphics-compiler and intel-opencl (compute-runtime) packages to the latest version and added the fix to intel-opencl. This fixes the issue for me but please test the packages at [1] and confirm.

[1] https://build.opensuse.org/project/show/home:patrikjakobsson:branches:X11:XOrg
Comment 14 Luca Billi 2024-04-04 14:56:47 UTC
Works for me.
Comment 15 dani mackiol 2024-04-05 14:04:58 UTC
with kernel-update 6.8.2-1.1 fixed the problem.