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 36B74A0C47; Tue, 10 Aug 2021 06:37:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19A334115C; Tue, 10 Aug 2021 06:37:15 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 3309440DDD for ; Tue, 10 Aug 2021 06:37:13 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10070"; a="194424882" X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="194424882" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2021 21:37:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="671536763" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga006.fm.intel.com with ESMTP; 09 Aug 2021 21:37:11 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 9 Aug 2021 21:37:11 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.2242.10 via Frontend Transport; Mon, 9 Aug 2021 21:37:11 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.42) 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.2242.10; Mon, 9 Aug 2021 21:37:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XFSCTDXqiO7iAsHyOnlZcMi+LdIv83rM/sCE1SD8Vi2MYNQmBNAjGf9hPZWMztfywZeL98QsLZ2dIRuzJX1+T/ZPqmggm9DBc45xw3A0zDeHZHghjoNUzeIrnmWyQpei3lnty6ijbU34T/HElTkdfZqVHcz1wJcPvFoXQapFtahp+8YmqL175dwWDomD38nqYXpnIX8HL0LE0Kn9dGLhxY2xreJvNVvCVO//yrTBDUdfPTdpbbmaTBVsEAQMfOwxLA75zefkINM5fdd9nd4ntdNrtmNzm1V+yC6G+cXmyHkFzlDYIR1Nmfr61+HrMngcmCGaYO9RrGb1zc0Mu98xJw== 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-SenderADCheck; bh=p4b5JYJSlGcTTLk3eKoJXtcOtCaFm8EMMdsu6JiDP2I=; b=cR2e48W0Gjxu1+q0WMccAwOeuJRuCPFW9z4ZZqiyIIHc8DMUzrOS8k1+qnNSnCvQzHGLlOEWnDXoTcCCwvTUitsyc9esUkuYK8fnQCmN7ibHBSpdGggJE7qmyCwDfZYIPT5kcZ/OyqHkNPdmBhObALVcGCoibbZWaUc0hleeLvSh/lE0Zbni260rIRPgrOZroQJV6DYyaOj2T+4WqgI5WGl4dTNmlgn023403Sv8N893TZn5pJ0n/j1F8/xsNVCTJe2zqKtAa0EOWMtF4y7+lW6CQf1SJwfaoovmb3g9Mo9FSblGzQzcul/cVOZ2BjfznmQHE/bOZUPQNGuwHt+vXA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p4b5JYJSlGcTTLk3eKoJXtcOtCaFm8EMMdsu6JiDP2I=; b=XJ6r+mqmKidZLeJpzRp8Zh1NmMoEBIMdmMEHcZZ0zVLH+BheIU9Xs1meSHlM9DNRJ7+cig3qqAT0bQPgWI54ig3exslnnEjGOZ/e2XcRgRKcxqFXHqFPCH7/dnuVFeJV4s20wk4ZZR3jhJSUoxbgg3V3QRa8XwYKTrKaY2yHjIE= Received: from DM6PR11MB3723.namprd11.prod.outlook.com (2603:10b6:5:13f::25) by DM5PR1101MB2074.namprd11.prod.outlook.com (2603:10b6:4:50::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Tue, 10 Aug 2021 04:37:07 +0000 Received: from DM6PR11MB3723.namprd11.prod.outlook.com ([fe80::1c0c:7480:b096:196d]) by DM6PR11MB3723.namprd11.prod.outlook.com ([fe80::1c0c:7480:b096:196d%5]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 04:37:07 +0000 From: "Guo, Junfeng" To: "Zhang, Qi Z" , "Yang, Qiming" CC: "dev@dpdk.org" , "Keller, Jacob E" Thread-Topic: [PATCH 07/28] net/ice/base: add accessors to get/set the time reference Thread-Index: AQHXjZJCT2rJXXfyJ0+Zou6Dz+rk66tsJ3/g Date: Tue, 10 Aug 2021 04:37:07 +0000 Message-ID: References: <20210810025140.1698163-1-qi.z.zhang@intel.com> <20210810025140.1698163-8-qi.z.zhang@intel.com> In-Reply-To: <20210810025140.1698163-8-qi.z.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8a635aa4-ea94-47d6-5f30-08d95bb882ab x-ms-traffictypediagnostic: DM5PR1101MB2074: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0JVhalLy1Gj3na+vqgjAcsxKjE+8ZBv7kQXB6HHo/EM5y/DXr8tcnaR94WU4quacS3aU2mQS8HLEHIiho2kjugJhNa2Wf2+fjXLcdsjg98F9qaF3oUsHjMMgKWDpByjnDdwAG9ASyP4K5bKvTo6+Jts47TlYWAPxzqpPyeSpinyvSawBIMNK9yvMrPacNBzua2Oc2beNMStSLvzgZZEiAqQKxzcLsDvoauRwvVJlxjspPdRkDENFIYKIEAaB1H6BAfjwRwgUcUwxNAopgAOMxaqsQJzr9F9QdVBwQx0D/7/Ksbbd/jYc8MWUvO1tSC3ikARI3M1besWweoCAgypqbX0Vg2XgXikxX99MtCW0hP5gaJvQF3GVHjYkiVMDHk1OpR3M/3/fnO5ohKzuiwxAyLy+P4QiHsRi8AMRWATQgwa9ev98Yu20rIBpR26uUtdaXslxnCcXi0vUvxmnkF6e5CR4Z4BdkaNfyzRTdM+getGWJlUzaQk1aRqy6CYF5MDikr/gzetqqgHoSIVAhBgkpA9U+5UyjttnhZwrTLz2K5km/UO7a0QcgPP3ezNOCX26ef1k38qV8eXrwhXkx5o7wHBrj9AqDBSRk4dTk1x96NOnAGx+t18kDT7u4F8Rq+HPn4AXwkvzP3VruCy9R7EyZh4V8MzghWopFZxJ5GgHkk5UqvvXGX6J6kg/Rk49/bFtV8sSwu6N3f0I2QJ2u/y3mg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3723.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(39860400002)(366004)(136003)(26005)(76116006)(66446008)(64756008)(66556008)(66476007)(186003)(33656002)(38070700005)(5660300002)(66946007)(54906003)(83380400001)(110136005)(107886003)(4326008)(7696005)(316002)(2906002)(8936002)(38100700002)(6636002)(6506007)(55016002)(9686003)(52536014)(8676002)(86362001)(478600001)(71200400001)(53546011)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Cx6JFX0Xp0rWqbVcyg5lyJ2NWcKcziUpJaSipdEOSRszEkNxlAS/hmGpeCCr?= =?us-ascii?Q?mtvT/y/cbkqQnYaAXMJaYf4QafFGirEygkDFWW2U9MdCcqza8EGPBE7eOCdd?= =?us-ascii?Q?as7KSgmbJhc6iI0lBt7wAYHAuPMr3waWET6IFRsbaRUAWZx2mnGAmsswWwtu?= =?us-ascii?Q?NTfSIaGw9sLnF5X+6vfBaXWCehKDBbS+f2S/lhrbVArwDrX5uvgQGm/Bw0Vr?= =?us-ascii?Q?susdhk4/bnv3xfjXqHN6XJm+qNIyhrH4FgVN6LVPtMR9adbk9Ga3UTBmOYwU?= =?us-ascii?Q?vKmzk0kZY8jIZc1DWl/tIElI2z0s3eW44Oqj1HzEbWysA0Md7WIu5VFUlK+T?= =?us-ascii?Q?Oqf63bTUsc3intRMrOVt6U6VutLr7TaoRTYjNutd/XvcbaDpaBYBUo/NSBYj?= =?us-ascii?Q?wUmbANI2zDDXHu3ZwDQi05Gxnn0MRnJTMt3NrZ7qml8bFR/zgjM+OVkGSga8?= =?us-ascii?Q?LWHG/r9j3vXi4DoQomVp/Ot1u1bUAPO/izKF5NKYMECHMI4NgIR8qjauMrAP?= =?us-ascii?Q?cOv9igDaKDsoQsc+2e8Z0qYcrJsIbBJh4Hyc8oDjMPQPYnYeuJYNdFPKz6xU?= =?us-ascii?Q?4xKYLg+g0vpmdw1+ZM73Hdjx7c2GLuAubaTA1lOgVwRJxSKcVnutJ/ylyda2?= =?us-ascii?Q?CNAXECV73I7rKssL1Ua7mKxtG1l4egePMieNEM8cQS5zEo5pn39urHCQ83+h?= =?us-ascii?Q?LYgjEcYv6fCozeR+yKHVuQbozBBNokHGipTcfumE6djaIGFrsxFPoUc2Jal6?= =?us-ascii?Q?073NCjQLTnV0N49C89c2fSiqEz9lDsi0jLhxNIp2kaZCf907hQwpeo52DRs0?= =?us-ascii?Q?xSYUz04BIoxYEXy/xeIVbbimkikYPT76wNaL38h944Ksficq6ytG6cKFhRhO?= =?us-ascii?Q?EFPjfRGJuXFou41sKCt607eUYe3RK5xZirLEyBPaPX3HsV74bfejIY1jpuYB?= =?us-ascii?Q?w1FhuoFwqN3V7p1Lc0k7ib4tGz7hs9/bEBdI6eBZjcr9cWRoqlTyuHUv5Nwn?= =?us-ascii?Q?P7/QIYaZ8R6AYWZyes+9BuXN4N8vq4zakctNKfqI6liNHa4lQdxc+iYZnLeK?= =?us-ascii?Q?dwkBfBn76CaidpVX7UrYbS6D+EsMfcTB7kgOVDLvUJ1F9p31as6ullseFZij?= =?us-ascii?Q?NxkHHeO6fTCecI9ynEzNtQ/ZpivemCORIRm9swyzyMqs8bjUf3RsvI8+KASJ?= =?us-ascii?Q?rbRML+1eI9m1g0ag6ouj+//NtKtQpu+jWZYl8zwX/4c4dW70hedOiSf84Ivh?= =?us-ascii?Q?5AWiiQgRO9Ax7KUt1WhclBa3Y16LG6AOuZvJXOQRGsSm6jRzYqr1QHs9dMmr?= =?us-ascii?Q?HZA=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3723.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a635aa4-ea94-47d6-5f30-08d95bb882ab X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 04:37:07.3025 (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: 5PiPo4NEcoaqCuvpSrfOBm1m0l9Lk3XvsOBim7byf6VDEwudbIc67dmNGSO2Vxl0+H+GVi2LyeU06W0KDA63Og== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2074 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 07/28] net/ice/base: add accessors to get/set the time reference 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 Sender: "dev" > -----Original Message----- > From: Zhang, Qi Z > Sent: Tuesday, August 10, 2021 10:51 > To: Yang, Qiming > Cc: Guo, Junfeng ; dev@dpdk.org; Zhang, Qi Z > ; Keller, Jacob E > Subject: [PATCH 07/28] net/ice/base: add accessors to get/set the time > reference >=20 > The E822 device clock might come from a variety of different sources, > called TIME_REFs. The firmware reports the current TIME_REF as part of > its function capabilities, which the driver caches when it loads. >=20 > Add an accessor function to look up the current TIME_REF from the > capabilities. This reduces line length significantly and also avoids > a tight coupling to the capabilities structure. >=20 > In some cases, TIME_REF might change at run time. This can occur in the > event that the CGU registers are updated. When this happens, its > possible that the capabilities structure can be out of date until the > capabilities are re-read. >=20 > Add an setter function to update the TIME_REF when this occurs. The > driver can call this function after updating the CGU to ensure that the > TIME_REF in the capabilities structure is up to date, without needing to > re-read the entire capabilities from firmware. >=20 > Signed-off-by: Jacob Keller > Signed-off-by: Qi Zhang > --- > drivers/net/ice/base/ice_ptp_hw.h | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) >=20 > -- > 2.26.2 Acked-by: Junfeng Guo Regards, Junfeng Guo