[PATCH] drm/amdgpu: skip fb size query for navi10 previous asic
Zhang, Hawking
Hawking.Zhang at amd.com
Fri Jun 5 14:04:47 UTC 2020
[AMD Public Use]
Does it mean there is legacy VBIOS that even doesn't have firmwareinfo table and introduce crash?
I think we expect the atomfirmware interface return 0 for ASICs prior to Sienna Cichlid
Regards,
Hawking
-----Original Message-----
From: Gao, Likun <Likun.Gao at amd.com>
Sent: Friday, June 5, 2020 21:04
To: amd-gfx at lists.freedesktop.org
Cc: Zhang, Hawking <Hawking.Zhang at amd.com>; Xu, Feifei <Feifei.Xu at amd.com>; Gao, Likun <Likun.Gao at amd.com>
Subject: [PATCH] drm/amdgpu: skip fb size query for navi10 previous asic
From: Likun Gao <Likun.Gao at amd.com>
Skip for reserved fb size query for the ASIC older than navi10, as those asic do not need for TMR region reserve and may get an invalid value.
Signed-off-by: Likun Gao <Likun.Gao at amd.com>
Change-Id: Idbc57805b8070f27ba6c3cf22f1892d6dab92f06
---
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
index a9adccfda4c0..e2a64ae7bcaf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
@@ -603,6 +603,9 @@ int amdgpu_atomfirmware_get_fw_reserved_fb_size(struct amdgpu_device *adev)
u8 frev, crev;
int fw_reserved_fb_size;
+ if (adev->asic_type < CHIP_NAVI10)
+ return 0;
+
index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
firmwareinfo);
--
2.25.1
More information about the amd-gfx
mailing list