nvidia-vattn-uvm-driver not work well on linux kernel 6.x
Linux kernel: 6.8.0-79-generic
GPU: NVIDIA 4090
I tried to install nvidia-vattn-uvm-driver on my server (although version 545.23.06 only support linux kernel 5.x, i fix some bugs and install it successfully ). I run test program vattn, it can get a smaller size (64KB) handle, but couldn't write TEST_VAL to the space.
nvidia-vattn-uvm-driver vattn test output
// add this line to vattn.cu
// printf("host[0]:%d, host[1]:%d\n", host[0], host[1]);
HANDLE: 21c00000
host[0]:0, host[1]:0
For Linux kernel 6.x, I modify these files:
kernel-open/nvidia/libspdm_shash.c
char *src_ipad = crypto_tfm_ctx_aligned(&src_tfm->base);
char *dst_ipad = crypto_tfm_ctx_aligned(&dst_tfm->base);
to
#include <crypto/algapi.h> // add this line
char *src_ipad = crypto_tfm_ctx_align(&src_tfm->base, crypto_tfm_alg_alignmask(&src_tfm->base) + 1);
char *dst_ipad = crypto_tfm_ctx_align(&dst_tfm->base, crypto_tfm_alg_alignmask(&dst_tfm->base) + 1);
kernel-open/nvidia-drm/nvidia-drm-drv.c
#ifndef DRM_UNLOCKED
#define DRM_UNLOCKED 0
#endif
nvidia-vattn-uvm-driver not work well on linux kernel 6.x
Linux kernel: 6.8.0-79-generic
GPU: NVIDIA 4090
I tried to install nvidia-vattn-uvm-driver on my server (although version 545.23.06 only support linux kernel 5.x, i fix some bugs and install it successfully ). I run test program vattn, it can get a smaller size (64KB) handle, but couldn't write TEST_VAL to the space.
nvidia-vattn-uvm-driver vattn test output
For Linux kernel 6.x, I modify these files:
kernel-open/nvidia/libspdm_shash.c
to
kernel-open/nvidia-drm/nvidia-drm-drv.c