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/amd/vcn: fix an error msg on vcn 3.0

Some video card has more than one vcn instance, passing 0 to
vcn_v3_0_pause_dpg_mode is incorrect.

Error msg:
Register(1) [mmUVD_POWER_STATUS] failed to reach value
0x00000001 != 0x00000002

Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: tiancyin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

tiancyin and committed by
Alex Deucher
425d7a87 9f07550b

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
··· 1488 1488 struct dpg_pause_state state = {.fw_based = VCN_DPG_STATE__UNPAUSE}; 1489 1489 uint32_t tmp; 1490 1490 1491 - vcn_v3_0_pause_dpg_mode(adev, 0, &state); 1491 + vcn_v3_0_pause_dpg_mode(adev, inst_idx, &state); 1492 1492 1493 1493 /* Wait for power status to be 1 */ 1494 1494 SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_POWER_STATUS, 1,