bus/pci: Fix PowerNV platform detection logic
PATCH 1/1 bus/pci: Fix PowerNV platform detection logic
Fix the IOMMU detection logic that looks for the "platform" field of /proc/cpuinfo on POWER systems.
--- drivers/bus/pci/linux/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/pci/linux/pci.c +1 -1
@@ -569,7 +569,7 @@ pci_device_iommu_support_va(__rte_unused const struct rte_pci_device *dev)/* Check for a PowerNV platform */ while (getline (&line, &len, fp) !=-1 ) { -if (strstr (line,"platform" ) !=NULL ) +if (strstr (line,"platform" ) ==NULL )continue ;if (strstr (line,"PowerNV" ) !=NULL ) {
Signature · 1 line
2.27.0
Quoted 5 lines · David Christensen
Fix the IOMMU detection logic that looks for the "platform" field of
/proc/cpuinfoon POWER systems.Fixes 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")
Quoted 2 lines
Signed-off-by David Christensen <[email protected]>
Looking at http://patchwork.dpdk.org/project/dpdk/patch/[email protected]/,
I understand it should be merged after this current patch.
Can you confirm?
Signature · 1 line
David Marchand
Quoted 10 lines · David Marchand
Quoted 5 lines · David Christensen
Fix the IOMMU detection logic that looks for the "platform" field of
/proc/cpuinfoon POWER systems.Fixes 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")Quoted 1 line
Quoted 6 lines
Quoted 1 line
Signed-off-by David Christensen <[email protected]>Reviewed-by David Marchand <[email protected]>Looking at http://patchwork.dpdk.org/project/dpdk/patch/[email protected]/,
I understand it should be merged after this current patch.
Can you confirm?
Yes, that's correct.
Dave
David Marchand
AppliedQuoted 7 lines · David Marchand
Quoted 4 lines · David Christensen
Fix the IOMMU detection logic that looks for the "platform" field of
/proc/cpuinfoon POWER systems.
Quoted 6 lines
Quoted 1 line
Fixes 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")Quoted 2 lines
Signed-off-by David Christensen <[email protected]>Reviewed-by David Marchand <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand