Skip to content

Commit

Permalink
drm/amdgpu/display: fix pci revision id fetching
Browse files Browse the repository at this point in the history
Use the pci revision id rather than the asic silicon revision id.

Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Aly-Tawfik <altawfik@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Aly-Tawfik authored and Alex Deucher committed Mar 9, 2020
1 parent 97f6a21 commit 2dc31ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)

init_data.asic_id.chip_family = adev->family;

init_data.asic_id.pci_revision_id = adev->rev_id;
init_data.asic_id.pci_revision_id = adev->pdev->revision;
init_data.asic_id.hw_internal_rev = adev->external_rev_id;

init_data.asic_id.vram_width = adev->gmc.vram_width;
Expand Down

0 comments on commit 2dc31ca

Please sign in to comment.