drm/amd/display: Pass PCI deviceid into DC
authorCharlene Liu <Charlene.Liu@amd.com>
Mon, 20 Sep 2021 18:30:02 +0000 (14:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Sep 2021 18:39:54 +0000 (14:39 -0400)
[why]
pci deviceid not passed to dal dc, without proper break,
dcn2.x falls into dcn3.x code path

[how]
pass in pci deviceid, and break once dal_version initialized.

Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index e6a68337d42fb06bdb4bd703bc4e10dce0aefa85..1ea31dcc7a8b0af245272277c535a7a701edf0f8 100644 (file)
@@ -1115,6 +1115,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 
        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.chip_id = adev->pdev->device;
 
        init_data.asic_id.vram_width = adev->gmc.vram_width;
        /* TODO: initialize init_data.asic_id.vram_type here!!!! */