From: Stanley.Yang Date: Mon, 7 Dec 2020 06:38:33 +0000 (+0800) Subject: drm/amdgpu: fix sdma instance fw version and feature version init X-Git-Tag: v5.11-rc1~206^2^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92c415a3e2abe0830b1395dc27c0c4edf95c76b0;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: fix sdma instance fw version and feature version init each sdma instance fw_version and feature_version should be set right value when asic type isn't between SIENNA_CICHILD and CHIP_DIMGREY_CAVEFISH Signed-off-by: Stanley.Yang Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index ca8d93ebd7f9c..39e17aae655fa 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -194,7 +194,7 @@ static int sdma_v5_2_init_microcode(struct amdgpu_device *adev) if (err) goto out; - err = sdma_v5_2_init_inst_ctx(&adev->sdma.instance[0]); + err = sdma_v5_2_init_inst_ctx(&adev->sdma.instance[i]); if (err) goto out; }