未验证 提交 e487b641 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!439 openeuler: pci: workaround multiple functions can be assigned to only one VM

Merge Pull Request from: @duanqiangwen 
 
Merged in olk-5.10, sync to 22.03-LTS

This PR is to workaround if multiple functions on a Beijing Wangxun PCl device belong to the same lOMMU group,
they can be directly assigned to only one VM as well, letting multiple functions
belong to different IOMMU group.

Issue:#I66W4Y:[openEuler-22.03-LTS][openEuler-22.03-LTS-SP1]Make Multiple functions On Beijing Wangxun PCIE NIC belong to different IOMMU group

Hardware List:
Netswift All Nic, PCI vendor ID 0x8088

Net-Swift Official Website:
https://www.net-swift.com 
 
Link:https://gitee.com/openeuler/kernel/pulls/439 

Reviewed-by: Jackie Liu <liuyun01@kylinos.cn> 
Reviewed-by: Zheng Zengkai <zhengzengkai@huawei.com> 
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> 
......@@ -65,11 +65,6 @@
#endif
/************ ngbe_register.h ************/
/* Vendor ID */
#ifndef PCI_VENDOR_ID_TRUSTNETIC
#define PCI_VENDOR_ID_TRUSTNETIC 0x8088
#endif
/* Device IDs */
/* copper */
#define NGBE_DEV_ID_EM_TEST 0x0000
......
......@@ -89,11 +89,6 @@
#endif
/************ txgbe_register.h ************/
/* Vendor ID */
#ifndef PCI_VENDOR_ID_TRUSTNETIC
#define PCI_VENDOR_ID_TRUSTNETIC 0x8088
#endif
/* Device IDs */
#define TXGBE_DEV_ID_SP1000 0x1001
#define TXGBE_DEV_ID_WX1820 0x2001
......
......@@ -4979,6 +4979,7 @@ static const struct pci_dev_acs_enabled {
/* because rootcomplex Vendor id is 0x17cd on phytium cpu */
{ 0x17cd, PCI_ANY_ID, pci_quirk_xgene_acs },
#endif
{ PCI_VENDOR_ID_TRUSTNETIC, PCI_ANY_ID, pci_quirk_mf_endpoint_acs },
{ 0 }
};
......
......@@ -3139,4 +3139,6 @@
#define PCI_VENDOR_ID_NCUBE 0x10ff
#define PCI_VENDOR_ID_TRUSTNETIC 0x8088
#endif /* _LINUX_PCI_IDS_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册