aboutsummaryrefslogtreecommitdiffstats
path: root/include/nvgpu
diff options
context:
space:
mode:
authorJoshua Bakita <jbakita@cs.unc.edu>2023-06-29 17:09:54 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2023-06-29 17:14:49 -0400
commita3fe3788535dd099d15e0ddca455be58e1d63156 (patch)
tree414b93951935d9e434c78c68326af1f59fa54d5a /include/nvgpu
parent7e8fc4f9ae9fb4424aab73622cd9d7b89390dcb3 (diff)
Hacky support for Linux 5.6+ and the Jetson AGX Orin
Works around change in parameters to proc initialization functions via a hacky function which rewrites the layout. This also required making all the struct file_operations writable. Also start reducing dependency on nvgpu headers. Known issues: - Incorrect message printed in log after module is loaded. Unclear if this is because the register detection logic is broken, or if the layout of the data at NV_MC_BOOT_0 has changed. - Not tested
Diffstat (limited to 'include/nvgpu')
-rw-r--r--include/nvgpu/nvlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nvgpu/nvlink.h b/include/nvgpu/nvlink.h
index a74111c..26c83f1 100644
--- a/include/nvgpu/nvlink.h
+++ b/include/nvgpu/nvlink.h
@@ -26,7 +26,7 @@
26#include <nvgpu/types.h> 26#include <nvgpu/types.h>
27 27
28#ifdef __KERNEL__ 28#ifdef __KERNEL__
29#include <nvgpu/linux/nvlink.h> 29//#include <nvgpu/linux/nvlink.h>
30#elif defined(__NVGPU_POSIX__) 30#elif defined(__NVGPU_POSIX__)
31#include <nvgpu/posix/nvlink.h> 31#include <nvgpu/posix/nvlink.h>
32#else 32#else