4.1 KiB
gpu/amdgpu-rockm Specification
Purpose
Обеспечить готовность операционной системы bigbox к установке двух AMD Radeon Instinct MI50 (gfx906) и работе ROCm через Docker-образ сообщества с патчами, сохранив гарантированную загрузку в консоли и работоспособность NVIDIA RTX 5060 Ti.
ADDED Requirements
Requirement: Kernel support for MI50 (amdgpu + amdkfd)
The system MUST be able to initialize AMD MI50 (gfx906) GPUs: the amdgpu module present in the running kernel, the amdkfd subsystem built-in, and the vega20 firmware available.
Scenario: AMD GPU present at boot
- GIVEN the system boots without
nomodeset - WHEN an AMD MI50 (1002:66a0) is present on PCIe
- THEN
amdgpubinds the device - AND
/dev/dri/renderD*nodes appear - AND
/dev/kfdappears (amdkfd built-in CONFIG_HSA_AMD=y) - AND
/sys/class/kfd/kfd/topology/nodes/0describes the GPU
Scenario: Stock kernel requirement
- GIVEN the running kernel is 6.8.0-142-generic (or -146)
- WHEN checking module availability
- THEN
amdgpumodule exists in /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/amd/amdgpu/ - AND the vega20 firmware files (vega20_smc.bin, vega20_sos.bin, ...) exist under /lib/firmware/amdgpu/
- AND no separate amdgpu-dkms (ROCm) module install is required (firmware is in linux-firmware)
Requirement: Boot without nomodeset with guaranteed console
The system MUST boot with kernel modesetting enabled for AMD GPUs while guaranteeing that an operator can always reach a console even if a GPU fails.
Scenario: Normal boot with modesetting
- GIVEN GRUB default entry has no
nomodeset - WHEN the system boots
- THEN amdgpu initializes the GPU(s)
- AND console remains available via ASPEED/BMC (07:00.0) or efifb
Scenario: Recovery console on GPU failure
- GIVEN a GPU causes a boot failure
- WHEN GRUB menu appears (timeout > 0, not hidden)
- THEN an operator can select the "nomodeset (safe mode)" entry
- AND the system boots to console with video fallback
- AND recovery/single-user options remain reachable
Scenario: Display rotation removed
- GIVEN the GRUB command line
- WHEN checking parameters
- THEN
fbcon=rotate:1is removed (user decision Q3) - AND
video=1920x1080is retained
Requirement: NVIDIA RTX 5060 Ti remains functional
The system MUST keep the NVIDIA driver (package nvidia-driver-595-open) working for the 5060 Ti after the change, with matching kernel module and userspace versions.
Scenario: nvidia-smi works
- GIVEN the NVIDIA module rebuilt via dkms for the active kernel
- WHEN running
nvidia-smi - THEN it succeeds (no "Driver/library version mismatch")
- AND the 5060 Ti (04:00.0, NVIDIA 2d04) is enumerated
Requirement: Docker data-root relocated off the root filesystem
Docker data-root MUST be moved to the NVMe disk (/opt/backup) so the root md0 (97% full, ~8 GB free) has room and the ROCm image (15-20 GB) fits.
Scenario: Docker data-root on NVMe
- GIVEN Docker daemon configuration points data-root to /opt/backup/docker
- WHEN
docker info - THEN
DockerRootDir: /opt/backup/docker - AND all existing containers/images/volumes remain working (rsync migration done with daemon stopped)
Scenario: Migration verification
- GIVEN data-root relocated
- WHEN checking disk usage
- THEN md0 use drops (docker data no longer on /)
- AND
docker psshows all previously running containers running
Requirement: Host prepared for ROCm community Docker image
The host MUST be ready to run a gfx906-patched ROCm container (community image, option 1a) — device access and runtime prerequisites in place.
Scenario: Device access in container
- GIVEN the ROCm container is started with --device /dev/kfd and /dev/dri
- WHEN checking inside the container
- THEN /dev/kfd and /dev/dri/renderD* are visible
- AND rocm-smi (if present) enumerates the MI50 cards
- AND HSA_OVERRIDE_GFX_VERSION=9.0.6 is set for gfx906 compatibility (community images usually bake this; documented for manual runs)