From: Jan Rękorajski Date: Sun, 26 Mar 2017 08:31:36 +0000 (+0200) Subject: - up to 304.135 X-Git-Tag: auto/th/xorg-driver-video-nvidia-legacy-304xx-304.135-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fxorg-driver-video-nvidia-legacy-304xx.git;a=commitdiff_plain;h=c06b024 - up to 304.135 - added build fix for kernel 4.10 --- diff --git a/linux-4.10.patch b/linux-4.10.patch new file mode 100644 index 0000000..76f5274 --- /dev/null +++ b/linux-4.10.patch @@ -0,0 +1,38 @@ +diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h +index e7068e3..3ac3c0b 100644 +--- a/kernel/nv-linux.h ++++ b/kernel/nv-linux.h +@@ -270,7 +270,7 @@ RM_STATUS nvos_forward_error_to_cray(struct pci_dev *, NvU32, + + extern int nv_pat_mode; + +-#if !defined(NV_VMWARE) && defined(CONFIG_HOTPLUG_CPU) ++#if !defined(NV_VMWARE) && defined(CONFIG_HOTPLUG_CPU) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)) + #define NV_ENABLE_HOTPLUG_CPU + #include /* CPU hotplug support */ + #include /* struct notifier_block, etc */ +diff --git a/kernel/nv-pat.c b/kernel/nv-pat.c +index a725533..91070e0 100644 +--- a/kernel/nv-pat.c ++++ b/kernel/nv-pat.c +@@ -210,14 +210,20 @@ nvidia_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu + + switch (action) + { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) + case CPU_DOWN_FAILED: ++#endif + case CPU_ONLINE: + if (cpu == (NvUPtr)hcpu) + nv_setup_pat_entries(NULL); + else + NV_SMP_CALL_FUNCTION(nv_setup_pat_entries, hcpu, 1); + break; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) + case CPU_DOWN_PREPARE: ++#else ++ case CPU_DOWN_PREPARE_FROZEN: ++#endif + if (cpu == (NvUPtr)hcpu) + nv_restore_pat_entries(NULL); + else diff --git a/xorg-driver-video-nvidia-legacy-304xx.spec b/xorg-driver-video-nvidia-legacy-304xx.spec index 3040d28..94ea8d4 100644 --- a/xorg-driver-video-nvidia-legacy-304xx.spec +++ b/xorg-driver-video-nvidia-legacy-304xx.spec @@ -32,15 +32,15 @@ Summary: Linux Drivers for nVidia GeForce/Quadro Chips Summary(hu.UTF-8): Linux meghajtók nVidia GeForce/Quadro chipekhez Summary(pl.UTF-8): Sterowniki do kart graficznych nVidia GeForce/Quadro Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel} -Version: 304.134 +Version: 304.135 Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}} Epoch: 1 License: nVidia Binary Group: X11 Source0: http://us.download.nvidia.com/XFree86/Linux-x86/%{version}/NVIDIA-Linux-x86-%{version}.run -# Source0-md5: 9abd7e9272382bd0e6939c3a367cc1a6 +# Source0-md5: 0e2082ae8490b135eb306befe6db56e1 Source1: http://us.download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-x86_64-%{version}-no-compat32.run -# Source1-md5: 2ecfa6bd145f673264f7977e0366e259 +# Source1-md5: 8ee9bd0b020508bca9953181811422fa Source2: xinitrc.sh Source3: gl.pc.in Source4: 10-nvidia.conf @@ -48,6 +48,7 @@ Source5: 10-nvidia-modules.conf Patch0: X11-driver-nvidia-GL.patch Patch1: X11-driver-nvidia-desktop.patch Patch2: linux-4.0.patch +Patch3: linux-4.10.patch URL: http://www.nvidia.com/object/unix.html BuildRequires: rpmbuild(macros) >= 1.701 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}} @@ -248,6 +249,7 @@ rm -rf NVIDIA-Linux-x86*-%{version}* %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %{?with_kernel:%{expand:%build_kernel_packages}}