[bionic:linux-azure-4.15][PATCH 1/5] Revert "Revert "PCI: hv: Make sure the bus domain is really unique""
Marcelo Henrique Cerri
marcelo.cerri at canonical.com
Sun Apr 26 20:42:25 UTC 2020
BugLink: https://bugs.launchpad.net/bugs/1867220
This reverts commit f784c428da66621df751e6856be17f85e8b19b0e.
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
---
drivers/pci/host/pci-hyperv.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c
index 59b5a07019bc..f14eb17972b6 100644
--- a/drivers/pci/host/pci-hyperv.c
+++ b/drivers/pci/host/pci-hyperv.c
@@ -1657,19 +1657,6 @@ static struct hv_pci_dev *new_pcichild_device(struct hv_pcibus_device *hbus,
get_pcichild(hpdev, hv_pcidev_ref_childlist);
spin_lock_irqsave(&hbus->device_list_lock, flags);
- /*
- * When a device is being added to the bus, we set the PCI domain
- * number to be the device serial number, which is non-zero and
- * unique on the same VM. The serial numbers start with 1, and
- * increase by 1 for each device. So device names including this
- * can have shorter names than based on the bus instance UUID.
- * Only the first device serial number is used for domain, so the
- * domain number will not change after the first device is added.
- * The lower 16 bits of the serial number is used, otherwise some
- * drivers may not be able to handle it.
- */
- if (list_empty(&hbus->children))
- hbus->sysdata.domain = desc->ser & 0xFFFF;
list_add_tail(&hpdev->list_entry, &hbus->children);
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
return hpdev;
--
2.25.1
More information about the kernel-team
mailing list