Commit 92ed1e9c authored by Le Ma's avatar Le Ma Committed by Alex Deucher

drm/amdgpu: init microcode chip name from ip versions

To adapt to different gc versions in gfx_v9_4_3.c file.
Signed-off-by: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 26de73bc
...@@ -431,16 +431,16 @@ static int gfx_v9_4_3_init_cp_compute_microcode(struct amdgpu_device *adev, ...@@ -431,16 +431,16 @@ static int gfx_v9_4_3_init_cp_compute_microcode(struct amdgpu_device *adev,
static int gfx_v9_4_3_init_microcode(struct amdgpu_device *adev) static int gfx_v9_4_3_init_microcode(struct amdgpu_device *adev)
{ {
const char *chip_name; char ucode_prefix[30];
int r; int r;
chip_name = "gc_9_4_3"; amdgpu_ucode_ip_version_decode(adev, GC_HWIP, ucode_prefix, sizeof(ucode_prefix));
r = gfx_v9_4_3_init_rlc_microcode(adev, chip_name); r = gfx_v9_4_3_init_rlc_microcode(adev, ucode_prefix);
if (r) if (r)
return r; return r;
r = gfx_v9_4_3_init_cp_compute_microcode(adev, chip_name); r = gfx_v9_4_3_init_cp_compute_microcode(adev, ucode_prefix);
if (r) if (r)
return r; return r;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment