OSDN Git Service

drm/amd/vcn: fix an error msg on vcn 3.0
authortiancyin <tianci.yin@amd.com>
Sun, 27 Mar 2022 11:07:13 +0000 (19:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Apr 2022 15:25:22 +0000 (11:25 -0400)
commitdda81d9761d07541c404dd5fa93e773a8eda5ddc
tree74bec35ae99c348efe6bc422ce74b41d2f559d84
parent945da79e6dd058be70bc47442dce319844e14daa
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c