summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-10-07 03:39:36 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-10-07 03:39:36 +0000
commite1a69538f46dd835a60dc7778a660f9016a84442 (patch)
tree41e8a3eed022fa756bf054ef927384af030564ed /sys/dev/pci
parentcf58e451e7125107adc78a5408df10f5f93d388e (diff)
drm/amd/display: Pass PCI deviceid into DC
From Charlene Liu c331fad63b6d527193ae8b7c056b2f10fef53c81 in linux 5.10.y/5.10.71 d942856865c733ff60450de9691af796ad71d7bc in mainline linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index b77b2df2790..5dff58904a4 100644
--- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -953,6 +953,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!!!! */