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 A827D45D7C; Fri, 22 Nov 2024 16:17:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 802A943369; Fri, 22 Nov 2024 16:17:15 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by mails.dpdk.org (Postfix) with ESMTP id DEBC440264 for ; Fri, 22 Nov 2024 16:17:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732288634; x=1763824634; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=txbYrc/4PMovcyPobVrMa/HcWYCFi8VgOgFLMOAZmAM=; b=B4gdncxRG3u/DKBJZ+4mkjIubx27Fb+26jrxA/aNRYZz03o3f6fA5oug 0sBrhTr8ZUeaFBmpV1Hv/LZgqV52RspqarLtuJGYYwZ3Px7kYTnbShTOm t0lVsDzv//jSoka9HFAvWNw/2fKweJtKotNPBuQEzzAmmlPO7egOh+K6P SIpgdUWP4ICuueAN1e+To12h2epcAoZaans8AHxUBYO3LdAusllPv65PD AB+mLOGEfcPUCPWoIStwaUpv6MEurDWrgEOg6oTHLLiH4Nkl7IjKHfDXG 4uGD2ASeb60lfgIDYt6m643BZhLVZ87Mz8T57EKPPTPkEWvF84Smfz0tB w==; X-CSE-ConnectionGUID: OTDcGx9PQem/odExR9pjsQ== X-CSE-MsgGUID: wL9CLZIzQpOodVsvEO0tLg== X-IronPort-AV: E=McAfee;i="6700,10204,11264"; a="32383126" X-IronPort-AV: E=Sophos;i="6.12,176,1728975600"; d="scan'208";a="32383126" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2024 07:17:02 -0800 X-CSE-ConnectionGUID: ZnnVzjphSqyYAMLau1FRVg== X-CSE-MsgGUID: I/lQQVUrQQaR0Rzts5hMqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,176,1728975600"; d="scan'208";a="90765789" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa008.fm.intel.com with ESMTP; 22 Nov 2024 07:17:01 -0800 From: Anatoly Burakov To: dev@dpdk.org, Vladimir Medvedkin , Piotr Kwapulinski , Carolyn Wyborny , Jedrzej Jagielski Subject: [PATCH v1 1/1] net/ixgbe: fix PTP initialization for E610 Date: Fri, 22 Nov 2024 15:16:59 +0000 Message-ID: X-Mailer: git-send-email 2.43.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Current codepath does not have case labels for E610 when initializing PTP. Add them in relevant places. Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device") Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index eb431889c3..d02d1e43a3 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -6741,6 +6741,7 @@ ixgbe_read_systime_cyclecounter(struct rte_eth_dev *dev) case ixgbe_mac_X550: case ixgbe_mac_X550EM_x: case ixgbe_mac_X550EM_a: + case ixgbe_mac_E610: /* SYSTIMEL stores ns and SYSTIMEH stores seconds. */ systime_cycles = (uint64_t)IXGBE_READ_REG(hw, IXGBE_SYSTIML); systime_cycles += (uint64_t)IXGBE_READ_REG(hw, IXGBE_SYSTIMH) @@ -6765,6 +6766,7 @@ ixgbe_read_rx_tstamp_cyclecounter(struct rte_eth_dev *dev) case ixgbe_mac_X550: case ixgbe_mac_X550EM_x: case ixgbe_mac_X550EM_a: + case ixgbe_mac_E610: /* RXSTMPL stores ns and RXSTMPH stores seconds. */ rx_tstamp_cycles = (uint64_t)IXGBE_READ_REG(hw, IXGBE_RXSTMPL); rx_tstamp_cycles += (uint64_t)IXGBE_READ_REG(hw, IXGBE_RXSTMPH) @@ -6790,6 +6792,7 @@ ixgbe_read_tx_tstamp_cyclecounter(struct rte_eth_dev *dev) case ixgbe_mac_X550: case ixgbe_mac_X550EM_x: case ixgbe_mac_X550EM_a: + case ixgbe_mac_E610: /* TXSTMPL stores ns and TXSTMPH stores seconds. */ tx_tstamp_cycles = (uint64_t)IXGBE_READ_REG(hw, IXGBE_TXSTMPL); tx_tstamp_cycles += (uint64_t)IXGBE_READ_REG(hw, IXGBE_TXSTMPH) @@ -6838,6 +6841,7 @@ ixgbe_start_timecounters(struct rte_eth_dev *dev) case ixgbe_mac_X550: case ixgbe_mac_X550EM_x: case ixgbe_mac_X550EM_a: + case ixgbe_mac_E610: /* Independent of link speed. */ incval = 1; /* Cycles read will be interpreted as ns. */ -- 2.43.5