mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-05 23:59:59 +00:00
525.47.07
This commit is contained in:
@@ -72,7 +72,7 @@ EXTRA_CFLAGS += -I$(src)/common/inc
|
||||
EXTRA_CFLAGS += -I$(src)
|
||||
EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error -Wno-format-extra-args
|
||||
EXTRA_CFLAGS += -D__KERNEL__ -DMODULE -DNVRM
|
||||
EXTRA_CFLAGS += -DNV_VERSION_STRING=\"525.47.06\"
|
||||
EXTRA_CFLAGS += -DNV_VERSION_STRING=\"525.47.07\"
|
||||
|
||||
EXTRA_CFLAGS += -Wno-unused-function
|
||||
|
||||
|
||||
@@ -101,7 +101,8 @@ test_header_presence() {
|
||||
build_cflags() {
|
||||
BASE_CFLAGS="-O2 -D__KERNEL__ \
|
||||
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
|
||||
-nostdinc -isystem $ISYSTEM"
|
||||
-nostdinc -isystem $ISYSTEM \
|
||||
-Wno-implicit-function-declaration -Wno-strict-prototypes"
|
||||
|
||||
if [ "$OUTPUT" != "$SOURCES" ]; then
|
||||
OUTPUT_CFLAGS="-I$OUTPUT/include2 -I$OUTPUT/include"
|
||||
|
||||
@@ -131,16 +131,19 @@ static int __nv_drm_put_back_post_fence_fd(
|
||||
const struct NvKmsKapiLayerReplyConfig *layer_reply_config)
|
||||
{
|
||||
int fd = layer_reply_config->postSyncptFd;
|
||||
int ret = 0;
|
||||
|
||||
if ((fd >= 0) && (plane_state->fd_user_ptr != NULL)) {
|
||||
if (put_user(fd, plane_state->fd_user_ptr)) {
|
||||
return -EFAULT;
|
||||
ret = copy_to_user(plane_state->fd_user_ptr, &fd, sizeof(fd));
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*! set back to Null and let set_property specify it again */
|
||||
plane_state->fd_user_ptr = NULL;
|
||||
}
|
||||
return 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __nv_drm_get_syncpt_data(
|
||||
|
||||
@@ -34,7 +34,7 @@ static int uvm_debug_prints = UVM_IS_DEBUG() || UVM_IS_DEVELOP();
|
||||
module_param(uvm_debug_prints, int, S_IRUGO|S_IWUSR);
|
||||
MODULE_PARM_DESC(uvm_debug_prints, "Enable uvm debug prints.");
|
||||
|
||||
bool uvm_debug_prints_enabled()
|
||||
bool uvm_debug_prints_enabled(void)
|
||||
{
|
||||
return uvm_debug_prints != 0;
|
||||
}
|
||||
|
||||
@@ -1718,7 +1718,7 @@ bool uvm_va_space_has_access_counter_migrations(uvm_va_space_t *va_space)
|
||||
return atomic_read(&va_space_access_counters->params.enable_mimc_migrations);
|
||||
}
|
||||
|
||||
NV_STATUS uvm_perf_access_counters_init()
|
||||
NV_STATUS uvm_perf_access_counters_init(void)
|
||||
{
|
||||
uvm_perf_module_init("perf_access_counters",
|
||||
UVM_PERF_MODULE_TYPE_ACCESS_COUNTERS,
|
||||
@@ -1729,7 +1729,7 @@ NV_STATUS uvm_perf_access_counters_init()
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
void uvm_perf_access_counters_exit()
|
||||
void uvm_perf_access_counters_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -334,7 +334,7 @@ bool __uvm_check_all_unlocked(uvm_thread_context_lock_t *uvm_context)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool __uvm_thread_check_all_unlocked()
|
||||
bool __uvm_thread_check_all_unlocked(void)
|
||||
{
|
||||
return __uvm_check_all_unlocked(uvm_thread_context_lock_get());
|
||||
}
|
||||
|
||||
@@ -795,7 +795,7 @@ static NV_STATUS semaphore_release(NvU64 semaphore_address,
|
||||
return semaphore_release_from_gpu(gpu, semaphore_pool, semaphore_address, semaphore_payload, tracker_ptr);
|
||||
}
|
||||
|
||||
NV_STATUS uvm_migrate_init()
|
||||
NV_STATUS uvm_migrate_init(void)
|
||||
{
|
||||
NV_STATUS status = uvm_migrate_pageable_init();
|
||||
if (status != NV_OK)
|
||||
@@ -821,7 +821,7 @@ NV_STATUS uvm_migrate_init()
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
void uvm_migrate_exit()
|
||||
void uvm_migrate_exit(void)
|
||||
{
|
||||
uvm_migrate_pageable_exit();
|
||||
}
|
||||
|
||||
@@ -1001,7 +1001,7 @@ NV_STATUS uvm_migrate_pageable(uvm_migrate_args_t *uvm_migrate_args)
|
||||
return status;
|
||||
}
|
||||
|
||||
NV_STATUS uvm_migrate_pageable_init()
|
||||
NV_STATUS uvm_migrate_pageable_init(void)
|
||||
{
|
||||
g_uvm_migrate_vma_state_cache = NV_KMEM_CACHE_CREATE("migrate_vma_state_t", migrate_vma_state_t);
|
||||
if (!g_uvm_migrate_vma_state_cache)
|
||||
@@ -1010,7 +1010,7 @@ NV_STATUS uvm_migrate_pageable_init()
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
void uvm_migrate_pageable_exit()
|
||||
void uvm_migrate_pageable_exit(void)
|
||||
{
|
||||
kmem_cache_destroy_safe(&g_uvm_migrate_vma_state_cache);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "uvm_gpu_access_counters.h"
|
||||
#include "uvm_va_space.h"
|
||||
|
||||
NV_STATUS uvm_perf_heuristics_init()
|
||||
NV_STATUS uvm_perf_heuristics_init(void)
|
||||
{
|
||||
NV_STATUS status;
|
||||
|
||||
@@ -47,7 +47,7 @@ NV_STATUS uvm_perf_heuristics_init()
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
void uvm_perf_heuristics_exit()
|
||||
void uvm_perf_heuristics_exit(void)
|
||||
{
|
||||
uvm_perf_access_counters_exit();
|
||||
uvm_perf_thrashing_exit();
|
||||
|
||||
@@ -425,7 +425,7 @@ void uvm_perf_prefetch_get_hint(uvm_va_block_t *va_block,
|
||||
}
|
||||
}
|
||||
|
||||
NV_STATUS uvm_perf_prefetch_init()
|
||||
NV_STATUS uvm_perf_prefetch_init(void)
|
||||
{
|
||||
g_uvm_perf_prefetch_enable = uvm_perf_prefetch_enable != 0;
|
||||
|
||||
|
||||
@@ -1943,7 +1943,7 @@ NV_STATUS uvm_perf_thrashing_register_gpu(uvm_va_space_t *va_space, uvm_gpu_t *g
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NV_STATUS uvm_perf_thrashing_init()
|
||||
NV_STATUS uvm_perf_thrashing_init(void)
|
||||
{
|
||||
NV_STATUS status;
|
||||
|
||||
@@ -2002,7 +2002,7 @@ error:
|
||||
return status;
|
||||
}
|
||||
|
||||
void uvm_perf_thrashing_exit()
|
||||
void uvm_perf_thrashing_exit(void)
|
||||
{
|
||||
cpu_thrashing_stats_exit();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ static struct proc_dir_entry *uvm_proc_dir;
|
||||
static struct proc_dir_entry *uvm_proc_gpus;
|
||||
static struct proc_dir_entry *uvm_proc_cpu;
|
||||
|
||||
NV_STATUS uvm_procfs_init()
|
||||
NV_STATUS uvm_procfs_init(void)
|
||||
{
|
||||
if (!uvm_procfs_is_enabled())
|
||||
return NV_OK;
|
||||
@@ -66,17 +66,17 @@ NV_STATUS uvm_procfs_init()
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
void uvm_procfs_exit()
|
||||
void uvm_procfs_exit(void)
|
||||
{
|
||||
proc_remove(uvm_proc_dir);
|
||||
}
|
||||
|
||||
struct proc_dir_entry *uvm_procfs_get_gpu_base_dir()
|
||||
struct proc_dir_entry *uvm_procfs_get_gpu_base_dir(void)
|
||||
{
|
||||
return uvm_proc_gpus;
|
||||
}
|
||||
|
||||
struct proc_dir_entry *uvm_procfs_get_cpu_base_dir()
|
||||
struct proc_dir_entry *uvm_procfs_get_cpu_base_dir(void)
|
||||
{
|
||||
return uvm_proc_cpu;
|
||||
}
|
||||
|
||||
@@ -289,12 +289,12 @@ NV_STATUS __uvm_push_begin_acquire_on_reserved_channel_with_info(uvm_channel_t *
|
||||
return status;
|
||||
}
|
||||
|
||||
bool uvm_push_info_is_tracking_descriptions()
|
||||
bool uvm_push_info_is_tracking_descriptions(void)
|
||||
{
|
||||
return uvm_debug_enable_push_desc != 0;
|
||||
}
|
||||
|
||||
bool uvm_push_info_is_tracking_acquires()
|
||||
bool uvm_push_info_is_tracking_acquires(void)
|
||||
{
|
||||
return uvm_debug_enable_push_acquire_info != 0;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ static DEFINE_PER_CPU(uvm_thread_context_lock_acquired_t, interrupt_thread_conte
|
||||
static void thread_context_non_interrupt_remove(uvm_thread_context_t *thread_context,
|
||||
uvm_thread_context_table_entry_t *thread_context_entry);
|
||||
|
||||
bool uvm_thread_context_wrapper_is_used()
|
||||
bool uvm_thread_context_wrapper_is_used(void)
|
||||
{
|
||||
// The wrapper contains lock information. While uvm_record_lock_X
|
||||
// routines are a no-op outside of debug mode, unit tests do invoke their
|
||||
|
||||
@@ -2204,7 +2204,7 @@ NV_STATUS uvm_api_tools_get_processor_uuid_table(UVM_TOOLS_GET_PROCESSOR_UUID_TA
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
void uvm_tools_flush_events()
|
||||
void uvm_tools_flush_events(void)
|
||||
{
|
||||
tools_schedule_completed_events();
|
||||
|
||||
|
||||
@@ -560,7 +560,7 @@ void nvlink_assert(int cond)
|
||||
}
|
||||
}
|
||||
|
||||
void * nvlink_allocLock()
|
||||
void * nvlink_allocLock(void)
|
||||
{
|
||||
struct semaphore *sema;
|
||||
|
||||
|
||||
@@ -1170,14 +1170,14 @@ void NV_API_CALL os_dbg_breakpoint(void)
|
||||
#endif // CONFIG_X86_REMOTE_DEBUG || CONFIG_KGDB || CONFIG_XMON
|
||||
}
|
||||
|
||||
NvU32 NV_API_CALL os_get_cpu_number()
|
||||
NvU32 NV_API_CALL os_get_cpu_number(void)
|
||||
{
|
||||
NvU32 cpu_id = get_cpu();
|
||||
put_cpu();
|
||||
return cpu_id;
|
||||
}
|
||||
|
||||
NvU32 NV_API_CALL os_get_cpu_count()
|
||||
NvU32 NV_API_CALL os_get_cpu_count(void)
|
||||
{
|
||||
return NV_NUM_CPUS();
|
||||
}
|
||||
@@ -1273,7 +1273,7 @@ void NV_API_CALL os_get_screen_info(
|
||||
#endif
|
||||
}
|
||||
|
||||
void NV_API_CALL os_dump_stack()
|
||||
void NV_API_CALL os_dump_stack(void)
|
||||
{
|
||||
dump_stack();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user