diff --git a/aarch64-TW-buildfix.patch b/aarch64-TW-buildfix.patch new file mode 100644 index 0000000..17e9961 --- /dev/null +++ b/aarch64-TW-buildfix.patch @@ -0,0 +1,11 @@ +--- a/kernel-open/nvidia/nv-vtophys.c.orig 2024-09-19 14:13:38.129627845 +0200 ++++ a/kernel-open/nvidia/nv-vtophys.c 2024-09-19 14:14:35.462847222 +0200 +@@ -29,7 +29,7 @@ + NvU64 NV_API_CALL nv_get_kern_phys_address(NvU64 address) + { + /* direct-mapped kernel address */ +- if (virt_addr_valid(address)) ++ if (virt_addr_valid((const void *) address)) + return __pa(address); + + nv_printf(NV_DBG_ERRORS, diff --git a/nvidia-open-driver-G06-signed.changes b/nvidia-open-driver-G06-signed.changes index fd17912..40e0cf7 100644 --- a/nvidia-open-driver-G06-signed.changes +++ b/nvidia-open-driver-G06-signed.changes @@ -5,6 +5,8 @@ Sat Sep 21 12:02:59 UTC 2024 - Stefan Dirsch * Fixed a bug that could cause kernel crashes upon attempting KMS operations through DRM when nvidia_drm was loaded with modeset=0. +- aarch64-TW-buildfix.patch + * fixes build on aarch64 with latest TW kernel ------------------------------------------------------------------- Wed Sep 11 11:15:43 UTC 2024 - Stefan Dirsch diff --git a/nvidia-open-driver-G06-signed.spec b/nvidia-open-driver-G06-signed.spec index 614a53e..e7f88d5 100644 --- a/nvidia-open-driver-G06-signed.spec +++ b/nvidia-open-driver-G06-signed.spec @@ -84,6 +84,11 @@ Patch0: persistent-nvidia-id-string.patch %if "%{flavor}" == "cuda" Patch1: kernel-6.10.patch %endif +%ifarch aarch64 +%if 0%{?suse_version} >= 1600 +Patch2: aarch64-TW-buildfix.patch +%endif +%endif BuildRequires: %{kernel_module_package_buildreqs} BuildRequires: fdupes BuildRequires: gcc-c++