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 519E2A04B3; Mon, 16 Dec 2019 16:03:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 902F41BFC0; Mon, 16 Dec 2019 16:03:05 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 3829D1BFBD for ; Mon, 16 Dec 2019 16:03:04 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBGF0jFQ005188 for ; Mon, 16 Dec 2019 07:03:03 -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=jHOE1fTBBtrB2FyNqKXsYvQd8Hwv/eKdWmQe7vmdJJE=; b=F8BVjr+OZCKx7AFY1/u8Zmu+ks8TV2VEPTl9WNO9rKgJTZIViVxouOqTzJd7ntySAOCz eCXhloA5DuXB34zkk0TxYKQ+1lmICkdCGTf+WtDOKkMWxFQ9mhenNC+HLKAa3iabNCw5 iNrzcrmmBZQfNa2nxRr9cEpohjeuAzVjhdHoA+oHy0303FcfhUO7lRZgnkbgKKnUPVXP 2jyjNWAmJ2SjJAp2QDjq0vKBHpgQE+vdOjSxRfGD+RnOtXhDcgxd2MVIgTXYujNYRyNh Z2cxC8Qw1Q949jNeitejG36JgnreqQ21d2xDq3csDO2pCyh6/ygeFW5V4iyvOVz2sIfi 7w== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2wvwyv6u3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 16 Dec 2019 07:03:03 -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; Mon, 16 Dec 2019 07:03:01 -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 07:03:01 -0800 Received: from localhost.localdomain (unknown [10.28.34.200]) by maili.marvell.com (Postfix) with ESMTP id 2D2043F7043; Mon, 16 Dec 2019 07:02:59 -0800 (PST) From: Sunil Kumar Kori To: Jerin Jacob , Nithin Dabilpuram , Vamsi Attunuru CC: , Sunil Kumar Kori Date: Mon, 16 Dec 2019 20:32:53 +0530 Message-ID: <20191216150253.22835-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..cc341aac3 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; /* Milli 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