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 DA229A04FD; Tue, 14 Jan 2020 04:49:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5C1AA1C1FD; Tue, 14 Jan 2020 04:49:59 +0100 (CET) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id 18BB71C1ED for ; Tue, 14 Jan 2020 04:49:57 +0100 (CET) Received: by mail-io1-f65.google.com with SMTP id z193so12292761iof.1 for ; Mon, 13 Jan 2020 19:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fd80D/Gtj6zOXBu8V8C0edJIV9XRMntMUjKtt/K3vcg=; b=O8E8p4Bo3GpROBvfG4SBXLUIkZ8iodNMwy7tD/h+7e0+7Bdpxcnd5Vx+T/zCe1l6Ze 9QNnBSfg4nJZvfXHGlcDBlJIaCCoSf++xD6TuYX9x6wB1oXBsKTvxnZUBzMdLiZ7im09 suSdvpoSj8pD0aVk8UVqPt1ZYITVLUl0dXCyhy0WsKolGtgUOkyxGMGu58svyBrJXG3o uGkZ4JHngUof7Dlw+lAp3t7bJFmvJkkcXrFlNMg3oApplOUxBo4+BzYJ30L9RXw3B0Jx 66kVlB2aIywawedlevi8p29+wQX3LjkEVkB2lKlA+tyXkJgSAKQUJ9sy9Nf+8nMtp7Et s9/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fd80D/Gtj6zOXBu8V8C0edJIV9XRMntMUjKtt/K3vcg=; b=kq6eeP9mcIgRy7mjFdOTNuHAUcOQNTpQQG3O0fGZ6p888P4pMpGp14GtPE032KRGLw MFEb1zO8+PmvG7Z3PXSjHOIAdHu9c7cX4+OdnAryjFDPPB4G+QovjlnBLE59vIapuCPo upBxYXXeKKj9WWnyVQvBN2tl3pMeTT0aQE9SFqgdny8q8KWR1hCI7pTHmjo3W9AqpPFD 4nx06O+Johfty/GSW4MwIIFL//BTiAEfHH3v4Uaf1HkZYDCFgQs6NUQXSTnTG4nh86DQ iOhI8In6BNfVcxtODh+4cX68sIwnat9OkizqqUlthNVRe5RFLkNbzC0LuBmdrt0CyKQq jCEQ== X-Gm-Message-State: APjAAAVBznlVRsUfeD8Vk47R6nmLR/WdNxP3QiRIF85Cgk5ykLsvMqtn pcweqKypvnKrp/Xy1iH68/WXTc/9hJgGqBxcnA0= X-Google-Smtp-Source: APXvYqyM94BOcnSZHZst7+8p2CDV1UHDXxetr0HlcmzjitCht3JSJ4LPlo65cFF1aXOI9vALrTfb+3rF+7EtrdWs4Z4= X-Received: by 2002:a5e:8b44:: with SMTP id z4mr15344728iom.271.1578973796114; Mon, 13 Jan 2020 19:49:56 -0800 (PST) MIME-Version: 1.0 References: <20191216150253.22835-1-skori@marvell.com> In-Reply-To: <20191216150253.22835-1-skori@marvell.com> From: Jerin Jacob Date: Tue, 14 Jan 2020 09:19:40 +0530 Message-ID: To: Sunil Kumar Kori , Ferruh Yigit Cc: Jerin Jacob , Nithin Dabilpuram , Vamsi Attunuru , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Mon, Dec 16, 2019 at 8:33 PM Sunil Kumar Kori wrote: > > 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 Acked-by: Jerin Jacob Applied to dpdk-next-net-mrvl/master. Thanks > --- > 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 >