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 A146E454AC; Wed, 19 Jun 2024 17:33:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B2D442D3F; Wed, 19 Jun 2024 17:33:37 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by mails.dpdk.org (Postfix) with ESMTP id CBD7E40289 for ; Wed, 19 Jun 2024 17:33:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718811182; x=1750347182; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=BAwTwbezXE8mX7l899TNfDVSQn0T/SuRoffB6lK1VNI=; b=evueGR+KeLIiPamtOPeios0bFVOErQ/LDsPJsRDpukOwh1TbEwF3mizf gQ3aHLBhhKd/wQXgNbkp78DRpSOJm/eM75ZvV6OPf0uX7ZIoyqPHi2fd+ hUQVggLr+fvoZdTstztutqgmnFHWypAJK+bPzQ+j3XcVHpqJsNDO603I9 1lGe6JkanelH03zVXoI7X4QHVkCr/RH/SL+KQs/ihjKg7ZZwNm3d5EOeg 2OsKXmu9og7iOqKFcB2CZp+mAtQxpd6iBibuOXnHbLJsqgcrX7i9RbHXL mb5mfP9a4o6VsNtdxeebAVjkdANkLmX4w1CaW+Er5XUjOuATzpxZZwwne w==; X-CSE-ConnectionGUID: vUqYHKfER8uCjwlk+Y894A== X-CSE-MsgGUID: NBiZ9bmpS6iWcDJL/NGQ3Q== X-IronPort-AV: E=McAfee;i="6700,10204,11108"; a="26395158" X-IronPort-AV: E=Sophos;i="6.08,250,1712646000"; d="scan'208";a="26395158" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2024 08:32:59 -0700 X-CSE-ConnectionGUID: k96PiWErS/SFIH+F10i7Vg== X-CSE-MsgGUID: AlLJUFUYTVWH5quX8T0nKA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,250,1712646000"; d="scan'208";a="65198446" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Jun 2024 08:33:00 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 19 Jun 2024 08:32:58 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 19 Jun 2024 08:32:58 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 19 Jun 2024 08:32:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HXz9EVocxM5gdpEbR5+C+EUToJxqcAqAwa4GOVmXKKkPYun96KiWE7V8FGFPAzMA1peYz1gpReiHVZ27OqfGWee9AiaXg5CQ6sE3aqak1jZnWVf5OrzLbaIiEn/rx3PnqUvT1EskzfaaykNLtunyfu+17YBufOWIV/E1RGkrlaWWypD5ovzI98bM8qUTVuYSGKBJUnuAxQqd+NvLSFqSqggWm4eLLXRW056jS2fwVP+HVUkghmnyBfmKKRdzug9f9itVFWQQdXDbqgYerBqaNC6ljLJPRgE9ps4tFcylGODRVtDOGzf4dIGSeKUfTV4w3vGvlgwEv8XFPApTe9qkQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GIVTfnZUQrbK03Y7a3Hco2sJ59Q9GkoREFVDBKEPFYc=; b=S6mPwdGDW7Usw6uBltHfe9NtXO535nOlUOLi7px0dMuEtYFGuvB+4nbYYLRr9PZSXyycwZkg45GmyAuxeUxL2KkPT3yYVh9VbZesFaIBOlHl18A7H1C4OuwAxqPaVPe4p0jpSZI+29dsZfoowQBAAsgXms+EzYOtw2pCNXlNblz2RDjwEv1cCT3Azbru7Me1JwpNO8z//feilKSz3zanvPG7a6AiVZAtYPegxc4pzXEdJikIKBErgm7NWxbd3SK1K8b3w8sLdoRPgIe8fpzdSXR4H0H5ofpPzcnN9VwJ9vHWy77GuvE8XYBZsOPgWsnyN7hNu/6a2ZT5tSodn2bpMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by PH0PR11MB5077.namprd11.prod.outlook.com (2603:10b6:510:3b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 15:32:50 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%7]) with mapi id 15.20.7698.017; Wed, 19 Jun 2024 15:32:50 +0000 Date: Wed, 19 Jun 2024 16:32:45 +0100 From: Bruce Richardson To: Anatoly Burakov CC: , Ian Stokes Subject: Re: [PATCH v2 025/148] net/ice/base: use model-dependent number of PHY ports Message-ID: References: <20240430154014.1026-1-ian.stokes@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: DU7PR01CA0013.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::8) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|PH0PR11MB5077:EE_ X-MS-Office365-Filtering-Correlation-Id: eeb6cf6d-b0ba-4a1e-0830-08dc90751421 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|366013|376011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?xHxp5apW2+t5nPNK9dSFHJqvuLhtr9uvCexyrFrbUztfGZEMH1H0+AOzz2qj?= =?us-ascii?Q?Yw02ps3ZNFa+d0FMMLyxJOalLcjgcWzy0sjpWhXkfVUZx2chGNI/HQWavUUc?= =?us-ascii?Q?V/yn4PtHpisJxoelJ3ihLrYgWQFEQuNb6itqnL8+IVhfhM9h1drQ2gibawK8?= =?us-ascii?Q?/sTUDjzkM2Qpp1d/t2aSD0z5L9RS8AwgLMQAMKbFqs52iCMcrnF+bW0dhSGz?= =?us-ascii?Q?MEx3NpT4n2AdtWuec8xRTVs6V/fmULWoP71A7NwiKKz0mWcxNL0oLFtSEtUR?= =?us-ascii?Q?/eWh0kDLYYTLGdal0VBBFAgP2N79Iw0YPrDZHGeUQo1/Ows+EK1SnVv69S9B?= =?us-ascii?Q?u9miKeRic3ZIrsaV6EfVWjjE92RGHqMv959IJQdv7PH8TpgJcom6rg1Itsdj?= =?us-ascii?Q?PvHA/pShpv2i9iaBtzeBdqTwyWIk8R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q?lx0=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(1800799021)(366013)(376011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ZQY7Zx2gRj4Pw9wAYcLbK1TJC8Wu/bvtewPrnXxYeTNODgS4hNskPf34txSt?= =?us-ascii?Q?iIX99eVKrHUNx5HFBqPQ1lPXanjVBdoHJeBmjDQ6Obk08FvCsCVU9mvvtM/G?= =?us-ascii?Q?ywwT+hsI61uWWq5wGKJ3lvQyfjhjDkG3sBqchupc5OhEi7/XMy8N24lCWxdX?= =?us-ascii?Q?ai2r1kbzoZqFvoP6aAsrUsgosRr1SpgnurI9HCnXBkpc/ljkurY/1RoZavon?= =?us-ascii?Q?WY7qvAK+2F3qY8/AEbgSL9rMb7lui+6sXOpRUXDNNTH8OVnfCX3BZM7xxISA?= =?us-ascii?Q?n9Ni+7b8+xiWJdffuHcDuf0IhfDxEdptEZXLPHuuoNQlVUVU9e2sF4OpbZ4K?= =?us-ascii?Q?QHVHMU7aKIJJjmNa6oxeWrIv/oLqxVel+JEIULUU5+1GoHkT9LfULBpNZqch?= =?us-ascii?Q?R4MWCjhzSgyB1P1n9sAWm/zl42os4o+ugPo4aD4M5Omd3E98jfaLm/4+odH1?= =?us-ascii?Q?mCyeRkJdVgSJDMQFegjbL/hnKE1jNq5xBivTfeWudv+Qi1ZTfNI38dFxz1xW?= =?us-ascii?Q?Ca8F1xbg1rBYfxYummMRmhg9noy/l/5B2wV6MobFDjVE9IdUYhyiEtu0D+s3?= =?us-ascii?Q?sC7uNAoAX/+uSafRXfc6E9MUPd1OSnIMz/5OosnDGTIXyFbgihI6t3MEIMf5?= =?us-ascii?Q?m2IqJZKf9lIill6XqJ939Aa8Pi1N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72Fhea/AxO64lnCVNYriVfBQaVgMLNcnk+T8NvwKBI4sOv9I400MQobm?= =?us-ascii?Q?MA=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: eeb6cf6d-b0ba-4a1e-0830-08dc90751421 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 15:32:50.5249 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0pi89bKAq9jZ2qYxlNWQK0DZBWgfjsACmguDouTWbPnZxnK27gF4223MUzqZaRoMPhzuWj9uJSTpgtAiiQ+gTcuLky51MX/jn8M//nWejIc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5077 X-OriginatorOrg: intel.com 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 On Wed, Jun 12, 2024 at 04:00:19PM +0100, Anatoly Burakov wrote: > From: Ian Stokes > > Set up and use model-dependent number of PHY ports. > > Also fix iterations over PTP ports. Don't see this code making it into this patch. Just see the new variables discussed below. /Bruce > > Define 'max_phy_port', a new ice_hw struct member to store the max port number > handled by given clock owner. Replace 'phy_ports' with 'max_phy_port' for max > range in iterations over PTP ports in case of ETH56G based devices. > > Signed-off-by: Sergey Temerkhanov > Signed-off-by: Grzegorz Nitka > Signed-off-by: Ian Stokes > --- > drivers/net/ice/base/ice_ptp_hw.c | 2 ++ > drivers/net/ice/base/ice_type.h | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/net/ice/base/ice_ptp_hw.c b/drivers/net/ice/base/ice_ptp_hw.c > index 8ce803bfb3..5ce48250b4 100644 > --- a/drivers/net/ice/base/ice_ptp_hw.c > +++ b/drivers/net/ice/base/ice_ptp_hw.c > @@ -1814,6 +1814,8 @@ ice_ptp_init_phy_cfg(struct ice_hw *hw) > hw->phy_cfg = ICE_PHY_E810; > else > hw->phy_cfg = ICE_PHY_E822; > + hw->phy_ports = ICE_NUM_EXTERNAL_PORTS; > + hw->max_phy_port = ICE_NUM_EXTERNAL_PORTS; > > return 0; > } > diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h > index 7a1471e474..48f892bfd3 100644 > --- a/drivers/net/ice/base/ice_type.h > +++ b/drivers/net/ice/base/ice_type.h > @@ -1260,6 +1260,8 @@ struct ice_hw { > > u8 pf_id; /* device profile info */ > enum ice_phy_cfg phy_cfg; > + u8 phy_ports; > + u8 max_phy_port; > u8 logical_pf_id; > > u16 max_burst_size; /* driver sets this value */ > -- > 2.43.0 >