diff options
author | 2017-09-15 16:33:38 -0400 | |
---|---|---|
committer | 2017-09-26 15:14:16 -0400 | |
commit | 4d1f9fb721fdfa7789515167d1bd2e42cf87e12e (patch) | |
tree | 9ceb24239cde1404be87d16bcf7777b73951097a /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |
parent | drm/amd/amdgpu: Partial revert of iova debugfs (diff) | |
download | linux-4d1f9fb721fdfa7789515167d1bd2e42cf87e12e.tar.gz linux-4d1f9fb721fdfa7789515167d1bd2e42cf87e12e.tar.bz2 linux-4d1f9fb721fdfa7789515167d1bd2e42cf87e12e.zip |
drm/amdgpu: add cgs query info of pci bus devfn
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index e52192051507..383204e911a4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c @@ -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; } |