From: jsg Date: Wed, 13 Jul 2022 03:46:27 +0000 (+0000) Subject: drm/amd/vcn: fix an error msg on vcn 3.0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=13ec48d76f9aeafff64db74273ad03b090c4480f;p=openbsd drm/amd/vcn: fix an error msg on vcn 3.0 From tiancyin f3647c369c178c1cdea7f6a60dc32d6118afac40 in linux 5.15.y/5.15.54 425d7a87e54ee358f580eaf10cf28dc95f7121c1 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c b/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c index a47a0e8f06d..317c69bcca3 100644 --- a/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c +++ b/sys/dev/pci/drm/amd/amdgpu/vcn_v3_0.c @@ -1511,7 +1511,7 @@ static int vcn_v3_0_stop_dpg_mode(struct amdgpu_device *adev, int inst_idx) struct dpg_pause_state state = {.fw_based = VCN_DPG_STATE__UNPAUSE}; uint32_t tmp; - vcn_v3_0_pause_dpg_mode(adev, 0, &state); + vcn_v3_0_pause_dpg_mode(adev, inst_idx, &state); /* Wait for power status to be 1 */ SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_POWER_STATUS, 1,