summary refs log tree commit diff stats
path: root/results/classifier/108/other/1508
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--results/classifier/108/other/1508106
-rw-r--r--results/classifier/108/other/1508405140
2 files changed, 246 insertions, 0 deletions
diff --git a/results/classifier/108/other/1508 b/results/classifier/108/other/1508
new file mode 100644
index 000000000..c62c5edbc
--- /dev/null
+++ b/results/classifier/108/other/1508
@@ -0,0 +1,106 @@
+graphic: 0.877
+permissions: 0.858
+semantic: 0.849
+other: 0.843
+debug: 0.842
+device: 0.795
+performance: 0.785
+boot: 0.746
+network: 0.742
+PID: 0.712
+vnc: 0.710
+files: 0.696
+KVM: 0.687
+socket: 0.665
+
+vfio-pci 0000:00:02.1: VF token required to access device
+Description of problem:
+I'm trying to use SR-IOV on an i5-12400 trying to create VFs for my UHD Graphics 730.
+
+I had to build this DKMS module for it to work:
+https://github.com/strongtz/i915-sriov-dkms
+
+So far I have managed to have 7 VFs created per the dmsg:
+```
+[root@fedora ~]# dmesg | grep -i vf
+[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.1.13-200.fc37.x86_64 root=UUID=a1ec5891-71c6-44ea-9beb-c4f1cde55c0e ro rootflags=subvol=root rhgb quiet intel_iommu=on iommu=pt split_lock_detect=off i915.enable_guc=7 video=vesafb:off video=efifb:off initcall_blacklist=sysfb_init vfio-pci.disable_vga=1 vfio-pci.enable_sriov=1 vfio-pci.ids=8086:4692,8086:7ad0
+[    0.074362] Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.1.13-200.fc37.x86_64 root=UUID=a1ec5891-71c6-44ea-9beb-c4f1cde55c0e ro rootflags=subvol=root rhgb quiet intel_iommu=on iommu=pt split_lock_detect=off i915.enable_guc=7 video=vesafb:off video=efifb:off initcall_blacklist=sysfb_init v
+io-pci.disable_vga=1 vfio-pci.enable_sriov=1 vfio-pci.ids=8086:4692,8086:7ad0
+[    0.288336] pci 0000:00:02.0: VF(n) BAR0 space: [mem 0x60e0000000-0x60e6ffffff 64bit] (contains BAR0 for 7 VFs)
+[    0.288339] pci 0000:00:02.0: VF(n) BAR2 space: [mem 0x6000000000-0x60dfffffff 64bit pref] (contains BAR2 for 7 VFs)
+[    0.293518] pci 0000:01:00.0: VF(n) BAR0 space: [mem 0xa1330000-0xa134ffff 64bit] (contains BAR0 for 8 VFs)
+[    0.336464] VFS: Disk quotas dquot_6.6.0
+[    0.336470] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
+[    1.028560] VFIO - User Level meta-driver version: 0.3
+[    1.039931] vfio-pci 0000:00:02.0: vgaarb: deactivate vga console
+[    1.039933] vfio-pci 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
+[    1.040007] vfio_pci: add [8086:4692[ffffffff:ffffffff]] class 0x000000/00000000
+[    1.040140] vfio_pci: add [8086:7ad0[ffffffff:ffffffff]] class 0x000000/00000000
+[    3.373977] RAPL PMU: API unit is 2^-32 Joules, 3 fixed counters, 655360 ms ovfl timer
+[   45.696323] vfio-pci 0000:00:02.0: Captured SR-IOV VF 0000:00:02.1 driver_override
+[   45.696356] vfio-pci 0000:00:02.1: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
+[   45.696598] vfio-pci 0000:00:02.0: Captured SR-IOV VF 0000:00:02.2 driver_override
+[   45.696609] vfio-pci 0000:00:02.2: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
+[   45.696724] vfio-pci 0000:00:02.0: Captured SR-IOV VF 0000:00:02.3 driver_override
+[   45.696734] vfio-pci 0000:00:02.3: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
+[   45.696811] vfio-pci 0000:00:02.0: Captured SR-IOV VF 0000:00:02.4 driver_override
+[   45.696825] vfio-pci 0000:00:02.4: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
+[   45.696947] vfio-pci 0000:00:02.0: Captured SR-IOV VF 0000:00:02.5 driver_override
+[   45.696958] vfio-pci 0000:00:02.5: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
+[   45.697050] vfio-pci 0000:00:02.0: Captured SR-IOV VF 0000:00:02.6 driver_override
+[   45.697060] vfio-pci 0000:00:02.6: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
+[   45.697127] vfio-pci 0000:00:02.0: Captured SR-IOV VF 0000:00:02.7 driver_override
+[   45.697137] vfio-pci 0000:00:02.7: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
+```
+I've blacklisted these modules:
+```
+blacklist igb
+blacklist i915
+blacklist snd_hda_intel
+blacklist snd_sof_pci_intel_tgl
+```
+And loaded these modules:
+```
+vfio
+vfio-pci
+vfio_virqfd
+vfio_iommu_type1
+```
+Kernel args:
+```
+GRUB_CMDLINE_LINUX="rhgb quiet intel_iommu=on iommu=pt split_lock_detect=off i915.enable_guc=7 video=vesafb:off video=efifb:off initcall_blacklist=sysfb_init vfio-pci.disable_vga=1 vfio-pci.enable_sriov=1 vfio-pci.ids=8086:4692,8086:7ad0"
+```
+
+**Error shown:**
+```
+[root@fedora ~]# ./test.sh
+QEMU 7.0.0 monitor - type 'help' for more information
+(qemu) qemu-system-x86_64: -device vfio-pci,host=0000:02.2,multifunction=on,bus=pcie.1,addr=0x00,x-vga=on: vfio 0000:00:02.2: error getting device from group 14: Permission denied
+Verify all devices in group 14 are bound to vfio-<bus> or pci-stub and not already in use
+```
+**DMESG shows:**
+```
+[ 2160.408395] vfio-pci 0000:00:02.2: VF token required to access device
+```
+
+This lead me to this conversation / thread:
+
+https://inbox.dpdk.org/dev/CALBAE1MrEoCc8Ch6MNUNTsOcZyJnhr+z+iD0VWjHagQsEdBWCw@mail.gmail.com/#t
+
+Quote: "Something needs to be sorted with the QEMU community."
+
+In fact, something needs to be sorted. **It seems there's no way to specify this VF token anywhere from the CLI args**, so I'm reporting this as a bug (or feature not developed yet?? any ETA?)
+
+**Additional information:** It seems that QEMU might require a patch or a change to allow this VF token to be passed through. It seems that DPDK and other similar projects have already implemented this (it seems Linux has it since Kernel 5.7 - Maybe I'm missing something to pass this token with QEMU considering how old that kernel is? I'd expect this flag to be here in QEMU already)
+
+**Useful code / info:**
+* https://patches.dpdk.org/project/dpdk/patch/20200529013710.72302-3-haiyue.wang@intel.com/
+* https://github.com/intel/pf-bb-config/blob/master/README.md#usage-example
+* https://support.hpe.com/hpesc/public/docDisplay?docId=sd00001790en_us&docLocale=en_US&page=GUID-1D5D76F8-522A-47F5-922B-142BD5177033.html
+
+Thanks,
+
+-Alemar
+Steps to reproduce:
+1. See description
+2. Run QEMU as described
diff --git a/results/classifier/108/other/1508405 b/results/classifier/108/other/1508405
new file mode 100644
index 000000000..007c8ed40
--- /dev/null
+++ b/results/classifier/108/other/1508405
@@ -0,0 +1,140 @@
+graphic: 0.891
+KVM: 0.842
+performance: 0.837
+device: 0.835
+vnc: 0.831
+permissions: 0.830
+PID: 0.802
+debug: 0.799
+network: 0.792
+files: 0.787
+semantic: 0.778
+socket: 0.771
+other: 0.753
+boot: 0.677
+
+qemu 2.4.0 with --enable-kvm hangs, takes 100% CPU
+
+When starting qemu-system-x86_64 from version 2.4.0 with --enable-kvm, it hangs and takes 100% CPU. The graphical display (SeaBIOS output) is not initialized.
+
+There have been multiple reports of this issue in the following thread:
+https://bbs.archlinux.org/viewtopic.php?pid=1572405
+
+There is no need to load a certain image, it already hangs with the following command:
+qemu-system-x86_64 --enable-kvm
+
+There are three workarounds:
+- Downgrading the kernel form 4.2.2 to 4.1.6 (according to the forum thread, have not tested this myself)
+- Downgrading qemu to 2.3 (tested personally, works)
+- passing -machine pc-i440fx-2.3 to qemu 2.4 (have not tested this myself, I will try that shortly)
+
+modules kvm and kvm_intel are loaded and rmmod && modprobing them does not change the situation
+
+I have an nvidia card and switching from official binary drivers to nouveau and back does not change the situation.
+
+
+qemu is installed from Arch package. From the PKGBUILD you can see that is is built with the following configuration:
+================================================================
+export ARFLAGS="rv"
+  export CFLAGS+=' -fPIC'
+  ./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list='pa alsa sdl' \
+              --python=/usr/bin/python2 --smbd=/usr/bin/smbd \
+              --enable-docs --libexecdir=/usr/lib/qemu \
+              --disable-gtk --enable-linux-aio --enable-seccomp \
+              --enable-spice --localstatedir=/var \
+              --enable-tpm \
+              --enable-modules --enable-{rbd,glusterfs,libiscsi,curl}
+  make V=99
+================================================================
+
+cpuinfo on my machine (for the first core only):
+
+================================================================
+processor       : 0
+vendor_id       : GenuineIntel
+cpu family      : 6
+model           : 30
+model name      : Intel(R) Core(TM) i7 CPU       Q 820  @ 1.73GHz
+stepping        : 5
+microcode       : 0x7
+cpu MHz         : 1333.000
+cache size      : 8192 KB
+physical id     : 0
+siblings        : 8
+core id         : 0
+cpu cores       : 4
+apicid          : 0
+initial apicid  : 0
+fpu             : yes
+fpu_exception   : yes
+cpuid level     : 11
+wp              : yes
+flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dtherm tpr_shadow vnmi flexpriority ept vpid
+bugs            :
+bogomips        : 3459.21
+clflush size    : 64
+cache_alignment : 64
+address sizes   : 36 bits physical, 48 bits virtual
+================================================================
+
+Is there more information I can provide you with to help debug this problem?
+
+Thanks,
+
+cptG
+
+Just confirmed: passing -machine pc-i440fx-2.3 to qemu 2.4 works on my machine, too.
+
+I guess I forgot about it before: Kernel version is 4.2.3
+
+OK, I just git-bisected and it found the following commit to probably cause the problem:
+===================== SNIP ========================================
+355023f2010c4df619d88a0dd7012b4b9c74c12c is the first bad commit
+commit 355023f2010c4df619d88a0dd7012b4b9c74c12c
+Author: Paolo Bonzini <email address hidden>
+Date:   Thu Jun 18 18:30:52 2015 +0200
+
+    pc: add SMM property
+    
+    The property can take values on, off or auto.  The default is "off"
+    for KVM and pre-2.4 machines, otherwise "auto" (which makes it
+    available on TCG or on new-enough kernels).
+    
+    Acked-by: Michael S. Tsirkin <email address hidden>
+    Signed-off-by: Paolo Bonzini <email address hidden>
+
+:040000 040000 28b1de64871e1baa3aaad155f22f7c44d5fdc94f 77265bdd62664d15d8ad6ef3364aeb284d030486 M      hw
+:040000 040000 8b933a2739a2dccb0b5e28ab3ce20e2bb703780b a8d444cb27fbd54b0b9a7bd9997db355da15763e M      include
+:040000 040000 1acb81aecaf50f2d313b33f2b61a24f7f0bd6f07 726899e7ae70d04dd9acd7000fa1c5dee715da3e M      target-i386
+===================== SNIP ========================================
+
+
+The script I ran after each bisection step:
+
+===================== SNIP ========================================
+make clean
+PREFIX=$PWD/localinstall
+export ARFLAGS="rv"
+  # http://permalink.gmane.org/gmane.comp.emulators.qemu/238740
+  export CFLAGS+=' -fPIC'
+  # gtk gui breaks keymappings at the moment
+  ./configure --prefix=$PREFIX --sysconfdir=/etc --audio-drv-list='pa alsa sdl' \
+              --python=/usr/bin/python2 --smbd=/usr/bin/smbd \
+              --enable-docs --libexecdir=$PREFIX/lib/qemu \
+              --disable-gtk --enable-linux-aio --enable-seccomp \
+              --enable-spice --localstatedir=/var \
+              --enable-tpm \
+              --enable-modules --enable-{rbd,glusterfs,libiscsi,curl}
+  make V=99 -j9 && ./x86_64-softmmu/qemu-system-x86_64 --enable-kvm
+===================== SNIP ========================================
+
+
+Hope this helps!
+
+
+Duh, I should've actually taken a closer look at the commit I found... another workaround for the problem is:
+
+qemu-system-x86_64 --enable-kvm -machine smm=off
+
+though the commit  message seems to state that the default is off for kvm - so that's where the bug is?
+