]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix rejecting Tahiti GPUs
authorLukas Fink <lukas.fink1@gmail.com>
Fri, 14 Jan 2022 06:51:41 +0000 (07:51 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jan 2022 23:06:44 +0000 (18:06 -0500)
commit80a3ed07fbd7d5f6082c52676f8bac5f0838d365
tree6486132808f6ac4e3651f0e30a0841f744939f5e
parenteca99a24b8f1c8f0f42e5a3994999a5835071f9b
drm/amdgpu: Fix rejecting Tahiti GPUs

80b51a1b5e9c ("drm/amdgpu: bind to any 0x1002 PCI diplay class device") added
generic bindings to amdgpu so that that it binds to all display class devices
with VID 0x1002 and then rejects those in amdgpu_pci_probe.

Unfortunately it reuses a driver_data value of 0 to detect those new bindings,
which is already used to denote CHIP_TAHITI ASICs.

The driver_data value given to those new bindings was changed in
dd0761fd24ea1 ("drm/amdgpu: set CHIP_IP_DISCOVERY as the asic type by default")
to CHIP_IP_DISCOVERY (=36), but it seems that the check in amdgpu_pci_probe
was forgotten to be changed. Therefore, it still rejects Tahiti GPUs.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1860
Fixes: 80b51a1b5e9c ("drm/amdgpu: bind to any 0x1002 PCI diplay class device")
Cc: stable@vger.kernel.org
Signed-off-by: Lukas Fink <lukas.fink1@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c