nvidia modules are ready
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
+78
@@ -0,0 +1,78 @@
|
||||
--- kernel/os-interface.c 2017-09-14 23:51:09.000000000 +0300
|
||||
+++ kernel/os-interface.c 2019-11-05 19:23:48.332089532 +0300
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "os-interface.h"
|
||||
#include "nv-linux.h"
|
||||
+#include <linux/time.h>
|
||||
|
||||
void NV_API_CALL os_disable_preemption(void)
|
||||
{
|
||||
|
||||
--- kernel/os-interface.c 2019-11-05 19:34:40.868104129 +0300
|
||||
+++ kernel/os-interface.c 2019-11-05 19:38:43.529109557 +0300
|
||||
@@ -26,6 +26,14 @@
|
||||
#include "nv-linux.h"
|
||||
#include <linux/time.h>
|
||||
|
||||
+void do_gettimeofday(struct timeval *tv)
|
||||
+{
|
||||
+struct timespec64 ts;
|
||||
+ktime_get_real_ts64(&ts);
|
||||
+tv->tv_sec = ts.tv_sec;
|
||||
+tv->tv_usec = ts.tv_nsec;
|
||||
+}
|
||||
+
|
||||
void NV_API_CALL os_disable_preemption(void)
|
||||
{
|
||||
#if defined(preempt_disable)
|
||||
diff --git kernel/nv-linux.h kernel/nv-linux.h
|
||||
index 4043bf1..62f0874 100644
|
||||
--- kernel/nv-linux.h
|
||||
+++ kernel/nv-linux.h
|
||||
@@ -877,12 +877,21 @@ extern void *nv_stack_t_cache;
|
||||
__ret; \
|
||||
})
|
||||
#elif (NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT == 3)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
|
||||
#define NV_SMP_CALL_FUNCTION(func, info, wait) \
|
||||
({ \
|
||||
int __ret = smp_call_function(func, info, wait); \
|
||||
__ret; \
|
||||
})
|
||||
#else
|
||||
+#define NV_SMP_CALL_FUNCTION(func, info, wait) \
|
||||
+ ({ \
|
||||
+ int __ret = 0; \
|
||||
+ smp_call_function(func, info, wait); \
|
||||
+ __ret; \
|
||||
+ })
|
||||
+#endif
|
||||
+#else
|
||||
#error "NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT value unrecognized!"
|
||||
#endif
|
||||
#elif defined(CONFIG_SMP)
|
||||
@@ -897,12 +906,21 @@ extern void *nv_stack_t_cache;
|
||||
__ret; \
|
||||
})
|
||||
#elif (NV_ON_EACH_CPU_ARGUMENT_COUNT == 3)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
|
||||
#define NV_ON_EACH_CPU(func, info, wait) \
|
||||
({ \
|
||||
int __ret = on_each_cpu(func, info, wait); \
|
||||
__ret; \
|
||||
})
|
||||
#else
|
||||
+#define NV_ON_EACH_CPU(func, info, wait) \
|
||||
+ ({ \
|
||||
+ int __ret = 0; \
|
||||
+ on_each_cpu(func, info, wait); \
|
||||
+ __ret; \
|
||||
+ })
|
||||
+#endif
|
||||
+#else
|
||||
#error "NV_ON_EACH_CPU_ARGUMENT_COUNT value unrecognized!"
|
||||
#endif
|
||||
#elif defined(CONFIG_SMP)
|
||||
|
||||
|
||||
Regular → Executable
Regular → Executable
@@ -17,9 +17,10 @@
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile target="kernel-4.14.patch">kernel-4.14.patch</AdditionalFile>
|
||||
<AdditionalFile target="nvidia-304.137-bionic-18.04.patch">nvidia-304.137-bionic-18.04.patch</AdditionalFile>
|
||||
<AdditionalFile target="linux-5.3.patch">linux-5.3.patch</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<BuildDependencies>
|
||||
<Dependency version="4.19.56">kernel-module-headers</Dependency>
|
||||
<Dependency version="5.4.6">kernel-module-headers</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
@@ -27,7 +28,7 @@
|
||||
<Name>module-nvidia304</Name>
|
||||
<Summary>Kernel module for NVIDIA driver 304.xx releases</Summary>
|
||||
<RuntimeDependencies>2
|
||||
<Dependency version="4.19.56">kernel</Dependency>
|
||||
<Dependency version="5.4.6">kernel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library" permanent="true">/lib/modules</Path>
|
||||
@@ -67,6 +68,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="28">
|
||||
<Date>2019-12-28</Date>
|
||||
<Version>304.137</Version>
|
||||
<Comment>Rebuild for new kernel.</Comment>
|
||||
<Name>Idris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="27">
|
||||
<Date>2019-08-14</Date>
|
||||
<Version>304.137</Version>
|
||||
|
||||
Reference in New Issue
Block a user