AMD GPU fails to work, throws stacktrace in kernel and system freezes completely












0














The computer I use is Dell Inspiron 5570, running Kubuntu 18.04 and has hybrid graphics: 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 <?>



After a lot of tinkering, I've installed the open-source AMD drivers using the PPA provided by mesa. But whenever I run DRI_PRIME=1 glxgears or any of the provided mesa utilities, the system hangs. I am forced to power off the computer by holding the power button for 5 seconds.



Going through the kernel.log, I've noticed this stacktrace:
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



I tried using switcheroo, but no matter what I echo into /sys/kernel/debug/vgaswitcheroo/switch, it remains the same with



0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0



I even tried using xrandr, and changed the offsink, but still doesn't work. Not much information is available about this whenever I google it.



Is it possible that my AMD graphics card is unsupported? None of the apps I use with DRI_PRIME=1 work, including steam.










share|improve this question







New contributor




Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0














    The computer I use is Dell Inspiron 5570, running Kubuntu 18.04 and has hybrid graphics: 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 <?>



    After a lot of tinkering, I've installed the open-source AMD drivers using the PPA provided by mesa. But whenever I run DRI_PRIME=1 glxgears or any of the provided mesa utilities, the system hangs. I am forced to power off the computer by holding the power button for 5 seconds.



    Going through the kernel.log, I've noticed this stacktrace:
    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



    I tried using switcheroo, but no matter what I echo into /sys/kernel/debug/vgaswitcheroo/switch, it remains the same with



    0:IGD:+:Pwr:0000:00:02.0
    1:DIS: :DynOff:0000:01:00.0



    I even tried using xrandr, and changed the offsink, but still doesn't work. Not much information is available about this whenever I google it.



    Is it possible that my AMD graphics card is unsupported? None of the apps I use with DRI_PRIME=1 work, including steam.










    share|improve this question







    New contributor




    Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0







      The computer I use is Dell Inspiron 5570, running Kubuntu 18.04 and has hybrid graphics: 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 <?>



      After a lot of tinkering, I've installed the open-source AMD drivers using the PPA provided by mesa. But whenever I run DRI_PRIME=1 glxgears or any of the provided mesa utilities, the system hangs. I am forced to power off the computer by holding the power button for 5 seconds.



      Going through the kernel.log, I've noticed this stacktrace:
      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



      I tried using switcheroo, but no matter what I echo into /sys/kernel/debug/vgaswitcheroo/switch, it remains the same with



      0:IGD:+:Pwr:0000:00:02.0
      1:DIS: :DynOff:0000:01:00.0



      I even tried using xrandr, and changed the offsink, but still doesn't work. Not much information is available about this whenever I google it.



      Is it possible that my AMD graphics card is unsupported? None of the apps I use with DRI_PRIME=1 work, including steam.










      share|improve this question







      New contributor




      Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      The computer I use is Dell Inspiron 5570, running Kubuntu 18.04 and has hybrid graphics: 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 <?>



      After a lot of tinkering, I've installed the open-source AMD drivers using the PPA provided by mesa. But whenever I run DRI_PRIME=1 glxgears or any of the provided mesa utilities, the system hangs. I am forced to power off the computer by holding the power button for 5 seconds.



      Going through the kernel.log, I've noticed this stacktrace:
      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



      I tried using switcheroo, but no matter what I echo into /sys/kernel/debug/vgaswitcheroo/switch, it remains the same with



      0:IGD:+:Pwr:0000:00:02.0
      1:DIS: :DynOff:0000:01:00.0



      I even tried using xrandr, and changed the offsink, but still doesn't work. Not much information is available about this whenever I google it.



      Is it possible that my AMD graphics card is unsupported? None of the apps I use with DRI_PRIME=1 work, including steam.







      kernel amdgpu mesa






      share|improve this question







      New contributor




      Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Jan 4 at 0:17









      Hamzan MartinezHamzan Martinez

      1




      1




      New contributor




      Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Hamzan Martinez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Hamzan Martinez is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106771%2famd-gpu-fails-to-work-throws-stacktrace-in-kernel-and-system-freezes-completely%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Hamzan Martinez is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Hamzan Martinez is a new contributor. Be nice, and check out our Code of Conduct.













          Hamzan Martinez is a new contributor. Be nice, and check out our Code of Conduct.












          Hamzan Martinez is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106771%2famd-gpu-fails-to-work-throws-stacktrace-in-kernel-and-system-freezes-completely%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          數位音樂下載

          格利澤436b

          When can things happen in Etherscan, such as the picture below?