Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
NVIDIA: Readd early load patch, actually causing issues when user does not include the NVIDIA Modules into the initramfs
Peter Jung9561889dfc6e
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex 577379e0..77fc8d47 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 60bd1f53..fbdb71fd 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-echo/PKGBUILD b/linux-cachyos-echo/PKGBUILDindex 62282bdb..e1b7e0ad 100644--- a/linux-cachyos-echo/PKGBUILD+++ b/linux-cachyos-echo/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILDindex e72d4164..ad25836a 100644--- a/linux-cachyos-eevdf/PKGBUILD+++ b/linux-cachyos-eevdf/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex 30afc67a..30e1334a 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILDindex a023aa51..e4244052 100644--- a/linux-cachyos-lts/PKGBUILD+++ b/linux-cachyos-lts/PKGBUILD@@ -216,7 +216,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## ToDo: Adjust for new Scheduler Changes@@ -266,6 +267,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -560,6 +562,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFOindex e31121c8..86f95be8 100644--- a/linux-cachyos-rc/.SRCINFO+++ b/linux-cachyos-rc/.SRCINFO@@ -30,7 +30,7 @@ pkgbase = linux-cachyos-rcsource = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.9/sched/0001-sched-ext.patchsource = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.9/sched/0001-bore-cachy-ext.patchb2sums = 9f346bbd6c540249de07d2e20efcdaecec7159a2ef04d9208dc0ee5165fc1bab80fc1424e1391ec4aa8c1682c49989188beba902d34472bbf39ae3440845d216- b2sums = c4d12fbd9d9d7b31d47f9d7a53edfb1ff296db29253af577a8bee2984c7c0af7f8cf004ecc13205a18efb25e55f5bce842bc21b9fc7b4d433b9285356071f216+ b2sums = 47ef1bc417813cd6eac010c9e35c01c0bcddba095bcdd5b974e85bd37ca562ca9525914797eab81040ff5d4e2395236b854e4fc6a44ad7096d51a74a854e13ecb2sums = 43ef7a347878592740d9eb23b40a56083fa747f7700fa1e2c6d039d660c0b876d99bf1a3160e15d041fb13d45906cdb5defef034d4d0ae429911864239c94d8db2sums = ed251f65beef8681814df599adb5becb617b7bfa6957b4316811b119879a5c69bdc27e499aac7eac310a6f3b4ae09b2d604ad1e0a38eeab2847469e62095cf4fb2sums = 1ebb80c0e3838f017062b2de09ca1a2a8989b7ddadc817497aa37de29c17e99397e2d35cb64b7d9c1f1eec4281f0a3dcd2d9796d43f2f2c892cb4c4edafda68fdiff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex 0cedcda0..147c975c 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}@@ -719,7 +722,7 @@ for _p in "${pkgname[@]}"; dodoneb2sums=('9f346bbd6c540249de07d2e20efcdaecec7159a2ef04d9208dc0ee5165fc1bab80fc1424e1391ec4aa8c1682c49989188beba902d34472bbf39ae3440845d216'- 'c4d12fbd9d9d7b31d47f9d7a53edfb1ff296db29253af577a8bee2984c7c0af7f8cf004ecc13205a18efb25e55f5bce842bc21b9fc7b4d433b9285356071f216'+ '47ef1bc417813cd6eac010c9e35c01c0bcddba095bcdd5b974e85bd37ca562ca9525914797eab81040ff5d4e2395236b854e4fc6a44ad7096d51a74a854e13ec''43ef7a347878592740d9eb23b40a56083fa747f7700fa1e2c6d039d660c0b876d99bf1a3160e15d041fb13d45906cdb5defef034d4d0ae429911864239c94d8d''ed251f65beef8681814df599adb5becb617b7bfa6957b4316811b119879a5c69bdc27e499aac7eac310a6f3b4ae09b2d604ad1e0a38eeab2847469e62095cf4f''1ebb80c0e3838f017062b2de09ca1a2a8989b7ddadc817497aa37de29c17e99397e2d35cb64b7d9c1f1eec4281f0a3dcd2d9796d43f2f2c892cb4c4edafda68f'diff --git a/linux-cachyos-rc/config b/linux-cachyos-rc/configindex 75527938..ab85eee1 100644--- a/linux-cachyos-rc/config+++ b/linux-cachyos-rc/config@@ -2457,7 +2457,7 @@ CONFIG_ISCSI_IBFT=mCONFIG_FW_CFG_SYSFS=m# CONFIG_FW_CFG_SYSFS_CMDLINE is not setCONFIG_SYSFB=y-# CONFIG_SYSFB_SIMPLEFB is not set+CONFIG_SYSFB_SIMPLEFB=yCONFIG_FW_CS_DSP=mCONFIG_GOOGLE_FIRMWARE=y# CONFIG_GOOGLE_SMI is not setdiff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILDindex 850661c4..ab3a01dc 100644--- a/linux-cachyos-rt-bore/PKGBUILD+++ b/linux-cachyos-rt-bore/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-rt/PKGBUILD b/linux-cachyos-rt/PKGBUILDindex c9ce6f43..93b0e378 100644--- a/linux-cachyos-rt/PKGBUILD+++ b/linux-cachyos-rt/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-sched-ext-debug/PKGBUILD b/linux-cachyos-sched-ext-debug/PKGBUILDindex e41bd12a..1e5dc4a9 100644--- a/linux-cachyos-sched-ext-debug/PKGBUILD+++ b/linux-cachyos-sched-ext-debug/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILDindex ea3227b4..c78d4713 100644--- a/linux-cachyos-sched-ext/PKGBUILD+++ b/linux-cachyos-sched-ext/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex ac13b1de..4a37b9f7 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 58608441..cfca8509 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -210,7 +210,8 @@ fi# NVIDIA pre-build module supportif [ -n "$_build_nvidia" ]; thensource+=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${_nv_ver}/${_nv_pkg}.run"- "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch")+ "${_patchsource}/misc/nvidia/make-modeset-fbdev-default.patch"+ "${_patchsource}/misc/nvidia/0001-NVIDIA-take-modeset-ownership-early.patch")fi## List of CachyOS schedulers@@ -256,6 +257,7 @@ prepare() {src="${src##*/}"src="${src%.zst}"[[ $src = make-modeset-fbdev-default.patch ]] && continue+ [[ $src = 0001-NVIDIA-take-modeset-ownership-early.patch ]] && continue[[ $src = *.patch ]] || continueecho "Applying patch $src..."patch -Np1 < "../$src"@@ -530,6 +532,7 @@ prepare() {# Use fbdev and modeset as defaultpatch -Np1 -i "${srcdir}/make-modeset-fbdev-default.patch" -d "${srcdir}/${_nv_pkg}"+ patch -Np2 --no-backup-if-mismatch -i "${srcdir}/0001-NVIDIA-take-modeset-ownership-early.patch" -d "${srcdir}/${_nv_pkg}/kernel"fi}