AMD GPU не работает, выдает трассировку стека в ядре и система полностью зависает
Компьютер, который я использую, - Dell Inspiron 5570, работает под управлением Kubuntu 18.04 и имеет гибридную графику: Intel и AMD.
$ lspci -vnn | grep VGA -A 12
0:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07) (prog-if 00 [VGA controller])
Subsystem: Dell UHD Graphics 620 [1028:0810]
Flags: bus master, fast devsel, latency 0, IRQ 128
Memory at d1000000 (64-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
AMD$ lspci -vnn | grep Display -A 12
dvanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] [1002:6900] (rev c1)
Subsystem: Dell Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] [1028:0810]
Flags: fast devsel, IRQ 129
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=2M]
I/O ports at e000 [size=256]
Memory at d0200000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at d0240000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
После долгих попыток я установил драйверы AMD с открытым исходным кодом, используя PPA, предоставленный mesa. Но всякий раз, когда я бегу DRI_PRIME=1 glxgears
или какая-либо из предоставленных mesa утилит, система зависает. Я вынужден выключить компьютер, удерживая кнопку питания в течение 5 секунд.
Проходя через kernel.log
Я заметил эту трассировку стека:cat /var/log/kern.log
Jan 3 13:27:16 Datzan kernel: [ 414.559172] Hardware name: Dell Inc. Inspiron 5570/0YDF7T, BIOS 1.1.6 06/15/2018
Jan 3 13:27:16 Datzan kernel: [ 414.559216] RIP: 0010:smu7_populate_single_firmware_entry.isra.6+0x5b/0xe0 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559217] RSP: 0018:ffffbafe827ebb48 EFLAGS: 00010246
Jan 3 13:27:16 Datzan kernel: [ 414.559219] RAX: 000000000000007e RBX: ffffbb1a81ee8fec RCX: 000000000053d000
Jan 3 13:27:16 Datzan kernel: [ 414.559220] RDX: ffffffffc051739d RSI: 0000000000000000 RDI: ffffa0036156fe60
Jan 3 13:27:16 Datzan kernel: [ 414.559221] RBP: ffffbafe827ebb98 R08: 0000000000033930 R09: 000000000000046f
Jan 3 13:27:16 Datzan kernel: [ 414.559222] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000003
Jan 3 13:27:16 Datzan kernel: [ 414.559222] R13: ffffa0036c2de010 R14: ffffa00360d49000 R15: 00000000000005fe
Jan 3 13:27:16 Datzan kernel: [ 414.559224] FS: 00007f045fa81600(0000) GS:ffffa0037f580000(0000) knlGS:0000000000000000
Jan 3 13:27:16 Datzan kernel: [ 414.559225] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 3 13:27:16 Datzan kernel: [ 414.559226] CR2: ffffbb1a81ee8fec CR3: 000000046a704006 CR4: 00000000003606e0
Jan 3 13:27:16 Datzan kernel: [ 414.559227] Call Trace:
Jan 3 13:27:16 Datzan kernel: [ 414.559264] smu7_request_smu_load_fw+0xb7/0x340 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559282] iceland_start_smu+0x39/0x70 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559303] pp_resume+0x49/0xb0 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559320] amdgpu_pp_resume+0x25/0x30 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559332] amdgpu_resume_phase2+0x4b/0xc0 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559343] amdgpu_device_resume+0x15f/0x3d0 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559346] ? __pci_set_master+0x34/0xe0
Jan 3 13:27:16 Datzan kernel: [ 414.559349] ? vga_switcheroo_set_dynamic_switch+0x80/0x80
Jan 3 13:27:16 Datzan kernel: [ 414.559360] amdgpu_pmops_runtime_resume+0x76/0xc0 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559362] pci_pm_runtime_resume+0x7b/0xb0
Jan 3 13:27:16 Datzan kernel: [ 414.559364] vga_switcheroo_runtime_resume+0x53/0x60
Jan 3 13:27:16 Datzan kernel: [ 414.559366] __rpm_callback+0xca/0x210
Jan 3 13:27:16 Datzan kernel: [ 414.559368] ? vga_switcheroo_set_dynamic_switch+0x80/0x80
Jan 3 13:27:16 Datzan kernel: [ 414.559369] rpm_callback+0x24/0x80
Jan 3 13:27:16 Datzan kernel: [ 414.559371] ? vga_switcheroo_set_dynamic_switch+0x80/0x80
Jan 3 13:27:16 Datzan kernel: [ 414.559372] rpm_resume+0x4e1/0x7d0
Jan 3 13:27:16 Datzan kernel: [ 414.559373] __pm_runtime_resume+0x4e/0x80
Jan 3 13:27:16 Datzan kernel: [ 414.559384] amdgpu_drm_ioctl+0x39/0x90 [amdgpu]
Jan 3 13:27:16 Datzan kernel: [ 414.559387] do_vfs_ioctl+0xa8/0x630
Jan 3 13:27:16 Datzan kernel: [ 414.559388] ? __fput+0x193/0x220
Jan 3 13:27:16 Datzan kernel: [ 414.559390] SyS_ioctl+0x79/0x90
Jan 3 13:27:16 Datzan kernel: [ 414.559392] do_syscall_64+0x73/0x130
Jan 3 13:27:16 Datzan kernel: [ 414.559395] entry_SYSCALL_64_after_hwframe+0x3d/0xa2
Jan 3 13:27:16 Datzan kernel: [ 414.559396] RIP: 0033:0x7f045ce8c5d7
Jan 3 13:27:16 Datzan kernel: [ 414.559397] RSP: 002b:00007ffec53f02e8 EFLAGS: 00003246 ORIG_RAX: 0000000000000010
Jan 3 13:27:16 Datzan kernel: [ 414.559398] RAX: ffffffffffffffda RBX: 000055a1bc221a60 RCX: 00007f045ce8c5d7
Jan 3 13:27:16 Datzan kernel: [ 414.559399] RDX: 0000000000000000 RSI: 000000000000641f RDI: 0000000000000017
Jan 3 13:27:16 Datzan kernel: [ 414.559400] RBP: 0000000000000000 R08: 000055a1bcba2af0 R09: 000055a1bcba2af0
Jan 3 13:27:16 Datzan kernel: [ 414.559401] R10: 0000000000000045 R11: 0000000000003246 R12: 000000000000641f
Jan 3 13:27:16 Datzan kernel: [ 414.559402] R13: 0000000000000017 R14: 000055a1bb3646a8 R15: ffffffffffffffff
Jan 3 13:27:16 Datzan kernel: [ 414.559403] Code: 00 48 89 45 e0 31 c0 f3 48 ab 49 8b 7d 00 89 f0 0f b6 b0 a0 e5 60 c0 48 8b 07 48 8$
Jan 3 13:27:16 Datzan kernel: [ 414.559439] RIP: smu7_populate_single_firmware_entry.isra.6+0x5b/0xe0 [amdgpu] RSP: ffffbafe827ebb48
Jan 3 13:27:16 Datzan kernel: [ 414.559440] CR2: ffffbb1a81ee8fec
Jan 3 13:27:16 Datzan kernel: [ 414.559441] end trace d110388553a26ed8
Я пытался использовать switcheroo, но независимо от того, что я эхо в /sys/kernel/debug/vgaswitcheroo/switch
остается неизменным
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0
Я даже пытался использовать xrandr, и изменил offsink, но все равно не работает. Когда я захожу в Google, об этом не так много информации.
Возможно ли, что моя видеокарта AMD не поддерживается? Ни одно из приложений, с которыми я использую DRI_PRIME=1
работа, в том числе паровая.