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 58E8EA0561; Thu, 18 Mar 2021 01:45:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BE1740698; Thu, 18 Mar 2021 01:45:52 +0100 (CET) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by mails.dpdk.org (Postfix) with ESMTP id 5425940683 for ; Thu, 18 Mar 2021 01:45:51 +0100 (CET) Received: by mail-qk1-f171.google.com with SMTP id l4so468822qkl.0 for ; Wed, 17 Mar 2021 17:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/I+5uf6oSNnUSeXGKtIV9ZRB0luunHn2/ePQDQ/N+s4=; b=GfKY4dA11x0kf84ff2mFRVMz49C/XnS8KkY9TGD+WT1CPiMBMhcjWr+D/iPqYB6QPz 9roN4D5fpfO3bI6VLDZOlpzRBuLESJ1dvGJdn/0jIIcemXlKnXm8PhFeUkYaLEwhyASf /cl8n/qVsqjKeHB+vcvNkg6ZpUyon/nPam+08= 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=/I+5uf6oSNnUSeXGKtIV9ZRB0luunHn2/ePQDQ/N+s4=; b=Bpx45sHkIEfcq8TZV7NcBD27gxl5bwbV/Z2FGtCdmmYfifaVR2aCFp+J2hhX/7zfDc itVlQcRUxOm8FwsS9PY/tnWMXJh3L6v3MiMnoPknajqc0yY3rBnlRe79aZMjLAW03L0R XNJGDXIfEKcBFWsgKO0suk0zG+r8Q7Y+XB+NvE0a9SEsVoYdBZBCuPVmJQEyEPxST/Vz 8LFxesWF13+OibsjjnnPLYIZmVEB8IBRGxLDaYzoRAJYenM1qipo+ynTOQ+EFxiEzOi1 z6F9THOP/qKZhLLfQU2GZRvu2SvhcgZJJNf6AUi/Wjbut5lSIKFV6uYxkWSvsx0BF7Fo GkWg== X-Gm-Message-State: AOAM532ogTeB6wMHgy8qQg7nBmVEk1e1wHl/qzUIw3ouhagJTC2ycgBf jOLRLyGd9EKOEUvzH5AUEY58VbtX4MXD2nCzbmEPWg== X-Google-Smtp-Source: ABdhPJxbuO446q9yupq9fRoy1kBGbEvD45D9YZlSJzhmX3r2f2LFcs6Vrv97eEjNQ6xtJsAqqYuk9SQ4B/SssoxuQOk= X-Received: by 2002:a37:7985:: with SMTP id u127mr2016266qkc.333.1616028350686; Wed, 17 Mar 2021 17:45:50 -0700 (PDT) MIME-Version: 1.0 References: <20210316054048.29026-1-somnath.kotur@broadcom.com> In-Reply-To: <20210316054048.29026-1-somnath.kotur@broadcom.com> From: Ajit Khaparde Date: Wed, 17 Mar 2021 17:45:34 -0700 Message-ID: To: Somnath Kotur Cc: dpdk-dev , Ferruh Yigit , dpdk stable , Kalesh Anakkur Purayil , Lance Richardson Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000ce9f2c05bdc4eb1e" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH] net/bnxt: fix Tx timestamp init 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" --000000000000ce9f2c05bdc4eb1e Content-Type: text/plain; charset="UTF-8" On Mon, Mar 15, 2021 at 10:41 PM Somnath Kotur wrote: > > Fix to read the sequence ID register to get Tx timestamp. > Reading the sequence ID register is necessary for the HW FIFO to > advance and thereby get the correct value of the timestamp on Tx side. > This patch fixes that. > > Fixes: b11cceb83a3 ("net/bnxt: support timesync") > Cc: stable@dpdk.org > > Reviewed-by: Kalesh Anakkur Purayil > Reviewed-by: Lance Richardson > Reviewed-by: Ajit Kumar Khaparde > Signed-off-by: Somnath Kotur Patch applied to dpdk-next-net-brcm. > --- > drivers/net/bnxt/bnxt_ethdev.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c > index 6cc6af0a66..3cda3bd4a5 100644 > --- a/drivers/net/bnxt/bnxt_ethdev.c > +++ b/drivers/net/bnxt/bnxt_ethdev.c > @@ -3377,6 +3377,7 @@ static int bnxt_get_tx_ts(struct bnxt *bp, uint64_t *ts) > ptp->tx_mapped_regs[BNXT_PTP_TX_TS_L])); > *ts |= (uint64_t)rte_le_to_cpu_32(rte_read32((uint8_t *)bp->bar0 + > ptp->tx_mapped_regs[BNXT_PTP_TX_TS_H])) << 32; > + rte_read32((uint8_t *)bp->bar0 + ptp->tx_mapped_regs[BNXT_PTP_TX_SEQ]); > > return 0; > } > -- > 2.28.0.497.g54e85e7 > --000000000000ce9f2c05bdc4eb1e--