strongtz / i915-sriov-dkms

dkms module of Linux i915 driver with SR-IOV support
973 stars 117 forks source link

linux guest xorg session #192

Open neroita opened 1 month ago

neroita commented 1 month ago

Hi all , I have sr-iov perfectly working on proxmox , windows 10 and 11 work without any problem. Now I'm trying to configure a linux ubuntu vm with sr-iov.

I get vainfo working and see drm but I can't find a way to run a xorg session.

I've add that to xorg.conf:

Section "Monitor"
        Identifier "monitor0"
        HorizSync 28.0-80.0
        VertRefresh 48.0-75.0
        Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
EndSection

Section "Device"
        Identifier "Intel"
        Driver "intel"
        Option "VirtualHeads" "1"
EndSection

Section "Screen"
        Identifier "screen0"
        Device "Intel"
        Monitor "monitor0"
        SubSection "Display"
        EndSubSection
EndSection

and my Xorg output gave me that:

[   291.005] (--) Log file renamed from "/var/log/Xorg.pid-934.log" to "/var/log/Xorg.0.log"
[   291.005] 
X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
[   291.005] Current Operating System: Linux LNX01 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  5 10:34:03 UTC 2024 x86_64
[   291.005] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-40-generic root=UUID=7f1b1add-2a31-4808-942a-91af86a17365 ro quiet splash i915.enable_guc=3 ipv6.disable=1 vt.handoff=7
[   291.005] xorg-server 2:21.1.12-1ubuntu1 (For technical support please see http://www.ubuntu.com/support) 
[   291.005] Current version of pixman: 0.42.2
[   291.005]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   291.005] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   291.005] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Aug  9 13:27:10 2024
[   291.005] (==) Using config file: "/etc/X11/xorg.conf"
[   291.005] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   291.005] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   291.005] (==) No Layout section.  Using the first Screen section.
[   291.005] (**) |-->Screen "screen0" (0)
[   291.005] (**) |   |-->Monitor "monitor0"
[   291.005] (**) |   |-->Device "Intel"
[   291.005] (**) Allowing byte-swapped clients
[   291.005] (==) Automatically adding devices
[   291.005] (==) Automatically enabling devices
[   291.005] (==) Automatically adding GPU devices
[   291.005] (==) Automatically binding GPU devices
[   291.005] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   291.005] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   291.005]    Entry deleted from font path.
[   291.005] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   291.005]    Entry deleted from font path.
[   291.005] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   291.005]    Entry deleted from font path.
[   291.005] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   291.005]    Entry deleted from font path.
[   291.005] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   291.005]    Entry deleted from font path.
[   291.005] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[   291.005] (==) ModulePath set to "/usr/lib/xorg/modules"
[   291.005] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   291.005] (II) Loader magic: 0x55abda12b020
[   291.005] (II) Module ABI versions:
[   291.005]    X.Org ANSI C Emulation: 0.4
[   291.005]    X.Org Video Driver: 25.2
[   291.005]    X.Org XInput driver : 24.4
[   291.005]    X.Org Server Extension : 10.0
[   291.006] (++) using VT number 2

[   291.006] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   291.006] (II) xfree86: Adding drm device (/dev/dri/card0)
[   291.006] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/drm/card0
[   291.008] (--) PCI:*(1@0:0:0) 8086:46a6:0000:0000 rev 12, Mem @ 0xfc000000/16777216, 0x383800000000/536870912, BIOS @ 0x????????/131072
[   291.008] (II) LoadModule: "glx"
[   291.008] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   291.008] (II) Module glx: vendor="X.Org Foundation"
[   291.008]    compiled for 1.21.1.11, module version = 1.0.0
[   291.008]    ABI class: X.Org Server Extension, version 10.0
[   291.008] (II) LoadModule: "intel"
[   291.008] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[   291.008] (II) Module intel: vendor="X.Org Foundation"
[   291.008]    compiled for 1.21.1.11, module version = 2.99.917
[   291.008]    Module class: X.Org Video Driver
[   291.008]    ABI class: X.Org Video Driver, version 25.2
[   291.008] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   291.009] (II) intel: Driver for Intel(R) HD Graphics
[   291.009] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[   291.009] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics

But if I try to run anythink on display :0 process get stuck.

for example a simple randr or a Xvnc server or also a xterm.

What i'm doing wrong ?

thank's'.