]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/uvd4.2: Don't initialize UVD 4.2 when DPM is disabled
authorTimur Kristóf <timur.kristof@gmail.com>
Sun, 29 Mar 2026 16:03:06 +0000 (18:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Mar 2026 20:49:12 +0000 (16:49 -0400)
commit8b3e8fa6d7bdab292447a43f70532db437d5d4f5
treed71214bb90ca5476a4edfa441c324a3c31290c3c
parent4724bc5b8d78c34b993594f9406135408ccb312a
drm/amdgpu/uvd4.2: Don't initialize UVD 4.2 when DPM is disabled

UVD 4.2 doesn't work at all when DPM is disabled because
the SMU is responsible for ungating it. So, Linux fails
to boot with CIK GPUs when using the amdgpu.dpm=0 parameter.

Fix this by returning -ENOENT from uvd_v4_2_early_init()
when amdgpu_dpm isn't enabled.

Note: amdgpu.dpm=0 is often suggested as a workaround
for issues and is useful for debugging.

Fixes: a2e73f56fa62 ("drm/amdgpu: Add support for CIK parts")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c