-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Succeded with intel-i915-dkms bakckport for LTS61 on 11800h laptop, host suspends and wakes perfectly! #101
Comments
Sorry I want to try this but dkms command returns error '/var/lib/../source/dkms.conf' missing |
copy my |
Hi, my distro is Arch and backport successfully built with 5.19 kernel. I could not get dkms to install on 5.15. However, once I reboot, GDM could not load. It shows black screen with blinking underscore. |
You mean you can't install dkms or i915 dkms module with 5.15. Have you read dkms log? Is |
Cannot build i915 backport dkms module on kernel 5.15, due to error but I can install it on |
I can't find a prebuilt linux515 or linux519 for arch linux, so I can't test for you, can you show me dkms build error log on 515? Make sure your subversion is not too old, mine is |
do some changes, make it built on 6.1, then I get a underscore too, that means i915 don't work, but my Nvidia works when I attach another monitor to it. log tell me there are some unknown symbol, one of the reasons is svm, I commented svm when building, because thera are some changes to vma, svm code use it. But I am not familiar with it and I can't find any commit about i915 svm in mainline. |
I tried following your setup on Manjaro 5.15.125 but could not get sr-iov to work. |
have you set kernel command line? what is the kernel buffer? This issue is related to max_vfs setting which is logged in kernel buffer |
I get echo write error no such file or directory when I echo anything other than 0 |
intel claims the driver support that, make sure you have make it work instead of original one. sysfs is enabled here. |
you can |
modinfo i915.txt |
I regenerated initramfs, I get 'Numerical result out of range' |
have you install the latest firmware for guc? post kernel buffer about i915 too. Also, your kernel source and distribution. |
just look into this. i915 parm: yours is -1, I forget to attach |
can you try to add enable KMS |
please append several kernel commandline parm.s: |
same message with new options
|
I am normally using "linux" arch packege(6.4.12.arch1-1 currently) |
Yours is too old, the driver out of tree is more recent than mainline. And the firmware that the module loaded is compatible downwardly, I don't want to explain here, you can read i915 source code. Apparently, your module can't load firmware, download firmware for tgl in the link I mentioned or log mentioned, and place them to |
You can't use it with Linux 6+ until it is merged to mainline, around Q4 2023. The dkms module for 6+ offered by this repository is incomplete, not all devices work, and can't wake from suspend. |
I managed to add all missing firmwares, I could echo in num_vfs |
code43 is really weird. my suggestion is try to add some quirks like vendor Id, use MS stock image with the latest update installed, remove virtual display like qxl, connect to it with RDP. And you can also use 3222 or 3111, it chances, good luck. |
turn out I just forgot vendor_id, mb |
ok, then if you make it work? |
I managed to use looking glass with iddsampledriver: https://github.com/ge9/IddSampleDriver |
Can pve8 be installed? |
glad to know, I only use it with RDP. |
many reasons cause code 43, like hiding virtualization, improper driver, etc. You should submit more information. BTW, i915 backport have support linux 6.0lts officially, you can also report this to Intel. |
Did you try to pass to romfile qemu/libvirt parameter IntelGopDriver.efi from your motherboard's BIOS? For me it had solved the issue. |
Hello, all! |
You can create a qxl display to check, I don't set specific settings. BTW, 6.2 is not LTS, even though 6.2 is supported officially now. |
|
It's working now. The issue was that the screen was set to clone mode. |
You mean windows setting? I never meet that. |
Tried the same configuration(use the same ssd for booting 2 machines) on different platform(gen11 vs gen 13), following is the result.
Just wondering what caused this difference(cpu gen? iGPU type?), does anybody runs well using backport driver on gen12/13? |
@purplepalmdash hope you have read all the thread. Then dive into those logs. |
I got a 12700h laptop, using the past ssd and system, got the code43. I have no idea now. |
1235U here, error 43. Gentoo with kernel 6.1 LTS. But I could get it working with https://github.com/strongtz/i915-sriov-dkms - however this one makes the laptop freeze when entering sleep mode. |
Let's wait for xe driver, which supports sriov natively, coming in linux 6.8 |
I had the same issue with Minecraft. In Windows 11 Settings > Display > Graphics, and set Minecraft to "Specific GPU". Edit: I should add I'm using Proxmox/Windows 11 VM with Sunshine/Moonlight |
Has anyone else tried this with xe kernel driver from 6.8 mainline kernel? I get "xe 0000:00:02.0: driver does not support SR-IOV configuration via sysfs" when trying to enable 1 VFs. |
You're not using the Xe driver but i915 (as that's still the default) you must use xe.force_probe to use Xe driver, like: I did try, good luck getting even a desktop running. Long way to go. |
I did use the force probe, I can get desktop running, but no sucess with SR-IOV. You need to compile mesa with meson build option "-Dintel-xe-kmd=enabled" so you can get to desktop. |
I built mesa-git with that build option and it only showed me rainbows or psychedelic imagery in all sddm, gdm, hyprland and gnome session. Is a specific version of mesa needed? |
I use mesa 24.0.1, but in theory if you are using mesa-git you don't need this option anymore. It has been removed from mesa-git and should work without it. I use hyprland and greetd+gtkgreet for login manager. Will try with mesa-git and give you feedback. |
Didn't work for me with mesa-git, but mesa 24.0.1 works. I'm using an i7-1165G7 with Iris Xe graphics. Did you include CONFIG_DRM_XE_DISPLAY=y in yours kernel config? |
Yes CONFIG_DRM_XE_DISPLAY=y was configured. How did mesa-git behave on your side? EDIT: mesa 24.0.1 works. Colors seem off but at least they're not all inverted. That's on Gnome shell. Hyprland(/-git) no luck ;( |
Has anyone successfully built the new version of the i915-backport which enables support for kernel 6.5 against the 6.6 lts? |
yes, I gave it a try, after did some changes, it can be built, then boot into desktop, throw dereference null ptr error, and drm issue, screen freezing. nowadays, it's a mess, they backported drm module, added dmabuf module, give several build option i915, i915_only, drm, dmabuf, nodrm and so on, but I don't find a doc about how to really do it. I set build all modules, but it wouldn't. |
at your risks, a rough and unstable patch here. |
Which defconfig did you use? I'm getting stuck at loading modules during init. |
i915, but I tried all deconfigs, then I got the same .config |
Did anyone already tried the new backport version with kernel 6.6 support (I915_24WW23.5_881.19_24.2.17_240301.20)? I'm trying it with kernel 6.6.32 and is not working well for me. It only boots with "ibt=off" kernel parameter because of MISSING ENDBR instructions. Is there any changes to compile parameters that makes it work? |
Hi chiming in, am total newbie just wanna ask some questions (sorry for clutter) Can sr-iov work out of the box now for example on debian unstable which has kernel 6.8 (has the new xe driver which supposedly has it sriov built in?) and mesa 24.1.1? if no then what components are still missing? Also do you need anything other than virtualization enabled in bios? I have a basic locked down bios on a 12th gen laptop (i5-1235U) |
Hello,
These are great questions. :) There’s another GitHub where the work is being done to get this into the mainline Linux kernel, but I’m not sure which repo that is.
SR-IOV features with the i915 requires this DKMS driver (or the one from Intel’s repo—I’m not sure which one is further along in development right now) be manually installed and maintained.
SR-IOV will not work out of the box with the Linux kernel until the replacement for the i915 driver (the upcoming “Xe” driver) replaces the i915 driver as the default, which is likely not to happen until, I believe, kernel 6.11, which might be released in October, and will then need to filter down to distro releases.
It’s a little confusing because the Xe driver is a huge change, and they’ve been implementing a lot of the underpinning infrastructure since at least 6.8. Xe will appear as a non-default replacement for i915 before it becomes the default, most likely.
Keep in mind that when SR-IOV hits mainline, you won’t need this DKMS or have to do any of this, but that won’t be until at least October.
If your BIOS lets you enable virtualization enough for, e.g., Proxmox to work, you should be fine.
Some BIOSes have a separate option to enable SR-IOV or VTd, but if your BIOS doesn’t have those, assume they were automatically turned on when you enabled virtualization, unless you’re having issues.
One thing you absolutely need to do if you can is disable secure boot. It makes this all more difficult and unpredictable.
There are some tutorials that show you how to verify you have your BIOS settings correct. The first two links assume you're running proxmox, but the under the hood setup and verification of the BIOS settings are the same for any Debian/Ubuntu.
https://pve.proxmox.com/wiki/PCI(e)_Passthrough
https://pve.proxmox.com/wiki/PCI_Passthrough
https://www.derekseaman.com/2023/11/proxmox-ve-8-1-windows-11-vgpu-vt-d-passthrough-with-intel-alder-lake.html
Proxmox VE 8.2: Windows 11 vGPU (VT-d) Passthrough with Intel Alder Lake -
derekseaman.com
- J.
… On Jun 25, 2024, at 3:22 PM, zyxhere ***@***.***> wrote:
Hi chiming in, am total newbie just wanna ask some questions (sorry for clutter) Can sr-iov work out of the box now for example on debian unstable which has kernel 6.8 (has the new xe driver which supposedly has it sriov built in?) and mesa 24.1.1? if no then what components are still missing? Also do you need anything other than virtualization enabled in bios? I have a basic locked down bios on a 12th gen laptop (i5-1235U)
—
Reply to this email directly, view it on GitHub <#101 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGI5CYUE6GUKZGLRD7LGXHLZJHGR7AVCNFSM6AAAAAA3TWD4E6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZHEYDCNRQGE>.
You are receiving this because you are subscribed to this thread.
|
I have tried with the dkms module from the repositroy(with 6.1.44-MANJARO or 6.4.10-zen2), and I also tried to build this 6.1.38 from linux-intel-lts with this aur package. None of them work with my instance.
Then I found the backport driver ocassionally. You will get the introduction about backport here, aka the out-of-tree driver. And you will find more functions about sriov in backport driver compared with linux-intel-lts, that is no wonder why backport driver work for 11800h while linux-intel-lts not.
you can install the dkms module similarly, make sure you are 515LTS kernel as backport required, I just tested with it. If you are ubuntu, suse, or redhat refer this. There is a packaged dkms module.
Today(10/07/2023), I have packaged for backports driver, you can easily install on arch, refer this
The source doesn't contain a dkms configuration file, you should create one, I list below(I built the debian package in my cloud instance, which contains this.), actually you can download it from intel's repository accroding to this.
In the future, you can generate one according to
modules.order
, which will be genereted when youmake defconfig-i915 && make
.Time to build the driver out of tree
The following is my configuration.
Test Environment:
host info:
virsh or qemu configuration
I got it from archwiki, maybe unnecessary.
make sure you don't hidden virtualization, credit to @pagkly . I think the guest driver need a flag to know itself is a VF. Hiding kvm is allowed in my case.
guest info:
Driver suggestion: 4577 or the latest, some guides recommend 3222, it doesn't work for me.
All my VMs work now with 4577.
Result
Working normally here with intel-i915-dkms bakckport for LTS515 on my 11800h laptop.
![Screenshot_20230817-121228](https://private-user-images.githubusercontent.com/111179762/261216063-7ffe9f47-c201-401c-a5a6-0eb6e000326d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0MzEwNTMsIm5iZiI6MTcyMjQzMDc1MywicGF0aCI6Ii8xMTExNzk3NjIvMjYxMjE2MDYzLTdmZmU5ZjQ3LWMyMDEtNDAxYy1hNWE2LTBlYjZlMDAwMzI2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzMxJTJGdXMtZWFzdC0x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9MCJ9.ISiOnfjj9bGM4mXDpR1BevW_33gGw6E5nzwaWKjI0OI)
Here is the
intel_gpu_top -d sriov
output under headless.Suspend
About suspend, the guest will not sleep I think, after I wake host up, I reconnect my guest, there is no relogin animation, and I can't access sleep info by
powercfg /sleepstudy
. In the host,[ 678.523222] i915 0000:00:02.0: VF1 has completed migration
is the key I think, it sotres the state of the vm, you can learn about it here, compared with linux-intel-lts one.EDIT:
sudo grub-mkconfig
->sudo update-grub
, or usesudo grub-mkconfig -o /boot/grub/grub.cfg
.intel_iommu=on iommu=pt i915.modeset=1
, I notice not all people use them, but necessary.The text was updated successfully, but these errors were encountered: