2025.02.03: initial support for 6.14 kernel

This commit is contained in:
bbaa
2025-02-03 12:41:59 +08:00
parent b9a7b3d3e1
commit a573384f7b
6 changed files with 23 additions and 13 deletions

View File

@@ -18,7 +18,10 @@ jobs:
path: i915-sriov-dkms
- name: Packaging
working-directory: i915-sriov-dkms
run: dpkg-buildpackage -tc
run: |
LATEST_VERSION=$(grep "^PACKAGE_VERSION" "dkms.conf" | sed 's/.*\?"\([^"]*\)".*/\1/')
sed -i "s/###LATEST_VERSION###/$LATEST_VERSION/g" debian/control debian/changelog
dpkg-buildpackage -tc
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
@@ -177,9 +180,9 @@ jobs:
- name: Check release created
working-directory: i915-sriov-dkms
run: |
VERSION=$(grep "^PACKAGE_VERSION" "dkms.conf" | grep -o "[0-9]*\.[0-9]*\.[0-9]*")
VERSION=$(grep "^PACKAGE_VERSION" "dkms.conf" | sed 's/.*\?"\([^"]*\)".*/\1/')
echo "VERSION=$VERSION" >> $GITHUB_ENV
git tag | grep $VERSION && echo "MAKE_RELEASE=0" > $GITHUB_ENV || echo "MAKE_RELEASE=1" >> $GITHUB_ENV
git rev-parse "$VERSION" && echo "MAKE_RELEASE=0" > $GITHUB_ENV || echo "MAKE_RELEASE=1" >> $GITHUB_ENV
- name: Download artifacts
if: ${{ env.MAKE_RELEASE == 1 }}
uses: actions/download-artifact@v4

View File

@@ -1,7 +1,7 @@
# Maintainer: Xilin Wu <strongtz@yeah.net>
pkgname=i915-sriov-dkms
pkgver=2025.01.22
pkgver=2025.02.03
pkgrel=1
pkgdesc="Linux i915 module patched with SR-IOV support"
arch=('x86_64')

View File

@@ -35,9 +35,9 @@ You also can download the package from the [releases page](https://github.com/st
1. Install the kernel and headers for desired version: `apt install proxmox-headers-6.8 proxmox-kernel-6.8` (for unsigned kernel).
1. Download deb package from the [releases page](https://github.com/strongtz/i915-sriov-dkms/releases)
```sh
wget -O /tmp/i915-sriov-dkms_2025.01.22_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.01.22/i915-sriov-dkms_2025.01.22_amd64.deb"
wget -O /tmp/i915-sriov-dkms_2025.02.03_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.02.03/i915-sriov-dkms_2025.02.03_amd64.deb"
```
1. Install the deb package with dpkg: `dpkg -i /tmp/i915-sriov-dkms_2025.01.22_amd64.deb`
1. Install the deb package with dpkg: `dpkg -i /tmp/i915-sriov-dkms_2025.02.03_amd64.deb`
1. Once finished, the kernel commandline needs to be adjusted: `nano /etc/default/grub` and change `GRUB_CMDLINE_LINUX_DEFAULT` to `intel_iommu=on i915.enable_guc=3 i915.max_vfs=7 module_blacklist=xe`, or add to it if you have other arguments there already.
1. Update `grub` and `initramfs` by executing `update-grub` and `update-initramfs -u`
1. Optionally pin the kernel version and update the boot config via `proxmox-boot-tool`.
@@ -54,8 +54,8 @@ We will need to run the same driver under Linux guests.
```
2. Download and install the `.deb`
```
wget -O /tmp/i915-sriov-dkms_2025.01.22_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.01.22/i915-sriov-dkms_2025.01.22_amd64.deb"
dpkg -i /tmp/i915-sriov-dkms_2025.01.22_amd64.deb
wget -O /tmp/i915-sriov-dkms_2025.02.03_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.02.03/i915-sriov-dkms_2025.02.03_amd64.deb"
dpkg -i /tmp/i915-sriov-dkms_2025.02.03_amd64.deb
```
3. Update kernel parameters
`nano /etc/default/grub` and change `GRUB_CMDLINE_LINUX_DEFAULT` to `i915.enable_guc=3 module_blacklist=xe`, or add to it if you have other arguments there already.
@@ -122,7 +122,7 @@ See also: https://github.com/strongtz/i915-sriov-dkms/issues/8#issuecomment-1567
1. Install the kernel and headers for desired version: `apt install linux-headers-$(uname -r)` / `pacman -S linux-headers`.
1. Clone the repository: `git clone https://github.com/strongtz/i915-sriov-dkms.git`.
1. Add the module to DKMS: `dkms add ./i915-sriov-dkms`.
1. Install the module with DKMS: `dkms install i915-sriov-dkms/2025.01.22`.
1. Install the module with DKMS: `dkms install i915-sriov-dkms/2025.02.03`.
1. Once finished, the kernel commandline needs to be adjusted: `nano /etc/default/grub` and change `GRUB_CMDLINE_LINUX_DEFAULT` to `intel_iommu=on i915.enable_guc=3 i915.max_vfs=7`, or add to it if you have other arguments there already.
1. Update `grub` and `initramfs` by executing `update-grub` and `update-initramfs -u` / for Arch Linux `grub-mkconfig -o /boot/grub/grub.cfg` and `mkinitcpio -P`.
1. Optionally use `sysfsutils` to set the number of VFs on boot. Install `sysfsutils`, then do `echo "devices/pci0000:00/0000:00:02.0/sriov_numvfs = 7" > /etc/sysfs.conf`, assuming your iGPU is on 00:02 bus. If not, use `lspci | grep VGA` to find the PCIe bus your iGPU is on.
@@ -134,7 +134,7 @@ Remove the package with `dpkg -P i915-sriov-dkms`
### pacman
Remove the package with `pacman -R i915-sriov-dkms`
### manual
Remove the dkms module with `dkms remove i915-sriov-dkms/2025.01.22`
Remove the dkms module with `dkms remove i915-sriov-dkms/2025.02.03`
# Credits

7
debian/changelog vendored
View File

@@ -1,3 +1,10 @@
i915-sriov-dkms (###LATEST_VERSION###) UNRELEASED; urgency=medium
* Initial support for 6.14 kernel
* Readme update
-- bbaa bbaa <bbaa@bbaa.moe> Mon, 03 Feb 2025 12:40:34 +0800
i915-sriov-dkms (2025.01.22) UNRELEASED; urgency=medium
* 2025.01.22: Support for kernel v6.13

2
debian/control vendored
View File

@@ -5,7 +5,7 @@ Maintainer: bbaa <bbaa@bbaa.moe>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13), dh-sequence-dkms
Standards-Version: 2025.01.22
Standards-Version: ###LATEST_VERSION###
Homepage: https://github.com/strongtz/i915-sriov-dkms
Package: i915-sriov-dkms

View File

@@ -1,5 +1,5 @@
PACKAGE_NAME="i915-sriov-dkms"
PACKAGE_VERSION="2025.01.22"
PACKAGE_VERSION="2025.02.03"
MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build"
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
@@ -8,4 +8,4 @@ BUILT_MODULE_NAME[0]="i915"
DEST_MODULE_LOCATION[0]=/updates
AUTOINSTALL=yes
BUILD_EXCLUSIVE_KERNEL="^6\.([8-9]|1[0-3])"
BUILD_EXCLUSIVE_KERNEL="^6\.([8-9]|1[0-4])"