2026.05.06: fix conftest on gcc 13

This commit is contained in:
bbaa
2026-05-06 11:30:28 +08:00
parent 43e97fd799
commit 2421d3ff8c
10 changed files with 22 additions and 23 deletions

View File

@@ -56,15 +56,13 @@ jobs:
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//')
make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd)
test-ubuntu-questing:
test-ubuntu-noble:
runs-on: ubuntu-24.04
container:
image: ubuntu:25.10
steps:
- name: Install Dependencies
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y git build-essential linux-generic linux-headers-generic
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git build-essential linux-image-generic-6.17 linux-headers-generic-6.17
- name: Checkout
uses: actions/checkout@v6
with:
@@ -72,9 +70,9 @@ jobs:
- name: Build Module
working-directory: i915-sriov-dkms
run: |
KERNEL_SOURCE_DIR=$(dpkg -L $(dpkg -s linux-headers-generic | grep "Depends: " | cut -d " " -f2) | grep -m 1 -Eo ".*/lib/modules/[^/]+/build")
KERNEL_SOURCE_DIR=$(dpkg -L $(dpkg -s linux-headers-generic-6.17 | grep "Depends: " | cut -d " " -f2) | grep -m 1 -Eo ".*/lib/modules/[^/]+/build")
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//')
make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd)
sudo make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd)
test-archlinux:
runs-on: ubuntu-24.04

View File

@@ -1,4 +1,4 @@
DKMS_MODULE_VERSION := "2026.05.01-sriov"
DKMS_MODULE_VERSION := "2026.05.06-sriov"
DKMS_MODULE_ORIGIN_KERNEL := "7.0.1"
LINUXINCLUDE := \

View File

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

View File

@@ -15,7 +15,7 @@ You need to install this dkms module in **both host and guest!**
**Required kernel**: 6.17.x ~ 7.0.x
**Latest release**: [2026.05.03](https://github.com/strongtz/i915-sriov-dkms/releases/tag/2026.05.03)
**Latest release**: [2026.05.06](https://github.com/strongtz/i915-sriov-dkms/releases/tag/2026.05.06)
For older kernel (v6.12 ~ v6.19), please use the [2026.03.05.1](https://github.com/strongtz/i915-sriov-dkms/releases/tag/2026.03.05.1) release.
@@ -87,11 +87,11 @@ For detailed installation instructions, please refer to the specific guide for y
### Host Installation
- [Arch Linux Host](docs/install-arch-host.md)
- [NixOS Linux Host (Tested Kernel 6.17)](docs/install-nixos-host.md)
- [Proxmox PVE Host (PVE 9.1)](docs/install-pve-host.md)
- [Proxmox PVE Host](docs/install-pve-host.md)
- [Manual Host Installation Steps](docs/install-manual.md) - Applicable to Debian, Ubuntu, and Arch Linux hosts.
### Guest Installation
- [Linux Guest (Ubuntu 25.04/Kernel 6.14)](docs/install-linux-guest.md)
- [Linux Guest (Ubuntu)](docs/install-linux-guest.md)
- [Linux Guest (Ubuntu 25.04 Cloud-Init VM on Proxmox)](docs/install-linux-guest-proxmox-cloud-init.md)
- [Windows Guest (Tested with Proxmox 8.3 + Windows 11 24H2 + Intel Driver 32.0.101.6460/32.0.101.6259)](docs/install-windows-guest.md)

View File

@@ -18,7 +18,8 @@ fi
CFLAGS="$NOSTDINC_FLAGS $LINUXINCLUDE $KBUILD_CPPFLAGS $KBUILD_CFLAGS $KBUILD_MODFLAGS \
-DKBUILD_BASENAME=\"conftest\" -DKBUILD_MODNAME=\"conftest\" \
-Wno-missing-prototypes -w
-Werror=implicit-function-declaration -Wno-missing-prototypes
-Wno-unused-function
"
TMPDIR="${KBUILD_EXTMOD:-.}/conftest_tmp"

View File

@@ -1,5 +1,5 @@
PACKAGE_NAME="i915-sriov-dkms"
PACKAGE_VERSION="2026.05.03"
PACKAGE_VERSION="2026.05.06"
BUILT_MODULE_NAME[0]="intel_sriov_compat"
BUILT_MODULE_LOCATION[0]=compat

View File

@@ -29,4 +29,4 @@ To apply this configuration, follow the **[Block VFs Setup Guide](block-vfs.md)*
Remove the package with `pacman -R i915-sriov-dkms`.
If you installed the module manually, or if the package manager fails to remove it from the kernel tree, you can remove it forcibly with:
`dkms remove i915-sriov-dkms/2026.05.03`
`dkms remove i915-sriov-dkms/2026.05.06`

View File

@@ -8,8 +8,8 @@ We will need to run the same driver under Linux guests.
```
2. Download and install the `.deb`
```
wget -O /tmp/i915-sriov-dkms_2026.05.03_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2026.05.03/i915-sriov-dkms_2026.05.03_amd64.deb"
dpkg -i /tmp/i915-sriov-dkms_2026.05.03_amd64.deb
wget -O /tmp/i915-sriov-dkms_2026.05.06_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2026.05.06/i915-sriov-dkms_2026.05.06_amd64.deb"
dpkg -i /tmp/i915-sriov-dkms_2026.05.06_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.
@@ -33,4 +33,4 @@ We will need to run the same driver under Linux guests.
Remove the package with `dpkg -P i915-sriov-dkms`.
If you installed the module manually, or if the package manager fails to remove it from the kernel tree, you can remove it forcibly with:
`dkms remove i915-sriov-dkms/2026.05.03`
`dkms remove i915-sriov-dkms/2026.05.06`

View File

@@ -4,7 +4,7 @@
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/2026.05.03`.
1. Install the module with DKMS: `dkms install i915-sriov-dkms/2026.05.06`.
1. If you have secureboot enabled, and `dkms install` tells you it created a self-signed certificate for MOK and you have not installed the host's certificate yet, install the certificate generated by dkms with `mokutil --import /var/lib/dkms/mok.pub`.
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`.
@@ -37,4 +37,4 @@ Remove the package with `pacman -R i915-sriov-dkms`
### manual
Remove the dkms module with `dkms remove i915-sriov-dkms/2026.05.03`
Remove the dkms module with `dkms remove i915-sriov-dkms/2026.05.06`

View File

@@ -4,9 +4,9 @@
2. Install the kernel and headers for desired version: `apt install proxmox-default-kernel proxmox-default-headers` (for unsigned kernel).
3. Download deb package from the [releases page](https://github.com/strongtz/i915-sriov-dkms/releases)
```sh
wget -O /tmp/i915-sriov-dkms_2026.05.03_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2026.05.03/i915-sriov-dkms_2026.05.03_amd64.deb"
wget -O /tmp/i915-sriov-dkms_2026.05.06_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2026.05.06/i915-sriov-dkms_2026.05.06_amd64.deb"
```
4. Install the deb package with dpkg: `dpkg -i /tmp/i915-sriov-dkms_2026.05.03_amd64.deb`
4. Install the deb package with dpkg: `dpkg -i /tmp/i915-sriov-dkms_2026.05.06_amd64.deb`
5. 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.
6. You can also use `xe` driver instead of `i915` as described in the [Required Kernel Parameters](https://github.com/strongtz/i915-sriov-dkms?tab=readme-ov-file#required-kernel-parameters) section.
7. Update `grub` and `initramfs` by executing `update-grub` and `update-initramfs -u`
@@ -33,4 +33,4 @@ To apply this configuration, follow the **[UEFI Secure Boot Setup Guide](secure-
Remove the package with `dpkg -P i915-sriov-dkms`.
If you installed the module manually, or if the package manager fails to remove it from the kernel tree, you can remove it forcibly with:
`dkms remove i915-sriov-dkms/2026.05.03`
`dkms remove i915-sriov-dkms/2026.05.06`