Como instalo o amdgpu-dkms no Unbuntu-22?

Como instalo o amdgpu-dkms no Unbuntu-22?

Ao instalar usando o amdgpu-installcomando aparentemente "bom",

# amdgpu-install version
# amdgpu-install_22.20.50200-1_all.deb
# cut date: 2023-9-13
# today: 2023-99-20

# allegedly good command 1
amdgpu-install --usecase=graphics

# allegedly good command 2
amdgpu-install --usecase=graphics --vulkan=amdvlk --opencl=rocr

Eu recebo uma falha ao construir ou instalar o arquivo amdgpu-dkms. Ao compilar/instalar via amdgpu-install, obtenho mais informações de um log do makefile, mas apt-get install amdgpu-dkmstambém gera um erro:

make: Entering directory '/usr/src/linux-headers-6.2.0-33-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  You are using:           gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
/var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build/Makefile:16: *** dma_resv->seq is missing., exit....  Stop.
make: *** [Makefile:2026: /var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.2.0-33-generic'

# KEY LINE
dma_resv->seq is missing., exit....  Stop.

Suponho que dma_resvesteja faltando. A próxima coisa que tentei foi instalá-lo via apt-get:

apt-get install amdgpu-dkms

O que também falha.

Existe alguém que executou com sucesso amdgpu-dkmso Ubuntu-22?

ATUALIZAÇÕES

Continuo solucionando isso. A instalação de uma versão normal dkmsnão fornece o que a AMD exige. Em vez disso, a AMD vem com seu próprio pacote dkms automake quebrado em:

/var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/source/amd/dkms

E uma série de configureresultados produz um erro mais profundo:

apt-get install linux-headers-realtime
...
# in amd/.../dkms
sudo ./configure

# I was able to move forward on this by installing the linux headers above
# but only 2 lines forward. The UTS_RELEASE definition is still missing. 
# As far as I can tell, my kernel is *not* the realtime kernel, so
# I probably need to install the realtime kernel. 

checking kernel source directory... /usr/src/linux-realtime-headers-5.15.0-1032
checking kernel build directory... /usr/src/linux-realtime-headers-5.15.0-1032
checking kernel source version... Not found
configure: error: *** Cannot find UTS_RELEASE definition.

- Acho que quem estava desenvolvendo o pacote otimizado para o realtimekernel do Ubuntu, que está disponível na versão pro. Não tenho isso no momento, mas acho que pode ser um pré-requisito para a instalação da GPU AMD na nova 2023-9-13versão do amdgpu-install...deb.

informação relacionada