From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0926C001B0 for ; Tue, 15 Aug 2023 22:36:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 7EF4160AB9; Tue, 15 Aug 2023 22:36:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 7EF4160AB9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1692138961; bh=dOf3LAc/LUsIJ5i29lFi4oxqL02CDaqRYw9GoEw6utQ=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=P2m/uBS9ZoJWuDlVdzi3BEkNC+5UdKVMLzfCybr8gN8Loj6HXnLogGEwbpfrG4Ph9 KNUqbN7oNzBjaFj+3/czlNrZxKMbokA98+9prKb+zTgAsgEHOA0hX7BNNPc30edIFO OZFJGfnR3xQoN8m8i4tRcAqgJcfx/00xoKtZChZ9rBlR6X3Mng1gxXBcB1+cyFAcJ/ gozIOZH5LJ3Kq0U8oVHhHAjQsz0od9zsceD06tvQxMWB8piJ37XNmSgMVRyXMOn+Ml yaW8azlLGBweyBFclb+QTGSGqAitrAsQSc8aVBPxvkZNFoH1oKSqsVmB7JFvV5Ogeo zOkqx6qIMjmRA== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ueoX5vUuSSmZ; Tue, 15 Aug 2023 22:36:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 98025611C0; Tue, 15 Aug 2023 22:36:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 98025611C0 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 81B9B1BF47F for ; Tue, 15 Aug 2023 22:35:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 61534414A3 for ; Tue, 15 Aug 2023 22:35:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 61534414A3 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T29KnavJ8_5Q for ; Tue, 15 Aug 2023 22:35:57 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by smtp2.osuosl.org (Postfix) with ESMTPS id 9898841499 for ; Tue, 15 Aug 2023 22:35:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9898841499 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="352718848" X-IronPort-AV: E=Sophos;i="6.01,175,1684825200"; d="scan'208";a="352718848" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 15:35:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="710905976" X-IronPort-AV: E=Sophos;i="6.01,175,1684825200"; d="scan'208";a="710905976" Received: from jekeller-desk.amr.corp.intel.com (HELO jekeller-desk.jekeller.internal) ([10.166.241.1]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 15:35:56 -0700 From: Jacob Keller To: Intel Wired LAN Date: Tue, 15 Aug 2023 15:35:42 -0700 Message-ID: <20230815223551.1238091-1-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.41.0.1.g9857a21e0017.dirty MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692138957; x=1723674957; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SRQcXgBDubMF8ApKYK/hX1XCacvaVjxy/MSVdCLj2w4=; b=bQurjD7wd47zJKHJyr0I+Bf7EsnMOmsq9cxociccFAD+SG97gaPUrGG4 ZyJW9sFRmHEVuN9yqH1eTGYxsjQSBoDZqGyFMdpku52F5s4N0hcFAKCLf eHo/0fXSF6gYy6bzQR+XRu4r0Dvs6xXg0wvhNYh4IKuALJrLIQ5i1Px+G 5708gXIs310bvRoqBD7LA2n7/xkar48voIaLQ669bX9UB5RYWrcr3qCKh 9LDBaGe5+3MQ0Xeaie6/w2KuwIrKsTrIMV/F60Ou3JACg6tK+RHDCHiPF MCJTJyU8LW75vKe0WScsK68cH+qVAHM2mCXUw09YyJewFv1VEx3sR2jMI A==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=bQurjD7w Subject: [Intel-wired-lan] [PATCH iwl-next 0/4] ice: refactor PTP feature flags X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Karol Kolacinski , Anthony Nguyen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" This series refactors and extends the feature flag detection for a couple of PTP feature flags. This includes ICE_F_GNSS and ICE_F_SMA_CTRL. Instead of blindly assuming the feature is enabled on all E810-T devices, check the netlist to confirm that the feature is supported on that device and platform. For SMA control, this allows the driver to fallback to the fixed pin configuration that is supported by default E810 configurations when the SMA control is not accessible. For GNSS, this ensures that we do not attempt to read the GNSS portion of the device if its not present, avoiding some unnecessary warning messages. For ICE_F_SMA_CTRL this could be seen as a fix, but given the scope of the code I decided that its next material. I think of it more as extending the feature capability to support pins on more platforms. Jacob Keller (4): ice: remove ICE_F_PTP_EXTTS feature flag ice: don't enable PTP related capabilities on non-owner PFs ice: check the netlist before enabling ICE_F_SMA_CTRL ice: check netlist before enabling ICE_F_GNSS drivers/net/ethernet/intel/ice/ice.h | 1 - .../net/ethernet/intel/ice/ice_adminq_cmd.h | 8 +++- drivers/net/ethernet/intel/ice/ice_common.c | 46 +++++++++++++++++++ drivers/net/ethernet/intel/ice/ice_common.h | 3 ++ drivers/net/ethernet/intel/ice/ice_lib.c | 12 +++-- drivers/net/ethernet/intel/ice/ice_ptp.c | 4 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 31 +++++++++++++ drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 2 + 8 files changed, 96 insertions(+), 11 deletions(-) base-commit: 361b86237e1afbf2c3be7cb604b6aac6f8b8c38c -- 2.41.0.1.g9857a21e0017.dirty _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan