diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-06-15 04:18:25 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-06-15 04:18:25 +0000 |
commit | e2de645998a29bdc14514f64a42eadc61f5b78a2 (patch) | |
tree | dd32a32716d8449d7c2ff752821e2d9f4baf8a7b /sys | |
parent | 1f8b60ed402a92e6ff166387c7c40766d854bc12 (diff) |
drm/amdgpu: init microcode chip name from ip versions
From Le Ma
bdd5bbe967827cd699f6293b70650f9a40a2dd4e in linux-6.6.y/6.6.33
92ed1e9cd5f6cc4f8c9a9ba6c4d2d2bbc6221296 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c b/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c index 7691d173c47..ef12ee577a3 100644 --- a/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c +++ b/sys/dev/pci/drm/amd/amdgpu/gfx_v9_4_3.c @@ -425,16 +425,16 @@ out: static int gfx_v9_4_3_init_microcode(struct amdgpu_device *adev) { - const char *chip_name; + char ucode_prefix[30]; 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) 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) return r; |