intel / gvt-linux

Other
503 stars 94 forks source link

GVT-g not working, nothing is starting #193

Open rahulc07 opened 2 years ago

rahulc07 commented 2 years ago

DMESG Error

kern :warn : [ +0.000001] i915 0000:00:02.0: drm_WARN_ON(port < 0) kern :warn : [ +0.000019] WARNING: CPU: 8 PID: 5446 at drivers/gpu/drm/i915/gvt/edid.c:156 intel_gvt_i2c_handle_gmbus_write+0x349/0x500 [i915] kern :warn : [ +0.000041] Modules linked in: exfat rfcomm cmac algif_hash algif_skcipher af_alg bnep btusb btrtl btbcm btintel bluetooth ecdh_generic mousedev ecc bridge intel_rapl_msr stp snd_hda_codec_hdmi intel_rapl_common llc joydev snd_hda_codec_realtek rfkill snd_hda_codec_generic ledtrig_audio intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp iTCO_wdt intel_pmc_bxt usbhid mei_hdcp coretemp ee1004 iTCO_vendor_support snd_hda_intel snd_intel_dspcfg wmi_bmof snd_intel_sdw_acpi kvm_intel snd_hda_codec crct10dif_pclmul snd_hda_core crc32_pclmul ghash_clmulni_intel aesni_intel snd_hwdep vfat crypto_simd fat snd_pcm cryptd intel_spi_pci rapl intel_spi snd_timer intel_cstate mei_me i2c_i801 spi_nor snd uas intel_uncore usb_storage e1000e soundcore pcspkr mtd i2c_smbus mei wmi mac_hid acpi_tad acpi_pad sg crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 crc32c_intel xhci_pci xhci_pci_renesas vfio_pci vfio_virqfd kvmgt mdev vfio_iommu_type1 vfio i915 kern :warn : [ +0.000026] i2c_algo_bit intel_gtt ttm agpgart video drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm kvm irqbypass kern :warn : [ +0.000004] CPU: 8 PID: 5446 Comm: qemu-system-x86 Tainted: G W 5.14.8-zen1-1-zen #1 eb1dd6951a722cbbe37265a983cf72f70a6e757c kern :warn : [ +0.000002] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B560M Pro4, BIOS P1.80 04/13/2021 kern :warn : [ +0.000001] RIP: 0010:intel_gvt_i2c_handle_gmbus_write+0x349/0x500 [i915] kern :warn : [ +0.000030] Code: 4c 8b 67 50 4d 85 e4 75 03 4c 8b 27 e8 a0 74 8d c4 48 c7 c1 40 e1 59 c0 4c 89 e2 48 c7 c7 36 e1 59 c0 48 89 c6 e8 2b a9 d0 c4 <0f> 0b 31 c0 e9 14 fd ff ff 4c 8b 27 e9 5c fd ff ff 81 a0 08 51 0c kern :warn : [ +0.000001] RSP: 0018:ffffbc8bc2fabca8 EFLAGS: 00010286 kern :warn : [ +0.000001] RAX: 0000000000000000 RBX: ffffbc8bc0401000 RCX: 0000000000000027 kern :warn : [ +0.000001] RDX: ffff9fb0ad218728 RSI: 0000000000000001 RDI: ffff9fb0ad218720 kern :warn : [ +0.000000] RBP: ffff9fad4a490000 R08: 0000000000000001 R09: 00000000ffffffea kern :warn : [ +0.000001] R10: ffff9fb0bc6ce8c0 R11: ffffbc8bc2faba70 R12: ffff9fad42e920b0 kern :warn : [ +0.000001] R13: ffffbc8bc0401000 R14: ffffbc8bc2fabd7c R15: ffff9fad4b5add40 kern :warn : [ +0.000000] FS: 00007fac4b7fe640(0000) GS:ffff9fb0ad200000(0000) knlGS:0000000000000000 kern :warn : [ +0.000001] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kern :warn : [ +0.000001] CR2: 0000000000000000 CR3: 0000000102652003 CR4: 00000000007726e0 kern :warn : [ +0.000001] PKRU: 55555554 kern :warn : [ +0.000000] Call Trace: kern :warn : [ +0.000002] intel_vgpu_mmio_reg_rw+0x1e5/0x4a0 [i915 1e05a28e1735ad43fb97051bcd141a7a8905c7fd] kern :warn : [ +0.000031] intel_vgpu_emulate_mmio_write+0xe3/0x2c0 [i915 1e05a28e1735ad43fb97051bcd141a7a8905c7fd] kern :warn : [ +0.000033] intel_vgpu_rw.isra.0+0xab/0x1e0 [kvmgt af19a3e7090f0a9448100ae298edf524bce50481] kern :warn : [ +0.000003] intel_vgpu_write+0x2c8/0x3d6 [kvmgt af19a3e7090f0a9448100ae298edf524bce50481] kern :warn : [ +0.000002] vfs_write+0xdf/0x490 kern :warn : [ +0.000002] x64_sys_pwrite64+0x8c/0xc0 kern :warn : [ +0.000001] do_syscall_64+0x59/0x80 kern :warn : [ +0.000003] ? do_syscall_64+0x69/0x80 kern :warn : [ +0.000001] ? audit_syscall_exit+0x302/0x360 kern :warn : [ +0.000002] ? syscall_exit_to_user_mode+0x23/0x40 kern :warn : [ +0.000001] ? do_syscall_64+0x69/0x80 kern :warn : [ +0.000001] ? syscall_exit_to_user_mode+0x23/0x40 kern :warn : [ +0.000001] ? do_syscall_64+0x69/0x80 kern :warn : [ +0.000002] ? do_syscall_64+0x69/0x80 kern :warn : [ +0.000001] entry_SYSCALL_64_after_hwframe+0x44/0xae kern :warn : [ +0.000002] RIP: 0033:0x7fac622a90ef kern :warn : [ +0.000001] Code: 08 89 3c 24 48 89 4c 24 18 e8 7d f3 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 48 8b 74 24 08 8b 3c 24 b8 12 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 04 24 e8 cd f3 ff ff 48 8b kern :warn : [ +0.000001] RSP: 002b:00007fac4b7fd3a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000012 kern :warn : [ +0.000001] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fac622a90ef kern :warn : [ +0.000000] RDX: 0000000000000004 RSI: 00007fac4b7fd3e8 RDI: 0000000000000025 kern :warn : [ +0.000001] RBP: 0000000000000004 R08: 0000000000000000 R09: 00000000ffffffff kern :warn : [ +0.000001] R10: 00000000000c5100 R11: 0000000000000293 R12: 00000000000c5100 kern :warn : [ +0.000000] R13: 0000000000000005 R14: 00005586890b7520 R15: 00005586890b7430 kern :warn : [ +0.000001] ---[ end trace 794deaffe3015254 ]--- kern :warn : [ +0.000176] ------------[ cut here ]------------

I have had GVT-g working before, actually for months on this system. The only thing I think I did is that I updated to kernel 5.14. But even downgrading back down to 5.13 or even 5.12(with b560 patch) did not work. GVT-g keeps on throwing either this error or a bad address error. No matter what the guest is Linux, windows, OVMF, Seabios, Q35, or i440fx all of them do not get past the initial boot screen. NONE make it even close to driver initialization

QEMU Script

!/bin/bash

qemu-system-x86_64 \ -m 8192 \ -cpu host \ -machine q35,accel=kvm \ -smp cores=8,threads=2 \ -cdrom /run/media/rahul/27c7b300-bdd4-4696-9dc6-2a8d72e540cd/ISOS/Win10_20H1.iso \ -bios /home/$USER/Videos/ovmf-logo.fd \ -hda /home/UserShare/Virtual\ Machines/disk/win \ -display gtk,gl=on \ -device vfio-pci,sysfsdev=/sys/bus/pci/devices/0000\:00\:02.0/4852d770-ec4c-425f-b257-bff9b3bedc87,x-igd-opregion=on,romfile=/home/UserShare/intel-720p-Bios.rom,display=on,driver=vfio-pci-nohotplug,ramfb=on \ -vga none

I tried with a custom compiled kernel and custom compiled QEMU

Host: Distro:Arch Linux CPU:Intel Core i9 10900 GPU:UHD 630 Cometlake-S GT2 (8086:9bc5) MB:ASRock B560m Pro 4 Display:DMA-BUF Via GTK display (gl=on was added)

rahulc07 commented 2 years ago

Can confirm that after a kernel patch to make the CometLake-S GT2 work on a TGP chipset, it is working on 5.11