Xorg crashes on second and next unbind operations of Arc GPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
xorg-server (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hello folks,
Experimenting with new Lenovo Yoga i7 with Intel Arc on board and found that even if it's possible to disable the GPU to save power, Xorg session crashes the session after the second attempt (the first after reboot works just fine).
This works like that - after poweroff/poweron of the system I execute the next commands:
1. First attempt:
* DRI_PRIME=1 glxinfo | grep 'OpenGL renderer' # Shows: "OpenGL renderer string: Mesa Intel(R) Arc(tm) A370M Graphics (DG2)"
* echo -n "0000:04:00.0" | sudo tee /sys/bus/
* DRI_PRIME=1 glxinfo | grep 'OpenGL renderer' # Shows: "OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)", it's embedded graphics
* echo -n "0000:04:00.0" | sudo tee /sys/bus/
* DRI_PRIME=1 glxinfo | grep 'OpenGL renderer' # Shows: "OpenGL renderer string: Mesa Intel(R) Arc(tm) A370M Graphics (DG2)"
2. Second attempt:
* echo -n "0000:04:00.0" | sudo tee /sys/bus/
* DRI_PRIME=1 glxinfo | grep 'OpenGL renderer' # Shows: "OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)", it's embedded graphics
* echo -n "0000:04:00.0" | sudo tee /sys/bus/
* DRI_PRIME=1 glxinfo | grep 'OpenGL renderer' # Shows: "OpenGL renderer string: Mesa Intel(R) Arc(tm) A370M Graphics (DG2)"
3. This and the next attempts are just the same as second one
I collected the info and can reproduce this state after each reboot, so hopefully it will help you to find what's going wrong during second and next unbind operations. I can always help with additional information if you will need some.
Thank you
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
Uname: Linux 6.2.8-060208-
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckR
CompositorRunning: None
CurrentDesktop: XFCE
Date: Sun Mar 26 12:25:03 2023
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingI
GraphicsCard:
Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:46a6] (rev 0c) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device [17aa:3ae3]
Subsystem: Lenovo Device [17aa:3ae3]
InstallationDate: Installed on 2023-02-21 (33 days ago)
InstallationMedia: Xubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: LENOVO 82UF
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/16/2022
dmi.bios.release: 1.35
dmi.bios.vendor: LENOVO
dmi.bios.version: J1CN35WW
dmi.board.
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76461 WIN
dmi.chassis.
dmi.chassis.type: 31
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.ec.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: Yoga 7 16IAH7
dmi.product.name: 82UF
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.113-
version.
version.
version.
version.
version.
version.
version.
Definitely a crash, but not yet actionable:
[ 220.992] (II) config/udev: removing GPU device /sys/devices/ pci0000: 00/0000: 00:06.2/ 0000:02: 00.0/0000: 03:01.0/ 0000:04: 00.0/drm/ card1 /dev/dri/card1 pci0000: 00/0000: 00:06.2/ 0000:02: 00.0/0000: 03:01.0/ 0000:04: 00.0/drm/ card1 0x139) [0x561dfa9a3809] 64-linux- gnu/libc. so.6 (__sigaction+0x50) [0x7f0ed6842520]
[ 220.992] xf86: remove device 1 /sys/devices/
[ 220.992] (EE)
[ 220.992] (EE) Backtrace:
[ 220.995] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+
[ 220.996] (EE) 1: /lib/x86_
[ 220.997] (EE) 2: ? (?+0x0) [0x0]
[ 220.997] (EE)
[ 220.997] (EE) Segmentation fault at address 0x0
[ 220.997] (EE)
Fatal server error:
[ 220.997] (EE) Caught signal 11 (Segmentation fault). Server aborting