Closed zhol01825 closed 2 months ago
@rajbhar any chance you have some ideas?
This is monolithic kernel branch. We are currently working on updating our APIs to recent kernel versions.
@zhol01825 Have you tried kernel 5.11.0-42-generic on your system yet?
I've been successfully using this kernel version together with the amdgpu 21.40.1 driver (installed from .deb packages and then via sudo amdgpu-install --opencl=rocr --vulkan=pro
).
@zhol01825 Have you resolve this problem? I also want to build fxkamd/criu-wip branch but don't know what is the correct compile command.
All CRIU APIs are now available upstream. Feel free to use https://gitlab.freedesktop.org/agd5f/linux/-/commits/amd-staging-drm-next or any latest upstream kernel branch such as https://elixir.bootlin.com/linux/v5.18-rc4/source/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c#L2524
All CRIU APIs are now available upstream. Feel free to use https://gitlab.freedesktop.org/agd5f/linux/-/commits/amd-staging-drm-next or any latest upstream kernel branch such as https://elixir.bootlin.com/linux/v5.18-rc4/source/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c#L2524
So I need to install rocm 5.18 to enjoy?
Is there some compile option available to compile the kernel module? I want to use CRIU in rocm-4.3(rock-4.3),if possible.
@zhol01825 Apologies for the lack of response. Can you please test with the latest ROCm 6.2? If issue is resolved, please close the ticket. Thanks!
CRIU support had been upstreamed a while ago. Please refer to the upstream version of the driver available in Linux mainline or amd-staging-drm-next branch. Easier way is to just use ROCm6.2 like mentioned above.
Hi all, I am trying to build fxkamd/criu-wip branch to try out criu amd plugin, while dkms amdgpu module build failed with following, anyone has any idea?
Building module: cleaning build area...(bad exit status: 2) make -j256 KERNELRELEASE=5.11.0 -j256 TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/5.11.0/build M=/var/lib/dkms/amdgpu/4.3-59/build......................................................(bad exit status: 2) ERROR (dkms apport): kernel package linux-headers-5.11.0 is not supported Error! Bad return status for module build on kernel: 5.11.0 (x86_64) Consult /var/lib/dkms/amdgpu/4.3-59/build/make.log for more information.
In file included from /var/lib/dkms/amdgpu/4.3-59/build/scheduler/backport/backport.h:5, from:
./include/generated/uapi/linux/version.h:6: warning: "DRM_VERSION_CODE" redefined
6 | #define DRM_VERSION_CODE 330496
...
/var/lib/dkms/amdgpu/4.3-59/build/amd/amdgpu/../display/dc/core/dc_debug.c: In function ‘dc_status_to_str’: /var/lib/dkms/amdgpu/4.3-59/build/amd/amdgpu/../display/dc/core/dc_debug.c:378:2: warning: enumeration value ‘DC_FAIL_DSC_VALIDATE’ not handled in switch [-Wswitch] 378 | switch (status) { | ^
~/var/lib/dkms/amdgpu/4.3-59/build/amd/amdgpu/../display/dc/core/dc_debug.c:378:2: warning: enumeration value ‘DC_NO_DSC_RESOURCE’ not handled in switch [-Wswitch] LD [M] /var/lib/dkms/amdgpu/4.3-59/build/amd/amdgpu/amdgpu.o grep: arch/x86/boot/amd/dkms/config/config.h: No such file or directory /var/lib/dkms/amdgpu/4.3-59/build/Makefile:16: dma_resv->seq is missing., exit.... Stop. make[2]: [Makefile:1710: modules] Error 2Ubuntu 20.04.3 LTS (Focal Fossa) Current kernel: 5.11.0-051100-generic
make.log