Commit d9005a8
Myron Stowe
PCI: vmd: Fix secondary bus reset for Intel bridges
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2136299
Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/commit/?h=pci/vmd&id=0a584655ef89541dae4d48d2c523b1480ae80284
Note: This patch is in one of Lorenzo's topic branches which is
targeting upstream's v6.2 merge window -
https://lore.kernel.org/linux-pci/167032357239.59401.2641037185044333102.b4-ty@kernel.org/
https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/log/?h=pci/vmd
commit 0a58465 (lorenzo/pci/vmd)
Author: Francisco Munoz <francisco.munoz.ruiz@linux.intel.com>
Date: Mon Dec 5 17:16:37 2022 -0700
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: 6aab562 ("PCI: vmd: Clean up domain before enumeration")
Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@linux.intel.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Nirmal Patel <nirmal.patel@linux.intel.com>
Reviewed-by: Jonathan Derrick <jonathan.derrick@linux.dev>
Signed-off-by: Myron Stowe <mstowe@redhat.com>1 parent cf65b61 commit d9005a8
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
| |||
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
862 | | - | |
863 | | - | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
864 | 882 | | |
865 | 883 | | |
866 | 884 | | |
| |||
0 commit comments