You are not logged in.

#1 2018-07-19 15:29:30

7thCore
Member
Registered: 2018-06-09
Posts: 65

[SOLVED] Kernel panic regarding to gpu output

Long story short,

Installed arch, wanted to game on windows also, bought the rx580 and left it for the host, and assigned my old 760ti to a qemu vm. The host is connected on two monitors using HDMI, and the guest is connected to the same two monitors using DVI. Both systems boot up great, can game on both even stream with steam from the guest to host.

Problem: if i change the monitor input to the guest and then back to the host i get a kernel panic error and the i don't get a display signal from the host until i reset. The VM works without a hitch. I'm assuming it's a kernel or amdgpu problem. Basicly i can't switch inputs. I have the logs before and after an update i did half an hour ago. I managed to get these with ssh-ing in from my laptop.

Pre update:

dmesg

[ 2978.098576] BUG: unable to handle kernel NULL pointer dereference at 00000000000000b8
[ 2978.098581] PGD 0 P4D 0 
[ 2978.098584] Oops: 0000 [#1] PREEMPT SMP PTI
[ 2978.098586] Modules linked in: tun arc4 md4 sha512_ssse3 sha512_generic nls_utf8 cifs ccm dns_resolver fscache cmac rfcomm bridge stp llc bnep ext4 mbcache jbd2 fscrypto snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi nls_iso8859_1 nls_cp437 intel_rapl vfat fat wl(PO) x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc snd_usb_audio iTCO_wdt iTCO_vendor_support eeepc_wmi snd_hda_intel asus_wmi btusb snd_usbmidi_lib sparse_keymap wmi_bmof btrtl aesni_intel snd_hda_codec snd_rawmidi btbcm aes_x86_64 btintel crypto_simd snd_hda_core snd_seq_device cryptd snd_hwdep glue_helper bluetooth cfg80211 intel_cstate snd_pcm intel_uncore r8169 snd_timer ecdh_generic joydev nouveau intel_rapl_perf pcspkr crc16 mousedev input_leds i2c_i801
[ 2978.098618]  lpc_ich mii e1000e rfkill mei_me snd mxm_wmi mei led_class soundcore shpchp rtc_cmos wmi evdev mac_hid crypto_user ip_tables x_tables btrfs libcrc32c crc32c_generic xor zstd_decompress zstd_compress xxhash hid_plantronics hid_generic usbhid hid uas usb_storage raid6_pq sr_mod cdrom sd_mod ahci libahci xhci_pci ehci_pci xhci_hcd ehci_hcd libata usbcore crc32c_intel usb_common scsi_mod amdgpu chash i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm agpgart vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio
[ 2978.098644] CPU: 5 PID: 645 Comm: Xorg Tainted: P           O      4.17.5-1-ARCH #1
[ 2978.098645] Hardware name: System manufacturer System Product Name/X79-DELUXE, BIOS 4805 02/02/2016
[ 2978.098689] RIP: 0010:dc_validate_stream+0x4c/0x100 [amdgpu]
[ 2978.098690] RSP: 0018:ffffbd99044c7b68 EFLAGS: 00010202
[ 2978.098692] RAX: 00000000fffffa01 RBX: ffff9d485d807000 RCX: 0000000000000558
[ 2978.098693] RDX: 00000000000000ec RSI: ffff9d485d807008 RDI: ffff9d48eb092200
[ 2978.098694] RBP: ffff9d485d807008 R08: 0000000000000000 R09: 00000000000001e0
[ 2978.098695] R10: ffff9d485d807000 R11: 0000000000000280 R12: 0000000000000000
[ 2978.098696] R13: ffffffffc03c4f9b R14: 0000000000000000 R15: ffff9d48eb084000
[ 2978.098698] FS:  00007f85afe6ce00(0000) GS:ffff9d48ef340000(0000) knlGS:0000000000000000
[ 2978.098699] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2978.098700] CR2: 00000000000000b8 CR3: 0000000818a4a003 CR4: 00000000000626e0
[ 2978.098701] Call Trace:
[ 2978.098732]  amdgpu_dm_connector_mode_valid+0x81/0x1f0 [amdgpu]
[ 2978.098740]  drm_helper_probe_single_connector_modes+0x4a3/0x6b0 [drm_kms_helper]
[ 2978.098753]  drm_mode_getconnector+0x2e5/0x310 [drm]
[ 2978.098761]  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
[ 2978.098767]  drm_ioctl_kernel+0x5b/0xb0 [drm]
[ 2978.098772]  drm_ioctl+0x1b7/0x370 [drm]
[ 2978.098780]  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
[ 2978.098797]  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[ 2978.098802]  do_vfs_ioctl+0xa4/0x610
[ 2978.098804]  ? _crng_backtrack_protect+0x32/0x60
[ 2978.098807]  ksys_ioctl+0x60/0x90
[ 2978.098809]  __x64_sys_ioctl+0x16/0x20
[ 2978.098812]  do_syscall_64+0x5b/0x170
[ 2978.098815]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 2978.098816] RIP: 0033:0x7f85af9c2667
[ 2978.098818] RSP: 002b:00007fff313e6058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 2978.098819] RAX: ffffffffffffffda RBX: 000056242ec0a1a0 RCX: 00007f85af9c2667
[ 2978.098820] RDX: 00007fff313e6090 RSI: 00000000c05064a7 RDI: 0000000000000018
[ 2978.098821] RBP: 00007fff313e6090 R08: 000056242f14bad0 R09: 0000000000000007
[ 2978.098822] R10: 000056242ea2e010 R11: 0000000000000246 R12: 00000000c05064a7
[ 2978.098823] R13: 0000000000000018 R14: 0000000000000018 R15: 00007fff313e6090
[ 2978.098825] Code: 01 00 00 48 8b b8 20 01 00 00 8b 46 38 74 52 89 86 68 02 00 00 48 8b 07 48 8d 6b 08 48 89 ee 48 8b 00 e8 38 78 3d c9 84 c0 74 2c <49> 8b bc 24 b8 00 00 00 48 89 de 48 8b 07 48 8b 00 e8 1e 78 3d 
[ 2978.098870] RIP: dc_validate_stream+0x4c/0x100 [amdgpu] RSP: ffffbd99044c7b68
[ 2978.098870] CR2: 00000000000000b8
[ 2978.098872] ---[ end trace 041589e0da67d8b3 ]---

journalctl -xe

Jul 19 16:23:20 Tempest kernel: BUG: unable to handle kernel NULL pointer dereference at 00000000000000b8
Jul 19 16:23:20 Tempest kernel: PGD 0 P4D 0 
Jul 19 16:23:20 Tempest kernel: Oops: 0000 [#1] PREEMPT SMP PTI
Jul 19 16:23:20 Tempest kernel: Modules linked in: tun arc4 md4 sha512_ssse3 sha512_generic nls_utf8 cifs ccm dns_resolver fscache cmac rfcomm bridge stp llc bnep ext4 mbcache jbd2 fscrypto snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi nls_iso8859_1 nls_cp437 intel_rapl vfat fat wl(PO) x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc snd_usb_audio iTCO_wdt iTCO_vendor_support eeepc_wmi snd_hda_intel asus_wmi btusb snd_usbmidi_lib sparse_keymap wmi_bmof btrtl aesni_intel snd_hda_codec snd_rawmidi btbcm aes_x86_64 btintel crypto_simd snd_hda_core snd_seq_device cryptd snd_hwdep glue_helper bluetooth cfg80211 intel_cstate snd_pcm intel_uncore r8169 snd_timer ecdh_generic joydev nouveau intel_rapl_perf pcspkr crc16 mousedev input_leds i2c_i801
Jul 19 16:23:20 Tempest kernel:  lpc_ich mii e1000e rfkill mei_me snd mxm_wmi mei led_class soundcore shpchp rtc_cmos wmi evdev mac_hid crypto_user ip_tables x_tables btrfs libcrc32c crc32c_generic xor zstd_decompress zstd_compress xxhash hid_plantronics hid_generic usbhid hid uas usb_storage raid6_pq sr_mod cdrom sd_mod ahci libahci xhci_pci ehci_pci xhci_hcd ehci_hcd libata usbcore crc32c_intel usb_common scsi_mod amdgpu chash i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm agpgart vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio
Jul 19 16:23:20 Tempest kernel: CPU: 5 PID: 645 Comm: Xorg Tainted: P           O      4.17.5-1-ARCH #1
Jul 19 16:23:20 Tempest kernel: Hardware name: System manufacturer System Product Name/X79-DELUXE, BIOS 4805 02/02/2016
Jul 19 16:23:20 Tempest kernel: RIP: 0010:dc_validate_stream+0x4c/0x100 [amdgpu]
Jul 19 16:23:20 Tempest kernel: RSP: 0018:ffffbd99044c7b68 EFLAGS: 00010202
Jul 19 16:23:20 Tempest kernel: RAX: 00000000fffffa01 RBX: ffff9d485d807000 RCX: 0000000000000558
Jul 19 16:23:20 Tempest kernel: RDX: 00000000000000ec RSI: ffff9d485d807008 RDI: ffff9d48eb092200
Jul 19 16:23:20 Tempest kernel: RBP: ffff9d485d807008 R08: 0000000000000000 R09: 00000000000001e0
Jul 19 16:23:20 Tempest kernel: R10: ffff9d485d807000 R11: 0000000000000280 R12: 0000000000000000
Jul 19 16:23:20 Tempest kernel: R13: ffffffffc03c4f9b R14: 0000000000000000 R15: ffff9d48eb084000
Jul 19 16:23:20 Tempest kernel: FS:  00007f85afe6ce00(0000) GS:ffff9d48ef340000(0000) knlGS:0000000000000000
Jul 19 16:23:20 Tempest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 19 16:23:20 Tempest kernel: CR2: 00000000000000b8 CR3: 0000000818a4a003 CR4: 00000000000626e0
Jul 19 16:23:20 Tempest kernel: Call Trace:
Jul 19 16:23:20 Tempest kernel:  amdgpu_dm_connector_mode_valid+0x81/0x1f0 [amdgpu]
Jul 19 16:23:20 Tempest kernel:  drm_helper_probe_single_connector_modes+0x4a3/0x6b0 [drm_kms_helper]
Jul 19 16:23:20 Tempest kernel:  drm_mode_getconnector+0x2e5/0x310 [drm]
Jul 19 16:23:20 Tempest kernel:  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
Jul 19 16:23:20 Tempest kernel:  drm_ioctl_kernel+0x5b/0xb0 [drm]
Jul 19 16:23:20 Tempest kernel:  drm_ioctl+0x1b7/0x370 [drm]
Jul 19 16:23:20 Tempest kernel:  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
Jul 19 16:23:20 Tempest kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Jul 19 16:23:20 Tempest kernel:  do_vfs_ioctl+0xa4/0x610
Jul 19 16:23:20 Tempest kernel:  ? _crng_backtrack_protect+0x32/0x60
Jul 19 16:23:20 Tempest kernel:  ksys_ioctl+0x60/0x90
Jul 19 16:23:20 Tempest kernel:  __x64_sys_ioctl+0x16/0x20
Jul 19 16:23:20 Tempest kernel:  do_syscall_64+0x5b/0x170
Jul 19 16:23:20 Tempest kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jul 19 16:23:20 Tempest kernel: RIP: 0033:0x7f85af9c2667
Jul 19 16:23:20 Tempest kernel: RSP: 002b:00007fff313e6058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Jul 19 16:23:20 Tempest kernel: RAX: ffffffffffffffda RBX: 000056242ec0a1a0 RCX: 00007f85af9c2667
Jul 19 16:23:20 Tempest kernel: RDX: 00007fff313e6090 RSI: 00000000c05064a7 RDI: 0000000000000018
Jul 19 16:23:20 Tempest kernel: RBP: 00007fff313e6090 R08: 000056242f14bad0 R09: 0000000000000007
Jul 19 16:23:20 Tempest kernel: R10: 000056242ea2e010 R11: 0000000000000246 R12: 00000000c05064a7
Jul 19 16:23:20 Tempest kernel: R13: 0000000000000018 R14: 0000000000000018 R15: 00007fff313e6090
Jul 19 16:23:20 Tempest kernel: Code: 01 00 00 48 8b b8 20 01 00 00 8b 46 38 74 52 89 86 68 02 00 00 48 8b 07 48 8d 6b 08 48 89 ee 48 8b 00 e8 38 78 3d c9 84 c0 74 2c <49> 8b bc 24 b8 00 00 00 48 89 de 48 8b 07 48 8b 00 e8 1e 78 3d 
Jul 19 16:23:20 Tempest kernel: RIP: dc_validate_stream+0x4c/0x100 [amdgpu] RSP: ffffbd99044c7b68
Jul 19 16:23:20 Tempest kernel: CR2: 00000000000000b8
Jul 19 16:23:20 Tempest kernel: ---[ end trace 041589e0da67d8b3 ]---
Jul 19 16:23:20 Tempest kdeinit5[718]: kscreen: canBeAppled: There are no enabled screens, at least one required
Jul 19 16:23:20 Tempest kdeinit5[718]: kscreen.kded: Config does not have at least one screen enabled, WILL NOT save this config, this is not what user wants.
Jul 19 16:23:20 Tempest kscreen_backend_launcher[955]: kscreen.xrandr: Emitting configChanged()
Jul 19 16:24:43 Tempest nmbd[1599]: [2018/07/19 16:24:43.174528,  0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)
Jul 19 16:24:43 Tempest nmbd[1599]:   query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.15 for name KACHOME<1d>.
Jul 19 16:24:43 Tempest nmbd[1599]:   This response was from IP 192.168.1.5, reporting an IP address of 192.168.1.5.
Jul 19 16:24:50 Tempest kdeinit5[718]: Service  "org.kde.StatusNotifierItem-1494-1" unregistered
Jul 19 16:26:20 Tempest crash_20180719162620_28.dmp[2758]: Uploading dump (out-of-process)
                                                           /tmp/dumps/crash_20180719162620_28.dmp
Jul 19 16:26:20 Tempest kdeinit5[718]: Service  ":1.43" unregistered
Jul 19 16:26:21 Tempest crash_20180719162620_28.dmp[2758]: Finished uploading minidump (out-of-process): success = yes
Jul 19 16:26:21 Tempest crash_20180719162620_28.dmp[2758]: response: CrashID=bp-d66305e0-6cc9-408c-ac2c-5743b2180719
Jul 19 16:26:21 Tempest crash_20180719162620_28.dmp[2758]: file ''/tmp/dumps/crash_20180719162620_28.dmp'', upload yes: ''CrashID=bp-d66305e0-6cc9-408c-ac2c-5743b2180719''

Post update

dmesg

[ 1052.182422] ------------[ cut here ]------------
[ 1052.182424] kernel BUG at mm/slub.c:296!
[ 1052.182429] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[ 1052.182431] Modules linked in: tun arc4 md4 sha512_ssse3 sha512_generic nls_utf8 cifs ccm dns_resolver fscache cmac rfcomm bridge stp llc bnep ext4 mbcache jbd2 fscrypto snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi nls_iso8859_1 nls_cp437 vfat fat wl(PO) intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iTCO_wdt iTCO_vendor_support btusb btrtl snd_hda_intel crct10dif_pclmul eeepc_wmi btbcm crc32_pclmul asus_wmi btintel ghash_clmulni_intel sparse_keymap wmi_bmof pcbc bluetooth snd_usb_audio snd_hda_codec cfg80211 snd_usbmidi_lib nouveau aesni_intel snd_hda_core snd_rawmidi snd_hwdep snd_seq_device aes_x86_64 crypto_simd cryptd glue_helper intel_cstate snd_pcm intel_uncore mei_me ecdh_generic r8169 snd_timer joydev pcspkr crc16 intel_rapl_perf mousedev input_leds
[ 1052.182463]  i2c_i801 lpc_ich e1000e rfkill mii mei snd rtc_cmos mxm_wmi led_class soundcore evdev wmi shpchp mac_hid crypto_user ip_tables x_tables btrfs libcrc32c crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq hid_plantronics hid_generic usbhid hid uas usb_storage sr_mod cdrom sd_mod ahci libahci xhci_pci ehci_pci xhci_hcd ehci_hcd libata usbcore crc32c_intel usb_common scsi_mod amdgpu chash i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm agpgart vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio
[ 1052.182489] CPU: 4 PID: 654 Comm: Xorg Tainted: P           O      4.17.6-1-ARCH #1
[ 1052.182490] Hardware name: System manufacturer System Product Name/X79-DELUXE, BIOS 4805 02/02/2016
[ 1052.182494] RIP: 0010:__slab_free+0x200/0x3a0
[ 1052.182495] RSP: 0018:ffffa7bfc4317a90 EFLAGS: 00010246
[ 1052.182497] RAX: ffff9e2342061800 RBX: ffff9e2342061800 RCX: ffff9e2342061800
[ 1052.182498] RDX: 000000018020001c RSI: ffff9e2342061800 RDI: ffff9e23eec02f00
[ 1052.182499] RBP: ffffa7bfc4317b68 R08: 0000000000000001 R09: ffffffffc070a147
[ 1052.182499] R10: fffff9039e081800 R11: 0000000000000280 R12: fffff9039e081800
[ 1052.182500] R13: ffff9e23eec02f00 R14: ffff9e2342061800 R15: ffff9e23e5fa3000
[ 1052.182502] FS:  00007fcc27aa7e00(0000) GS:ffff9e23ef300000(0000) knlGS:0000000000000000
[ 1052.182503] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1052.182504] CR2: 000001268a880000 CR3: 000000081cee4002 CR4: 00000000000626e0
[ 1052.182505] Call Trace:
[ 1052.182551]  dc_stream_release+0x27/0x50 [amdgpu]
[ 1052.182579]  amdgpu_dm_connector_mode_valid+0xb2/0x1f0 [amdgpu]
[ 1052.182587]  drm_helper_probe_single_connector_modes+0x4a3/0x6b0 [drm_kms_helper]
[ 1052.182601]  drm_mode_getconnector+0x2e5/0x310 [drm]
[ 1052.182609]  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
[ 1052.182614]  drm_ioctl_kernel+0x5b/0xb0 [drm]
[ 1052.182621]  drm_ioctl+0x1b7/0x370 [drm]
[ 1052.182627]  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
[ 1052.182646]  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[ 1052.182649]  do_vfs_ioctl+0xa4/0x610
[ 1052.182652]  ? _crng_backtrack_protect+0x32/0x60
[ 1052.182654]  ksys_ioctl+0x60/0x90
[ 1052.182656]  __x64_sys_ioctl+0x16/0x20
[ 1052.182659]  do_syscall_64+0x5b/0x170
[ 1052.182662]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 1052.182663] RIP: 0033:0x7fcc275fd667
[ 1052.182664] RSP: 002b:00007ffc2abad898 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 1052.182666] RAX: ffffffffffffffda RBX: 000055bfbc5332f0 RCX: 00007fcc275fd667
[ 1052.182667] RDX: 00007ffc2abad8d0 RSI: 00000000c05064a7 RDI: 0000000000000018
[ 1052.182668] RBP: 00007ffc2abad8d0 R08: 000055bfbcf93f80 R09: 0000000000000007
[ 1052.182669] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c05064a7
[ 1052.182670] R13: 0000000000000018 R14: 0000000000000018 R15: 00007ffc2abad8d0
[ 1052.182671] Code: 00 4c 89 ff e8 72 43 52 00 48 8b 54 24 18 48 8b 74 24 20 48 89 04 24 e9 a1 fe ff ff e8 ca fb ff ff 85 c0 0f 85 3d fe ff ff eb ad <0f> 0b 48 89 54 24 08 48 89 74 24 10 48 89 4c 24 18 bf 01 00 00 
[ 1052.182691] RIP: __slab_free+0x200/0x3a0 RSP: ffffa7bfc4317a90
[ 1052.182692] ---[ end trace 4542b51c1973132a ]---

journalctl -xe

Jul 19 19:12:36 Tempest kernel: ------------[ cut here ]------------
Jul 19 19:12:36 Tempest kernel: kernel BUG at mm/slub.c:296!
Jul 19 19:12:36 Tempest kernel: invalid opcode: 0000 [#1] PREEMPT SMP PTI
Jul 19 19:12:36 Tempest kernel: Modules linked in: tun arc4 md4 sha512_ssse3 sha512_generic nls_utf8 cifs ccm dns_resolver fscache cmac rfcomm bridge stp llc bnep ext4 mbcache jbd2 fscrypto snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi nls_iso8859_1 nls_cp437 vfat fat wl(PO) intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iTCO_wdt iTCO_vendor_support btusb btrtl snd_hda_intel crct10dif_pclmul eeepc_wmi btbcm crc32_pclmul asus_wmi btintel ghash_clmulni_intel sparse_keymap wmi_bmof pcbc bluetooth snd_usb_audio snd_hda_codec cfg80211 snd_usbmidi_lib nouveau aesni_intel snd_hda_core snd_rawmidi snd_hwdep snd_seq_device aes_x86_64 crypto_simd cryptd glue_helper intel_cstate snd_pcm intel_uncore mei_me ecdh_generic r8169 snd_timer joydev pcspkr crc16 intel_rapl_perf mousedev input_leds
Jul 19 19:12:36 Tempest kernel:  i2c_i801 lpc_ich e1000e rfkill mii mei snd rtc_cmos mxm_wmi led_class soundcore evdev wmi shpchp mac_hid crypto_user ip_tables x_tables btrfs libcrc32c crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq hid_plantronics hid_generic usbhid hid uas usb_storage sr_mod cdrom sd_mod ahci libahci xhci_pci ehci_pci xhci_hcd ehci_hcd libata usbcore crc32c_intel usb_common scsi_mod amdgpu chash i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm agpgart vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio
Jul 19 19:12:36 Tempest kernel: CPU: 4 PID: 654 Comm: Xorg Tainted: P           O      4.17.6-1-ARCH #1
Jul 19 19:12:36 Tempest kernel: Hardware name: System manufacturer System Product Name/X79-DELUXE, BIOS 4805 02/02/2016
Jul 19 19:12:36 Tempest kernel: RIP: 0010:__slab_free+0x200/0x3a0
Jul 19 19:12:36 Tempest kernel: RSP: 0018:ffffa7bfc4317a90 EFLAGS: 00010246
Jul 19 19:12:36 Tempest kernel: RAX: ffff9e2342061800 RBX: ffff9e2342061800 RCX: ffff9e2342061800
Jul 19 19:12:36 Tempest kernel: RDX: 000000018020001c RSI: ffff9e2342061800 RDI: ffff9e23eec02f00
Jul 19 19:12:36 Tempest kernel: RBP: ffffa7bfc4317b68 R08: 0000000000000001 R09: ffffffffc070a147
Jul 19 19:12:36 Tempest kernel: R10: fffff9039e081800 R11: 0000000000000280 R12: fffff9039e081800
Jul 19 19:12:36 Tempest kernel: R13: ffff9e23eec02f00 R14: ffff9e2342061800 R15: ffff9e23e5fa3000
Jul 19 19:12:36 Tempest kernel: FS:  00007fcc27aa7e00(0000) GS:ffff9e23ef300000(0000) knlGS:0000000000000000
Jul 19 19:12:36 Tempest kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 19 19:12:36 Tempest kernel: CR2: 000001268a880000 CR3: 000000081cee4002 CR4: 00000000000626e0
Jul 19 19:12:36 Tempest kernel: Call Trace:
Jul 19 19:12:36 Tempest kernel:  dc_stream_release+0x27/0x50 [amdgpu]
Jul 19 19:12:36 Tempest kernel:  amdgpu_dm_connector_mode_valid+0xb2/0x1f0 [amdgpu]
Jul 19 19:12:36 Tempest kernel:  drm_helper_probe_single_connector_modes+0x4a3/0x6b0 [drm_kms_helper]
Jul 19 19:12:36 Tempest kernel:  drm_mode_getconnector+0x2e5/0x310 [drm]
Jul 19 19:12:36 Tempest kernel:  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
Jul 19 19:12:36 Tempest kernel:  drm_ioctl_kernel+0x5b/0xb0 [drm]
Jul 19 19:12:36 Tempest kernel:  drm_ioctl+0x1b7/0x370 [drm]
Jul 19 19:12:36 Tempest kernel:  ? drm_mode_connector_property_set_ioctl+0x60/0x60 [drm]
Jul 19 19:12:36 Tempest kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Jul 19 19:12:36 Tempest kernel:  do_vfs_ioctl+0xa4/0x610
Jul 19 19:12:36 Tempest kernel:  ? _crng_backtrack_protect+0x32/0x60
Jul 19 19:12:36 Tempest kernel:  ksys_ioctl+0x60/0x90
Jul 19 19:12:36 Tempest kernel:  __x64_sys_ioctl+0x16/0x20
Jul 19 19:12:36 Tempest kernel:  do_syscall_64+0x5b/0x170
Jul 19 19:12:36 Tempest kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jul 19 19:12:36 Tempest kernel: RIP: 0033:0x7fcc275fd667
Jul 19 19:12:36 Tempest kernel: RSP: 002b:00007ffc2abad898 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Jul 19 19:12:36 Tempest kernel: RAX: ffffffffffffffda RBX: 000055bfbc5332f0 RCX: 00007fcc275fd667
Jul 19 19:12:36 Tempest kernel: RDX: 00007ffc2abad8d0 RSI: 00000000c05064a7 RDI: 0000000000000018
Jul 19 19:12:36 Tempest kernel: RBP: 00007ffc2abad8d0 R08: 000055bfbcf93f80 R09: 0000000000000007
Jul 19 19:12:36 Tempest kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c05064a7
Jul 19 19:12:36 Tempest kernel: R13: 0000000000000018 R14: 0000000000000018 R15: 00007ffc2abad8d0
Jul 19 19:12:36 Tempest kernel: Code: 00 4c 89 ff e8 72 43 52 00 48 8b 54 24 18 48 8b 74 24 20 48 89 04 24 e9 a1 fe ff ff e8 ca fb ff ff 85 c0 0f 85 3d fe ff ff eb ad <0f> 0b 48 89 54 24 08 48 89 74 24 10 48 89 4c 24 18 bf 01 00 00 
Jul 19 19:12:36 Tempest kernel: RIP: __slab_free+0x200/0x3a0 RSP: ffffa7bfc4317a90
Jul 19 19:12:36 Tempest kernel: ---[ end trace 4542b51c1973132a ]---
Jul 19 19:12:36 Tempest kdeinit5[723]: kscreen: canBeAppled: There are no enabled screens, at least one required
Jul 19 19:12:36 Tempest kdeinit5[723]: kscreen.kded: Config does not have at least one screen enabled, WILL NOT save this config, this is not what user wants.
Jul 19 19:12:36 Tempest kscreen_backend_launcher[958]: kscreen.xrandr: Emitting configChanged()

Any help is welcome. Also if anyone needs any more info let me know.

Last edited by 7thCore (2018-07-23 11:15:27)


[ Arch x86_64 | linux | Asus Prime X570-Pro | AMD Ryzen 9 5900X @4,8Ghz | AMD RX580 | 32GB RAM DDR4 | Main, 2 Monitors ]
[ Arch x86_64 | linux | Asus Pro WS X570-Ace | AMD Ryzen 9 5950X @4,9Ghz | Intel A750 | 128GB RAM DDR4 | Server ]

The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it.

Offline

#2 2018-07-19 15:37:03

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] Kernel panic regarding to gpu output

What are the exact kernel versions pre and post update?

Last edited by loqs (2018-07-19 15:37:12)

Offline

#3 2018-07-19 15:43:35

7thCore
Member
Registered: 2018-06-09
Posts: 65

Re: [SOLVED] Kernel panic regarding to gpu output

They can be seen in the dmesg logs.

Pre update kernel: 4.17.5-1-ARCH
Post update kernel: 4.17.6-1-ARCH

I failed to mention this in the first post: When the panic happens i lose any display output from the host. I get no signal on both screens. However at the same time the vm works normaly with display outputs.

Edit: hardware specs if anything is a miss:

Mobo: Asus X79-Deluxe
CPU: 3930K (It is the C2 stepping one so it supports iommu and vt-d)
Ram: 32G (16G for each os)
GPU host: Asus (AMD) RX-580-Strix-T8G
GPU guest: Asus (Nvidia) GTX 760 DirectCU II
Guest OS: Windows 10

And also mesa version on both of the pre and post update version is the same: 18.1.4-1

Last edited by 7thCore (2018-07-19 15:52:26)


[ Arch x86_64 | linux | Asus Prime X570-Pro | AMD Ryzen 9 5900X @4,8Ghz | AMD RX580 | 32GB RAM DDR4 | Main, 2 Monitors ]
[ Arch x86_64 | linux | Asus Pro WS X570-Ace | AMD Ryzen 9 5950X @4,9Ghz | Intel A750 | 128GB RAM DDR4 | Server ]

The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it.

Offline

#4 2018-07-19 16:06:43

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: [SOLVED] Kernel panic regarding to gpu output

I would suggest trying 4.18-rc5 or bisecting between 4.17.5 and 4.17.6

Offline

#5 2018-07-20 07:58:31

7thCore
Member
Registered: 2018-06-09
Posts: 65

Re: [SOLVED] Kernel panic regarding to gpu output

I have installed the 4.18-rc5 mainline kernel and so far so good. Only tested it twice but it works for now. Thanks, but i will wait a day or two before marking it solved just to be shure.

On a side note im using evdev to forward mouse and keyboard and im planing to set up the vm as a service so it starts up and shuts down with the host. The keyboard and mouse get assigned to the guest os as soon as the service starts. Is there a way to prevent that and leave the inputs to the host on start?

Here is my service file:

[Unit]
Description=Qemu-Win10 Service
After=network.target

[Service]
Type=forking
WorkingDirectory=/home/kacm/.qemu/qemu-win10
User=root
ExecStartPre=/usr/bin/cp /usr/share/ovmf/x64/OVMF_VARS.fd /tmp/OVMF_VARS.fd
ExecStartPre=/usr/bin/cp /usr/share/ovmf/x64/OVMF_CODE.fd /tmp/OVMF_CODE.fd
ExecStart=/usr/bin/screen -dmS Qemu-Win10 bash -c 'qemu-system-x86_64 \
                                                  -name Qemu-Win10,process=Qemu-Win10 \
                                                  -machine type=pc,accel=kvm \
                                                  -cpu host,kvm=off \
                                                  -smp 6,sockets=1,cores=3,threads=2 \
                                                  -enable-kvm \
                                                  -m 16G \
                                                  -mem-prealloc \
                                                  -rtc clock=host,base=localtime \
                                                  -vga none \
                                                  -serial none \
                                                  -parallel none \
                                                  -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-A4TECH_USB_Device-if01-event-mouse \
                                                  -object input-linux,id=mouse2,evdev=/dev/input/by-id/usb-A4TECH_USB_Device-event-kbd \
                                                  -object input-linux,id=kbd1,evdev=/dev/input/by-id/usb-CHICONY_USB_Keyboard-event-kbd,grab_all=on,repeat=on \
                                                  -object input-linux,id=kbd2,evdev=/dev/input/by-id/usb-CHICONY_USB_Keyboard-event-if01 \
                                                  -device vfio-pci,host=03:00.0,multifunction=on,x-vga=on \
                                                  -device vfio-pci,host=03:00.1 \
                                                  -drive if=pflash,format=raw,readonly,file=/tmp/OVMF_CODE.fd \
                                                  -drive if=pflash,format=raw,file=/tmp/OVMF_VARS.fd \
                                                  -netdev bridge,br=network-br0,id=ndev -device virtio-net-pci,mac=52:54:00:12:34:56,id=nic0,netdev=ndev \
                                                  -soundhw hda \
                                                  -boot order=c \
                                                  -device virtio-scsi-pci,id=scsi \
                                                  -drive id=disk0,if=virtio,cache=none,format=raw,file=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNSAG177280A \
                                                  -drive id=disk1,if=virtio,cache=none,format=raw,file=/dev/disk/by-id/wwn-0x5000c5005ac34210 \
                                                  -monitor unix:/home/kacm/.qemu/qemu-win10/monitor/qemu-win10-monitor,server,nowait'
ExecStop=/bin/bash -c 'echo system_powerdown | socat - UNIX-CONNECT:/home/kacm/.qemu/qemu-win10/monitor/qemu-win10-monitor'
ExecStop=/bin/bash -c "while ps -p $MAINPID > /dev/null; do /bin/sleep 1; done"
Restart=on-failure
RestartSec=60

[Install]
WantedBy=multi-user.target

Last edited by 7thCore (2018-07-20 08:03:20)


[ Arch x86_64 | linux | Asus Prime X570-Pro | AMD Ryzen 9 5900X @4,8Ghz | AMD RX580 | 32GB RAM DDR4 | Main, 2 Monitors ]
[ Arch x86_64 | linux | Asus Pro WS X570-Ace | AMD Ryzen 9 5950X @4,9Ghz | Intel A750 | 128GB RAM DDR4 | Server ]

The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it.

Offline

Board footer

Powered by FluxBB