diff options
author | Stanley.Yang <Stanley.Yang@amd.com> | 2020-12-07 14:38:33 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-16 10:58:37 +0100 |
commit | 4724f74c419c8e00d7ce17724e472a946a5f115b (patch) | |
tree | 670d10e25d8368fa1e4d66b8c901c3d6c802fb35 | |
parent | 43013b6eb92458c5e2f68e90e08dfd75a3f3d9d0 (diff) | |
download | linux-stable-4724f74c419c8e00d7ce17724e472a946a5f115b.tar.gz linux-stable-4724f74c419c8e00d7ce17724e472a946a5f115b.tar.bz2 linux-stable-4724f74c419c8e00d7ce17724e472a946a5f115b.zip |
drm/amdgpu: fix sdma instance fw version and feature version init
commit 6896887b8676d8fb445c85ea56333b9661a6a8aa upstream.
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 <Stanley.Yang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index 46a9617fee5f..5ffabbdbf6cc 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -183,7 +183,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; } |