[bionic:linux-azure-4.15][PATCH 2/5] Revert "PCI: hv: Use bytes 4 and 5 from instance ID as the PCI domain numbers"

Marcelo Henrique Cerri marcelo.cerri at canonical.com
Sun Apr 26 20:42:26 UTC 2020


BugLink: https://bugs.launchpad.net/bugs/1867220

This reverts commit ee4ee1df60eacc03ea478a7155269a3836ec4324.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
---
 drivers/pci/host/pci-hyperv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c
index f14eb17972b6..d7df3aa1860e 100644
--- a/drivers/pci/host/pci-hyperv.c
+++ b/drivers/pci/host/pci-hyperv.c
@@ -2588,8 +2588,8 @@ static int hv_pci_probe(struct hv_device *hdev,
 	 * between domains derived from these instance IDs in the same
 	 * VM.
 	 */
-	hbus->sysdata.domain = hdev->dev_instance.b[4] |
-			       hdev->dev_instance.b[5] << 8;
+	hbus->sysdata.domain = hdev->dev_instance.b[9] |
+			       hdev->dev_instance.b[8] << 8;
 
 	hbus->hdev = hdev;
 	atomic_inc(&hbus->remove_lock);
-- 
2.25.1




More information about the kernel-team mailing list