From patchwork Sat Aug 7 19:03:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 12424489 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,MIME_NO_TEXT, SPF_HELO_NONE,SPF_PASS,T_TVD_MIME_NO_HEADERS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48899C4338F for ; Sat, 7 Aug 2021 19:03:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 259B660F02 for ; Sat, 7 Aug 2021 19:03:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229578AbhHGTDw (ORCPT ); Sat, 7 Aug 2021 15:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbhHGTDv (ORCPT ); Sat, 7 Aug 2021 15:03:51 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB551C0613CF for ; Sat, 7 Aug 2021 12:03:33 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id q2so11732934plr.11 for ; Sat, 07 Aug 2021 12:03:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=Iol/a/WNROe1t65oEHNwqmyVLxRjYBFZnRU5ECwLA1Y=; b=EDDYfZ1rIExcMwPA6Sc0OHbRsHvEAGxwjjTmV8Q6eKdCoNrnc3urPNy1AbwbAnaj8C Lq0/Pgt0dSa3XEc6Rp77LFeRvAINH6gzixSlxPTK5uwaNZLYO0qpXyUvcPbyYzTIVjkn Q1lQ0kRrmnkyt/Q3I5XuL+KgKu7MMrJxiqxtA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Iol/a/WNROe1t65oEHNwqmyVLxRjYBFZnRU5ECwLA1Y=; b=km81w3m1BKxOlCW0PktwQRWL6vZbQqpZzdoutnRSP0T8/B7qmkafHKh9FYa+JOs1XW 0yI/NjpmiegLnqpn2vBjYv1rKbQ5KAsfjVKa8ORbnlZsr5I5w6HGyp2KO8O/8pDn/ygq OnlPO6xz4cUD3Lxtcmsk8Chc0ij1s7TfUgmSrtJ91ymhbWHQ0uQFAiP5xhYbaVBKLUto Fh96EKBZz7deU3GZH36i47X3rU48LVpO89Ci5BAKvIoaI8In4z6BsOz5ptakSlIUXLaY 8mXOySDL8Ec1yBOC7Jhanr89KKlZO/rT7B1IR/q49A0DxC96YJ4qtO7QwMb/d+pB0dWt Pl9g== X-Gm-Message-State: AOAM532T4522qtHRTVdHVm7XVFVbG/F3ZUePr+ijbHvZynicuMnThzzY nYJxseu9e1ZmgLTQXQ7L4OF0fQ== X-Google-Smtp-Source: ABdhPJzxMev7/qyfP707odxkRCp9g1pqpnALMjr+UTXViB4VsTb2Ph/YCTnYVSIJ9lz2mLdCtJmoVg== X-Received: by 2002:a17:903:4052:b029:12c:3745:4788 with SMTP id n18-20020a1709034052b029012c37454788mr13862266pla.7.1628363012428; Sat, 07 Aug 2021 12:03:32 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id o18sm3378006pjp.1.2021.08.07.12.03.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Aug 2021 12:03:31 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com, richardcochran@gmail.com, pavan.chebbi@broadcom.com Subject: [PATCH net 0/3] bnxt_en: PTP fixes Date: Sat, 7 Aug 2021 15:03:12 -0400 Message-Id: <1628362995-7938-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 includes 2 fixes for the PTP feature. Update to the new firmware interface so that the driver can pass the PTP sequence number header offset of TX packets to the firmware. This is needed for all PTP packet types (v1, v2, with or without VLAN) to work. The 2nd fix is to use a different register window to read the PHC to avoid conflict with an older Broadcom tool. Michael Chan (3): bnxt_en: Update firmware interface to 1.10.2.52 bnxt_en: Update firmware call to retrieve TX PTP timestamp bnxt_en: Use register window 6 instead of 5 to read the PHC drivers/net/ethernet/broadcom/bnxt/bnxt.c | 5 +- drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 76 ++++++++++++++----- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 4 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h | 10 ++- 4 files changed, 68 insertions(+), 27 deletions(-) Acked-by: Richard Cochran