Commit d7aca4f0 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: simplify mec2 fw check

Check if mec2 fw exists rather than checking asic types.
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e1ad2d53
...@@ -1340,8 +1340,7 @@ static int amdgpu_debugfs_firmware_info(struct seq_file *m, void *data) ...@@ -1340,8 +1340,7 @@ static int amdgpu_debugfs_firmware_info(struct seq_file *m, void *data)
fw_info.feature, fw_info.ver); fw_info.feature, fw_info.ver);
/* MEC2 */ /* MEC2 */
if (adev->asic_type == CHIP_KAVERI || if (adev->gfx.mec2_fw) {
(adev->asic_type > CHIP_TOPAZ && adev->asic_type != CHIP_STONEY)) {
query_fw.index = 1; query_fw.index = 1;
ret = amdgpu_firmware_info(&fw_info, &query_fw, adev); ret = amdgpu_firmware_info(&fw_info, &query_fw, adev);
if (ret) if (ret)
......
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