Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Timur Kristóf and committed by
Alex Deucher
8b3e8fa6 4724bc5b

+5
+5
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
··· 93 93 static int uvd_v4_2_early_init(struct amdgpu_ip_block *ip_block) 94 94 { 95 95 struct amdgpu_device *adev = ip_block->adev; 96 + 97 + /* UVD doesn't work without DPM, it needs DPM to ungate it. */ 98 + if (!amdgpu_dpm) 99 + return -ENOENT; 100 + 96 101 adev->uvd.num_uvd_inst = 1; 97 102 98 103 uvd_v4_2_set_ring_funcs(adev);