mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 12:34:41 +08:00
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>
This commit is contained in:
parent
10cfafd62a
commit
4d1f9fb721
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user