mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/amdgpu: simplify mec2 fw check
Check if mec2 fw exists rather than checking asic types. Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e1ad2d53bc
commit
d7aca4f0b2
@ -1340,8 +1340,7 @@ static int amdgpu_debugfs_firmware_info(struct seq_file *m, void *data)
|
||||
fw_info.feature, fw_info.ver);
|
||||
|
||||
/* MEC2 */
|
||||
if (adev->asic_type == CHIP_KAVERI ||
|
||||
(adev->asic_type > CHIP_TOPAZ && adev->asic_type != CHIP_STONEY)) {
|
||||
if (adev->gfx.mec2_fw) {
|
||||
query_fw.index = 1;
|
||||
ret = amdgpu_firmware_info(&fw_info, &query_fw, adev);
|
||||
if (ret)
|
||||
|
Loading…
Reference in New Issue
Block a user