From patchwork Tue Mar 21 10:32:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Chebbi X-Patchwork-Id: 13182528 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 C5F6EC74A5B for ; Tue, 21 Mar 2023 10:33:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230284AbjCUKdq (ORCPT ); Tue, 21 Mar 2023 06:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbjCUKdp (ORCPT ); Tue, 21 Mar 2023 06:33:45 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DAC748E26 for ; Tue, 21 Mar 2023 03:33:14 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso15446202pjb.3 for ; Tue, 21 Mar 2023 03:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1679394793; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=s6+CWemLSsxGrj9ST2wQyks+aWcRYLwPx7y0USooJs4=; b=ERIY2rPiY2id0nRy/7yCNsg4jZnqG1gjSwmQ+p6UakNw1zzm7aN0vJIWJkroEvqIVr yqZyBsZdyS6/b4xYCcgDdFrJEum86dhlh+Gl6n3Mzlfy7wAHOEMKJddwMQjitMEj0GvT VcGe13gYu7VmHLzrt4knrJA4MFbEcg5TVutOU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679394793; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=s6+CWemLSsxGrj9ST2wQyks+aWcRYLwPx7y0USooJs4=; b=lmmmOe1W3uS37WZc9ht0ILzUdvAkFK4XcLp3mNThu/9fToUBS3ClQ7wK5HSO32bmJn DqQiHygqBvYBN2S9iIMbVhnM3VhhdgceKClJllI7762/wWYOWdQgL95BaVR+JX36e9RC bhIqQAKNDRuON6dIuBcEqPbZVWFy3Og3m4bxY2ri7hbYDqw7GE0/QEBrt61iShKkUinv kZdIuyCEQi164+hdUI5euuxM6UwPo456KqnFdXvHEcqR9tKbffDu045PI8ssvSVxrL9k k71rzulR4MxUhsyMELPZ1pBzh+0I0nCkV29YDeH+n2iL5VNddLljDcj4kyctCBmhygXv qlAg== X-Gm-Message-State: AO0yUKUUM3u10fEEsxX/OZ2wCq82eHh3moCAPphAspGONf5EpxLV7GKr wFBy9jozetgzwkae0DnbSdckcw== X-Google-Smtp-Source: AK7set92kGjvLb3kWShwQkcUkocu/UzNea9zlZOLTFMgSJgZZavy4xZGOMDuSASMapMWatIhY1PEPA== X-Received: by 2002:a05:6a20:66b0:b0:cc:a5d4:c31e with SMTP id o48-20020a056a2066b000b000cca5d4c31emr1616286pzh.10.1679394792847; Tue, 21 Mar 2023 03:33:12 -0700 (PDT) Received: from PC-MID-R740.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id t13-20020a62ea0d000000b005a87d636c70sm7888416pfh.130.2023.03.21.03.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 03:33:12 -0700 (PDT) From: Pavan Chebbi To: michael.chan@broadcom.com, kuba@kernel.org Cc: davem@davemloft.net, edumazet@google.com, gospo@broadcom.com, netdev@vger.kernel.org, pabeni@redhat.com, richardcochran@gmail.com, Pavan Chebbi Subject: [PATCH net-next 0/3] bnxt PTP optimizations Date: Tue, 21 Mar 2023 03:32:24 -0700 Message-Id: <20230321103227.12020-1-pavan.chebbi@broadcom.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Patches to 1. Enforce software based freq adjustments only on shared PHC NIC 2. A prerequisite change to expand capability storage field to accommodate more Firmware reported capabilities Pavan Chebbi (3): bnxt: Change fw_cap to u64 to accommodate more capability bits bnxt: Defer PTP initialization to after querying function caps bnxt: Enforce PTP software freq adjustments only when in non-RTC mode drivers/net/ethernet/broadcom/bnxt/bnxt.c | 4 +- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 57 ++++++++++--------- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 14 +++-- 3 files changed, 42 insertions(+), 33 deletions(-)