drm/amdgpu: add the accelerator PCIe class
authorShiwu Zhang <shiwu.zhang@amd.com>
Tue, 23 May 2023 04:02:32 +0000 (12:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:48:57 +0000 (12:48 -0400)
commit9d65b1b4bcf3918164e17365eec169875eef8ee3
tree1541eab96a0b480ad94c3132deca87e94d68aae5
parent11b92df8a2f7f4605ccc764ce6ae4a72760674df
drm/amdgpu: add the accelerator PCIe class

Add the accelerator PCIe class and match the
class in amdgpu for 0x1002 devices of that class.

From PCI spec:
"PCI Code and ID Assignment, r1.9, sec 1, 1.19"

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com> # pci_ids.h
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/include/amd_shared.h
include/linux/pci_ids.h