From patchwork Wed Jan 26 04:40:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 12724579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 201F4C28CF5 for ; Wed, 26 Jan 2022 04:40:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232115AbiAZEkf (ORCPT ); Tue, 25 Jan 2022 23:40:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbiAZEkd (ORCPT ); Tue, 25 Jan 2022 23:40:33 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53C7AC06161C for ; Tue, 25 Jan 2022 20:40:33 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id d15-20020a17090a110f00b001b4e7d27474so5044147pja.2 for ; Tue, 25 Jan 2022 20:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=BD0k4aVXSv6cE4nNp1OJgEAaN4ppPJa2hgKM7lNMnY8=; b=f6uHZDEOumjQw1E/k88tKSiDKzfVS8H/m6coS7XFidm78W9k7aXqHgVrDVauTELkgQ f8Xo0eWvyfrUW6ajRhwfRnJeRz2Ji0WJuru2Pjje0T/BoaTkzULwHJEISMSxzUglukjJ IEluTROBLwqSLXTFO6jETFr7/DefAiecbSfdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BD0k4aVXSv6cE4nNp1OJgEAaN4ppPJa2hgKM7lNMnY8=; b=vNoLRRzdMpLNWiTTGLaRrV3L1cdN0VHx3pJZ6HJgdoNlRxwDyzGshBA+Gc4TV+cBPJ UB51QgPFxZFLbVEwNUALShoPSjf/SOVbOTd6B2nacQvAxskUVXJ9yXfZMRETldD/h+h0 laCTYngsKS+6PgqNj/R8OIq9NTrhlUVqlJ/h/wlYtGl6XaWshssddXVu8XfxlcQDefYO jmRuNnSYDn7qmmROOFADPxTcagQ5alil6AisXW4kR8ywz6+SwOKZt7LY92pFZLyLo0Bf fpYaOGu6PIRkQ67qOqvC8MofvuIMRuKHKI3zsTqqHUSGoBsoxAMp+vDzBv7DJkJtkuh5 osNA== X-Gm-Message-State: AOAM533IfMGC01QahQkHlo0v/sq4qAEU3jftddbSVEIheS9dc09aLNB1 csc5fR3LZqMKir0ZVviQK8phxg== X-Google-Smtp-Source: ABdhPJzK4n1bzaZlgraFN6KMmz7ocTWnASSzY/pWwzdVxydDCOCZx53aGlDva6NGdeTRSyKOHQv2oA== X-Received: by 2002:a17:90b:4d0a:: with SMTP id mw10mr6970134pjb.122.1643172032484; Tue, 25 Jan 2022 20:40:32 -0800 (PST) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id s12sm559957pfk.65.2022.01.25.20.40.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 20:40:32 -0800 (PST) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com, pavan.chebbi@broadcom.com Subject: [PATCH net-next 0/5] bnxt_en: Add RTC mode for PTP Date: Tue, 25 Jan 2022 23:40:08 -0500 Message-Id: <1643172013-31729-1-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This series adds Real Time Clock (RTC) mode for PTP timestamping. In RTC mode, the 64-bit time value is programmed into the NIC's PTP hardware clock (PHC). Prior to this, the PHC is running as a free counter. For example, in multi-function environment, we need to run PTP in RTC mode. Michael Chan (1): bnxt_en: Update firmware interface to 1.10.2.73 Pavan Chebbi (4): bnxt_en: PTP: Refactor PTP initialization functions bnxt_en: Add driver support to use Real Time Counter for PTP bnxt_en: Implement .adjtime() for PTP RTC mode bnxt_en: Handle async event when the PHC is updated in RTC mode drivers/net/ethernet/broadcom/bnxt/bnxt.c | 36 +- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 + drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 499 ++++++++++++++++-- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 152 +++++- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h | 5 +- 5 files changed, 635 insertions(+), 58 deletions(-)