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 E592BA04B3; Mon, 16 Dec 2019 15:55:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12FB41BFC0; Mon, 16 Dec 2019 15:55:23 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 974EF1BFBD for ; Mon, 16 Dec 2019 15:55:21 +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 xBGEh3V1015410 for ; Mon, 16 Dec 2019 06:55:20 -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=D2xNALQhta5IAhZRGOJ1NPWzNxF5l6/WvQbl3aBiUo8=; b=EuOr0UWyET3AuLIR3BFSTbiU3jSBqWTT6QyWJQl6AUm1kUqLbJlQGCSrexHGA5k5KV4q +UUsciVkyE28LmEXa5kAAs+ZQn64IuITEq0tlsWal+b3KsARoyaAkulOLjeRcWLYhAju M8r0G3tcuCxZcP6Ktx2MD8BZ+7tgS2ReHPZbb2FeZIM2szjyoh/FpAYRwn9dM381CdtQ mZW0cvG/AWTX/UM9s8YrQFyh6UHNJQf+vb8KwQDBCNHkK/8N+9YXyuC2+cp8GfAq+FoS pURAc5R4iqc0lNgWLNZNSU9HPsGQep7GeDTr8QlUgEOYmaLinjy5ASfn6XupaHUvKoss yQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2ww04tpbex-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 16 Dec 2019 06:55:20 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 Dec 2019 06:55:19 -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; Mon, 16 Dec 2019 06:55:19 -0800 Received: from localhost.localdomain (unknown [10.28.34.200]) by maili.marvell.com (Postfix) with ESMTP id D4A633F704D; Mon, 16 Dec 2019 06:55:16 -0800 (PST) From: Sunil Kumar Kori To: Jerin Jacob , Nithin Dabilpuram , Vamsi Attunuru CC: , Sunil Kumar Kori Date: Mon, 16 Dec 2019 20:25:09 +0530 Message-ID: <20191216145509.22644-1-skori@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-16_05:2019-12-16,2019-12-16 signatures=0 Subject: [dpdk-dev] [PATCH] common/octeontx2: reduce wait time for mbox messages 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" After each mbox send operation, context waits for minimum 1ms to get corresponding response although response can come earlier. So reducing wait time to lower granularity. Signed-off-by: Sunil Kumar Kori --- drivers/common/octeontx2/otx2_mbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/common/octeontx2/otx2_mbox.c b/drivers/common/octeontx2/otx2_mbox.c index c359bf42f..7e1f751f4 100644 --- a/drivers/common/octeontx2/otx2_mbox.c +++ b/drivers/common/octeontx2/otx2_mbox.c @@ -278,8 +278,9 @@ mbox_wait(struct otx2_mbox *mbox, int devid, uint32_t rst_timo) volatile struct otx2_mbox_dev *mdev = &mbox->dev[devid]; uint32_t timeout = 0, sleep = 1; + rst_timo = rst_timo * 1000; /* Mili seconds to micro seconds */ while (mdev->num_msgs > mdev->msgs_acked) { - rte_delay_ms(sleep); + rte_delay_us(sleep); timeout += sleep; if (timeout >= rst_timo) { struct mbox_hdr *tx_hdr = -- 2.17.1