From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 582FAA04F0; Mon, 13 Jan 2020 06:03:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E8EB11D535; Mon, 13 Jan 2020 06:03:14 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1D4361D534 for ; Mon, 13 Jan 2020 06:03:14 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00D50NSH030700 for ; Sun, 12 Jan 2020 21:03:13 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=tsdmPGVCosqwdW5s9OVfKfcN1M+FHVnAIKA2aGH25mQ=; b=vP9FIHDp5k4jrijeYN8LaGh874gBBZgwUg4eMFCKsctvEwtuJAFsxQv5jEJZWGh4+nlE JP3FHGZtDKjauLL+vp8MfPN4RVT5tOKwxfpYOjcLrhjMsXEOVF3EhCi8TK6bo6MQ5Z6p MN5ZPXEfc1ljQo61AiAibzigPmaSm0DXAmV1khWZSvKOkFkFa6xdeMCVo2bNPIiHvkOs VHp0vCHoK/SjATorIYWzzrCq4i8+Vsn9gcaYKEIZ8ilCcwwt82uyalXDSRfOGmO2resK bix9cc/fwEbpDM8eI3Zs/ijLWRrGBpV+6HcyTHd8oX+60Dn/SvlELo3e/0w2hGKsgcwF sw== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2xfert48f9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 12 Jan 2020 21:03:13 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 12 Jan 2020 21:03:11 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 12 Jan 2020 21:03:11 -0800 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id A1D413F703F; Sun, 12 Jan 2020 21:03:09 -0800 (PST) From: Nithin Dabilpuram To: Jerin Jacob , Nithin Dabilpuram , Vamsi Attunuru , "Kiran Kumar K" CC: Date: Mon, 13 Jan 2020 10:33:02 +0530 Message-ID: <20200113050303.3511-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-13_01:2020-01-13, 2020-01-12 signatures=0 Subject: [dpdk-dev] [PATCH] common/octeotx2: add support for C0 silicon version X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Avoid using PCI subsystem device id for SoC revision identification and just use PCI revision id to support C0 silicon. This patch also reduces SQB threshold to 70% to have sufficient buffer before we overflow SQ. Signed-off-by: Nithin Dabilpuram --- drivers/common/octeontx2/otx2_common.h | 3 --- drivers/common/octeontx2/otx2_dev.h | 6 +----- drivers/net/octeontx2/otx2_ethdev.h | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/common/octeontx2/otx2_common.h b/drivers/common/octeontx2/otx2_common.h index f62c45d..c64d373 100644 --- a/drivers/common/octeontx2/otx2_common.h +++ b/drivers/common/octeontx2/otx2_common.h @@ -124,9 +124,6 @@ extern int otx2_logtype_dpi; #define PCI_DEVID_OCTEONTX2_RVU_SDP_PF 0xA0f6 #define PCI_DEVID_OCTEONTX2_RVU_SDP_VF 0xA0f7 -/* Subsystem Device ID */ -#define PCI_SUBSYS_DEVID_96XX_95XX 0xB200 - /* * REVID for RVU PCIe devices. * Bits 0..1: minor pass diff --git a/drivers/common/octeontx2/otx2_dev.h b/drivers/common/octeontx2/otx2_dev.h index 7d9839c..0b0a949 100644 --- a/drivers/common/octeontx2/otx2_dev.h +++ b/drivers/common/octeontx2/otx2_dev.h @@ -103,11 +103,7 @@ otx2_dev_init(struct rte_pci_device *pci_dev, void *otx2_dev) return rc; } - if (pci_dev->id.subsystem_device_id == PCI_SUBSYS_DEVID_96XX_95XX) - dev->hwcap = rev_id; - else - dev->hwcap = 0; - + dev->hwcap = rev_id; return otx2_dev_priv_init(pci_dev, otx2_dev); } diff --git a/drivers/net/octeontx2/otx2_ethdev.h b/drivers/net/octeontx2/otx2_ethdev.h index 987e760..7f1d0f0 100644 --- a/drivers/net/octeontx2/otx2_ethdev.h +++ b/drivers/net/octeontx2/otx2_ethdev.h @@ -79,7 +79,7 @@ #define NIX_RX_NB_SEG_MAX 6 #define NIX_CQ_ENTRY_SZ 128 #define NIX_CQ_ALIGN 512 -#define NIX_SQB_LOWER_THRESH 90 +#define NIX_SQB_LOWER_THRESH 70 #define LMT_SLOT_MASK 0x7f #define NIX_RX_DEFAULT_RING_SZ 4096 -- 2.8.4