bus/pci: Fix PowerNV platform detection logic
Checks
Commit Message
Fix the IOMMU detection logic that looks for the "platform" field of
/proc/cpuinfo on POWER systems.
Fixes: 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")
Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
---
drivers/bus/pci/linux/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, Jun 15, 2021 at 7:21 PM David Christensen
<drc@linux.vnet.ibm.com> wrote:
>
> Fix the IOMMU detection logic that looks for the "platform" field of
> /proc/cpuinfo on POWER systems.
>
> Fixes: 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")
Cc: stable@dpdk.org
>
> Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Looking at http://patchwork.dpdk.org/project/dpdk/patch/20210623204355.74362-1-drc@linux.vnet.ibm.com/,
I understand it should be merged after this current patch.
Can you confirm?
On 6/24/21 6:51 AM, David Marchand wrote:
> On Tue, Jun 15, 2021 at 7:21 PM David Christensen
> <drc@linux.vnet.ibm.com> wrote:
>>
>> Fix the IOMMU detection logic that looks for the "platform" field of
>> /proc/cpuinfo on POWER systems.
>>
>> Fixes: 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")
> Cc: stable@dpdk.org
>
>>
>> Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
> Reviewed-by: David Marchand <david.marchand@redhat.com>
>
> Looking at http://patchwork.dpdk.org/project/dpdk/patch/20210623204355.74362-1-drc@linux.vnet.ibm.com/,
> I understand it should be merged after this current patch.
> Can you confirm?
Yes, that's correct.
Dave
On Thu, Jun 24, 2021 at 3:51 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> On Tue, Jun 15, 2021 at 7:21 PM David Christensen
> <drc@linux.vnet.ibm.com> wrote:
> >
> > Fix the IOMMU detection logic that looks for the "platform" field of
> > /proc/cpuinfo on POWER systems.
> >
> > Fixes: 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")
> Cc: stable@dpdk.org
>
> >
> > Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
> Reviewed-by: David Marchand <david.marchand@redhat.com>
Applied, thanks.
@@ -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) {