]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/display: fix pci revision id fetching
authorAly-Tawfik <altawfik@amd.com>
Tue, 25 Feb 2020 19:56:37 +0000 (14:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:50:57 +0000 (13:50 -0400)
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 48661b9bb2b89faa5e7cc28f1f60e23eaedbf150..f7ab9ae58a0601f2957fac2260a4e40f3c664200 100644 (file)
@@ -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;