Skip to content

Commit 2dc31ca

Browse files
Aly-Tawfikalexdeucher
authored andcommitted
drm/amdgpu/display: fix pci revision id fetching
Use the pci revision id rather than the asic silicon revision id. Reviewed-by: Feifei Xu <[email protected]> Signed-off-by: Aly-Tawfik <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 97f6a21 commit 2dc31ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
902902

903903
init_data.asic_id.chip_family = adev->family;
904904

905-
init_data.asic_id.pci_revision_id = adev->rev_id;
905+
init_data.asic_id.pci_revision_id = adev->pdev->revision;
906906
init_data.asic_id.hw_internal_rev = adev->external_rev_id;
907907

908908
init_data.asic_id.vram_width = adev->gmc.vram_width;

0 commit comments

Comments
 (0)