From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B8463A0C48; Tue, 15 Jun 2021 19:20:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 47C8E4067A; Tue, 15 Jun 2021 19:20:47 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id E42E440140 for ; Tue, 15 Jun 2021 19:20:45 +0200 (CEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15FHCl9S176405 for ; Tue, 15 Jun 2021 13:20:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=/9pgi2H5ErUW8rdKJ2h3J0hCHzWx6HdDzHXVXiRChAk=; b=GEi8XCzwixNb7TCSo8r797WnXMppPwYBSCwAGJeENa+qfpQnpgNnqBqFyO8gkyTH92Y2 zMQt1tTSC10DHpM/rzxfLgOexxnJOddNDli69VY+JX5d3yMrZ9MpgVrSl7kD20PBkK30 PEptyZL4FkWkN+D9pcOJ0f6RbwL+mNy2LybeXCkfk3It4l5K0D9kkMvXhdYUBr1tkp2E 0wxQXSpWuLYUeIP9RhWns78beHlfDzWEIpMqH42OxJ8GnIm8WoDWB0zSFAsCQ/zBhGzl UXqjCoshAAZA2Bcbk9uP81lTivOaPl98u4lxt/DDvKKiCx3GLHQMacpMlVZW3A2YpOWT 6A== Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 396ytshecg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 15 Jun 2021 13:20:44 -0400 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 15FHHssG006148 for ; Tue, 15 Jun 2021 17:20:43 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma01dal.us.ibm.com with ESMTP id 394mja85m5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 15 Jun 2021 17:20:43 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 15FHKg1b12321110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Jun 2021 17:20:42 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 77A327805F; Tue, 15 Jun 2021 17:20:42 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3696E78063; Tue, 15 Jun 2021 17:20:42 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.224.51]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 15 Jun 2021 17:20:42 +0000 (GMT) From: David Christensen To: dev@dpdk.org Cc: David Christensen Date: Tue, 15 Jun 2021 10:20:27 -0700 Message-Id: <20210615172027.1496115-1-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: fmbFAnzTiWSnB_tLqVf31RI_IrGv7V2X X-Proofpoint-ORIG-GUID: fmbFAnzTiWSnB_tLqVf31RI_IrGv7V2X X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-06-15_07:2021-06-15, 2021-06-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 clxscore=1015 impostorscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106150107 Subject: [dpdk-dev] [PATCH] bus/pci: Fix PowerNV platform detection logic X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- drivers/bus/pci/linux/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index 0dc99e9cb2..edfe430268 100644 --- a/drivers/bus/pci/linux/pci.c +++ b/drivers/bus/pci/linux/pci.c @@ -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) { -- 2.27.0