]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm/amdgpu: add cgs query info of pci bus devfn
authorEric Huang <JinHuiEric.Huang@amd.com>
Fri, 15 Sep 2017 20:33:38 +0000 (16:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:16 +0000 (15:14 -0400)
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/include/cgs_common.h

index e5219205150760f786d4cc297d290a9d06546109..383204e911a4d73781ac7efc43fb930b3b445979 100644 (file)
@@ -875,6 +875,9 @@ static int amdgpu_cgs_query_system_info(struct cgs_device *cgs_device,
        case CGS_SYSTEM_INFO_PCIE_SUB_SYS_VENDOR_ID:
                sys_info->value = adev->pdev->subsystem_vendor;
                break;
+       case CGS_SYSTEM_INFO_PCIE_BUS_DEVFN:
+               sys_info->value = adev->pdev->devfn;
+               break;
        default:
                return -ENODEV;
        }
index 2c1f13e04726ebbb778f3cbeb2c673663b740a68..030b14649c4ee649d326a47440b321be27bb102f 100644 (file)
@@ -100,6 +100,7 @@ enum cgs_system_info_id {
        CGS_SYSTEM_INFO_GFX_SE_INFO,
        CGS_SYSTEM_INFO_PCIE_SUB_SYS_ID,
        CGS_SYSTEM_INFO_PCIE_SUB_SYS_VENDOR_ID,
+       CGS_SYSTEM_INFO_PCIE_BUS_DEVFN,
        CGS_SYSTEM_INFO_ID_MAXIMUM,
 };