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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user