- aarch64-TW-buildfix.patch

* fixes build on aarch64 with latest TW kernel

OBS-URL: https://build.opensuse.org/package/show/X11:Drivers:Video:Redesign/nvidia-open-driver-G06-signed?expand=0&rev=134
This commit is contained in:
Stefan Dirsch 2024-09-21 14:51:24 +00:00 committed by Git OBS Bridge
parent a5aeb79b49
commit 4373e838ba
3 changed files with 18 additions and 0 deletions

11
aarch64-TW-buildfix.patch Normal file
View File

@ -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,

View File

@ -5,6 +5,8 @@ Sat Sep 21 12:02:59 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
* 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 <sndirsch@suse.com>

View File

@ -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++