microsoft / microsoft/vattention
nvidia-vattn-uvm-driver not work well on linux kernel 6.x
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 523
- Forks
- 46
- Avg merge
- 9h 23m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the vattn test on Linux kernel 6.8.0-79-generic with the NVIDIA 4090 and compare the reported handle and host values. Inspect kernel-open/nvidia/libspdm_shash.c and kernel-open/nvidia-drm/nvidia-drm-drv.c, including the compatibility changes shown in the issue. Done means the test can write TEST_VAL successfully on kernel 6.x.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100