Skip to content
Commit 0a584655 authored by Francisco Munoz's avatar Francisco Munoz Committed by Lorenzo Pieralisi
Browse files

PCI: vmd: Fix secondary bus reset for Intel bridges

The reset was never applied in the current implementation because Intel
Bridges owned by VMD are parentless. Internally, pci_reset_bus() applies
a reset to the parent of the PCI device supplied as argument, but in this
case it failed because there wasn't a parent.

In more detail, this change allows the VMD driver to enumerate NVMe devices
in pass-through configurations when guest reboots are performed. There was
an attempted to fix this, but later we discovered that the code inside
pci_reset_bus() wasn’t triggering secondary bus resets. Therefore, we
updated the parameters passed to it, and now NVMe SSDs attached to VMD
bridges are properly enumerated in VT-d pass-through scenarios.

Link: https://lore.kernel.org/r/20221206001637.4744-1-francisco.munoz.ruiz@linux.intel.com


Fixes: 6aab5622 ("PCI: vmd: Clean up domain before enumeration")
Signed-off-by: default avatarFrancisco Munoz <francisco.munoz.ruiz@linux.intel.com>
Signed-off-by: default avatarLorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: default avatarNirmal Patel <nirmal.patel@linux.intel.com>
Reviewed-by: default avatarJonathan Derrick <jonathan.derrick@linux.dev>
parent d899aa66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment