blob: 3668105ccedb312e6eb72fb24acc287a6542917d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
Running sway in a QEMU VM results in a GPU hang of the guest (virtio-gpu driver)
System is Arch Linux (guest and host OS).
Problem:
Basically, when using sway on a guest and running certain applications via Xwayland (on the guest), the GUI will freeze and won't be usable anymore, I can still ssh to the guest and run commands.
This is the command I use to run my guest:
qemu-system-x86_64 -enable-kvm -cdrom ~/Downloads/linux/archlinux/archlinux-2021.04.01-x86_64.iso -m 4G -vga virtio -nic user,hostfwd=tcp::10022-:22
This doesn't happen when I use X with i3-wm.
I can't get it to happen with -vga qxl.
I can't reproduce it with weston.
-cpu host -smp 4 makes the hang/freeze go away.
From the dmesg above:
[ 573.935889] Oops: 0000 [#1] PREEMPT SMP PTI
[ 573.935892] CPU: 0 PID: 7 Comm: kworker/u2:0 Not tainted 5.11.11-arch1-1 #1
[ 573.935896] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ArchLinux 1.14.0-1 04/01/2014
[ 573.935899] Workqueue: events_unbound commit_work [drm_kms_helper]
[ 573.935949] RIP: 0010:dma_fence_wait_timeout+0x20/0x110
[ 573.935953] Code: 5c 41 5d 41 5e 41 5f c3 66 90 0f 1f 44 00 00 41 54 55 53 48 83 ec 08 48 85 d2 0f 88 da 00 00 00 48 89 fd 89 f3 0f 1f 44 00 00 <48> 8b 45 08 0f b6 f3 48 89 ef 48 8b 40 28 48 85 c0 0f 84 ac 00 00
[ 573.935956] RSP: 0018:ffffbbf100043db0 EFLAGS: 00010206
[ 573.935958] RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000001
[ 573.935959] RDX: 7fffffffffffffff RSI: 0000000000000001 RDI: 0000000000000000
[ 573.935961] RBP: 0000000000000000 R08: 0000000000000001 R09: ffff90631e171bc0
[ 573.935962] R10: 0000000000000001 R11: 0000000000000001 R12: ffff906408336000
[ 573.935964] R13: ffff906380260cc0 R14: ffff906401700000 R15: 0000000000000005
[ 573.935966] FS: 0000000000000000(0000) GS:ffff90643bc00000(0000) knlGS:0000000000000000
[ 573.935967] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 573.935969] CR2: 0000000000000008 CR3: 000000011ed86000 CR4: 00000000000006f0
[ 573.935973] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 573.935974] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 573.935976] Call Trace:
[ 573.935983] ? virtio_gpu_notify+0x46/0x60 [virtio_gpu]
[ 573.935995] virtio_gpu_cursor_plane_update+0x1c3/0x2a0 [virtio_gpu]
[ 573.936005] drm_atomic_helper_commit_planes+0xb7/0x220 [drm_kms_helper]
[ 573.936024] drm_atomic_helper_commit_tail+0x42/0x80 [drm_kms_helper]
[ 573.936038] commit_tail+0xce/0x130 [drm_kms_helper]
[ 573.936050] process_one_work+0x214/0x3e0
[ 573.936054] worker_thread+0x4d/0x3d0
[ 573.936056] ? rescuer_thread+0x3c0/0x3c0
[ 573.936058] kthread+0x133/0x150
[ 573.936061] ? __kthread_bind_mask+0x60/0x60
[ 573.936064] ret_from_fork+0x22/0x30
[ 573.936072] Modules linked in: cfg80211 rfkill ghash_generic gf128mul cryptd gcm ccm algif_aead des_generic libdes cbc ecb algif_skcipher cmac md4 algif_hash af_alg ppdev pktcdvd parport_pc parport i2c_piix4 joydev mousedev mac_hid psmouse qemu_fw_cfg pcspkr pkcs8_key_parser speakup_soft speakup fuse bpf_preload ip_tables x_tables overlay squashfs loop isofs sr_mod cdrom ata_generic pata_acpi virtio_gpu virtio_dma_buf drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm intel_agp intel_gtt serio_raw e1000 virtio_pci ata_piix agpgart floppy
[ 573.936161] CR2: 0000000000000008
[ 573.936163] ---[ end trace 0f1e24b3ea0a35cd ]---
[ 573.936165] RIP: 0010:dma_fence_wait_timeout+0x20/0x110
The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting the bug state to "Incomplete" now.
If the bug has already been fixed in the latest upstream version of QEMU,
then please close this ticket as "Fix released".
If it is not fixed yet and you think that this bug report here is still
valid, then you have two options:
1) If you already have an account on gitlab.com, please open a new ticket
for this problem in our new tracker here:
https://gitlab.com/qemu-project/qemu/-/issues
and then close this ticket here on Launchpad (or let it expire auto-
matically after 60 days). Please mention the URL of this bug ticket on
Launchpad in the new ticket on GitLab.
2) If you don't have an account on gitlab.com and don't intend to get
one, but still would like to keep this ticket opened, then please switch
the state back to "New" or "Confirmed" within the next 60 days (other-
wise it will get closed as "Expired"). We will then eventually migrate
the ticket automatically to the new system (but you won't be the reporter
of the bug in the new system and thus you won't get notified on changes
anymore).
Thank you and sorry for the inconvenience.
[Expired for QEMU because there has been no activity for 60 days.]
|