Message ID | CY1PR12MB02624BD9D5A28EDAF4B3E61FFED10@CY1PR12MB0262.namprd12.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index 31f31d4..da4fbac 100644 --- a/drivers/pci/iov.c +++ b/drivers/pci/iov.c @@ -388,7 +388,8 @@ static int sriov_init(struct pci_dev *dev, int pos) struct pci_dev *pdev; if (pci_pcie_type(dev) != PCI_EXP_TYPE_RC_END && - pci_pcie_type(dev) != PCI_EXP_TYPE_ENDPOINT) + pci_pcie_type(dev) != PCI_EXP_TYPE_ENDPOINT && + pci_pcie_type(dev) != PCI_EXP_TYPE_LEG_END) return -ENODEV; pci_read_config_word(dev, pos + PCI_SRIOV_CTRL, &ctrl);
Some AMD GPUs have hardware support for grapics SRIOV. If the GPU has a display output then the GPU needs to support Legacy VGA operation. If CLASS_CODE = VGA then the device should have a Port Type = Legacy EndPoint. Therefore in order to enable SRIOV on a GPU with a display output LEGACY_END_POINT is supported as a valid Port Type. Signed-off-by: Kelly Zytaruk <kelly.zytaruk@amd.com> --- drivers/pci/iov.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html