Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp807445rdg; Thu, 10 Aug 2023 23:28:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFiItx42T6u6Z7DSb77neBgyU6xXM0dkIuZMD4TnshQFkRmX6cr9nYUp2h8OihN6LfYxH1 X-Received: by 2002:a05:6a00:a15:b0:687:41cb:e274 with SMTP id p21-20020a056a000a1500b0068741cbe274mr988655pfh.9.1691735299938; Thu, 10 Aug 2023 23:28:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691735299; cv=pass; d=google.com; s=arc-20160816; b=c/CHDD9BLBCJmWoRAWWi38kb9ZFKOrFEBq2rMJdA38Mca2ewHe9/9pvTUE+e7PRjBH 6CT7Xr0JXM2noHXMcGZRH0YBvPmyfEYVLOl97nldArZH6x9n0xjNpdW+Ahiy1M7TEBnw 5kc235BnnuhC6HK/dW6xHuIkTHSTVM870iRT/fjN5BLMMf/O9JqeLtz3IAeewgcgxa6w o0Ca9qMvgxrw7B9Ozb1xl94/9/7KyardCDCzndo/75MoYc1wl03BJW3X5AsZg/WAv6HZ Ewk8Jo1wHRlEWQnq7rOofnhYZ8xNa5s7rV4lduGLdSNPmhJ1cuWBjx/gtejXDmY39Fdv Mnyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=usapnpVy4ZjTWQ+BO169WasI4BKeMAsh5h0nKyPxI6A=; fh=BUwB/RLZ1Ajpr2/Z2Q2NHqO53cXvhCSWN7fWez0qMwI=; b=vjCapPpycCN9CydqoVa2tTA654j/LWfXfPwTQX5uhmxoIjyTaVdlanqbE5Z0XNSRmM QRvORitF1WMTM6qHPFMyar18Ku433jtUvKWRHEXbvB7bJFmalxMupmjFShJJXiCaW1ch KIhvxu0DWtVvFqV/ct59YzCFQm8/u3DO0DxjAXGmjbnQIeItTkNppLVvATtIVz9Y7umX GzqJetGdHkZTKvfm7WXPo3dTRqfJzmHQdeCTYWzpKmVCyUJlN8jZ3cBgJIej3TmGAyk5 skb3wpEGpgS6kPJY46nygqI3Ahg+BGx9c8WvO3qCg/PaHuRJNOVxPrgsqamzFufcclut JlRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=n3pzNaQT; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a056a001bc300b006826f3512fesi2803011pfw.200.2023.08.10.23.28.07; Thu, 10 Aug 2023 23:28:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=n3pzNaQT; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232614AbjHKFsv (ORCPT + 99 others); Fri, 11 Aug 2023 01:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjHKFsu (ORCPT ); Fri, 11 Aug 2023 01:48:50 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5064C2700; Thu, 10 Aug 2023 22:48:49 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37AN2MvY011226; Thu, 10 Aug 2023 22:48:41 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3sd8ya10ts-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 22:48:41 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I32KxyzcF1jZzNmEB8ZYphFfiBXp9og8Q/r2qSBXPwLPZPwsJP+vuP6BvScxIE4cx6PTUlqWraskYIvf1uz3+UuxCVVS57QLZSX1QipVROfkPaqBJeggMjMFqYCXhTXMAIjxl41591dYu6z2+qbXRmgeYWbHkTK/YHSVI2PP5JUIt9doiHHFyNABmo+ft6ptRRitN5+hgGqo0DgueyGNG3ARalfC7rOxVn9ZzU/3xdN5FAM1gxmYhoMQyC1x+kXZjAQ0mn4rdh9I2SFIbzcR8k7YQ4K4PG2vXsggQwn3yqdqHQtR7nAjWjphd4pxmq7g0XmRxO64+DJ4+Tw+wKPZ2Q== 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=usapnpVy4ZjTWQ+BO169WasI4BKeMAsh5h0nKyPxI6A=; b=L7FtpIC2Gr4SnvW/2rBZ+kwvuodwNf+GfJWIb1KxGKknNRjBq1ilgrIfkbHSxDqn+xb84FasHNpZBYwN5weXzITp7qv1S+z2dtk8Avli+OMpQHXw0mWi38+Oq06EjVOX+5ioP1yk8iNZKeSDhjc81NABBYAeyyWboYbQxQNJdU2l3561aFrzUZv6MhO6mAb2enT/oilNcrvPqJCTM9tVimAkZrRgdexAApET1kvXKMz3/9QycLG1fPQ4x7nTBb5MZ75xLSTCH8nawfDo3yyG+QoLwIa7C+izWe+gNKmVrqsIIm8GCnK/DgB6W2BNpCIfD0zb5VP0p0xXjAaYsQdCUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=usapnpVy4ZjTWQ+BO169WasI4BKeMAsh5h0nKyPxI6A=; b=n3pzNaQTpZXxMAeaqApHyOBwjBEKI2Lh/O21Mcs8Cw35SDUBzaetckDx5tzSsBYzIy+l+EOhaRDQg6aM3ZGZrsJjrA7xB0H+uB3xPOhjHB6v2vbWOv9uIKEZCqlxOyMYNHjyck205GMUVgAu/NNiNXIxSjw1N82xMJD24BELpaY= Received: from BY3PR18MB4707.namprd18.prod.outlook.com (2603:10b6:a03:3ca::23) by SN4PR18MB4888.namprd18.prod.outlook.com (2603:10b6:806:213::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.30; Fri, 11 Aug 2023 05:48:39 +0000 Received: from BY3PR18MB4707.namprd18.prod.outlook.com ([fe80::bda0:6335:2519:31b5]) by BY3PR18MB4707.namprd18.prod.outlook.com ([fe80::bda0:6335:2519:31b5%5]) with mapi id 15.20.6678.019; Fri, 11 Aug 2023 05:48:38 +0000 From: Sai Krishna Gajula To: Jakub Kicinski CC: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sunil Kovvuri Goutham , Geethasowjanya Akula , Subbaraya Sundeep Bhatta , Hariprasad Kelam , "richardcochran@gmail.com" , Naveen Mamindlapalli Subject: Re: [net-next PATCH v2] octeontx2-pf: Use PTP HW timestamp counter atomic update feature Thread-Topic: [net-next PATCH v2] octeontx2-pf: Use PTP HW timestamp counter atomic update feature Thread-Index: AQHZzBd5EeKIotOBfk6aipYP34LBZg== Date: Fri, 11 Aug 2023 05:48:38 +0000 Message-ID: References: <20230807140535.3070350-1-saikrishnag@marvell.com> <20230809155022.132a69a7@kernel.org> In-Reply-To: <20230809155022.132a69a7@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc2Fpa3Jpc2hu?= =?us-ascii?Q?YWdcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZi?= =?us-ascii?Q?ODRiYTI5ZTM1Ylxtc2dzXG1zZy1iNWEzNzQzZi0zODBhLTExZWUtYWQyMy0x?= =?us-ascii?Q?Y2MxMGM0MGQ5ZTRcYW1lLXRlc3RcYjVhMzc0NDAtMzgwYS0xMWVlLWFkMjMt?= =?us-ascii?Q?MWNjMTBjNDBkOWU0Ym9keS50eHQiIHN6PSI0MjY0IiB0PSIxMzMzNjIwNjUx?= =?us-ascii?Q?NTg1MzI0NDEiIGg9Ikc5ckd2VkNNd0NOK3czN3IxaTRpVytabnVuUT0iIGlk?= =?us-ascii?Q?PSIiIGJsPSIwIiBibz0iMSIgY2k9ImNBQUFBRV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JsQUd3QWJBQmZBSFFBWlFCeUFHMEFhUUJ1?= =?us-ascii?Q?QUhVQWN3QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUJBQUFBQUFBQUFBSUFBQUFBQUo0QUFBQnRBR0VB?= =?us-ascii?Q?Y2dCMkFHVUFiQUJzQUY4QWR3QnZBSElBWkFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFFQUFBQUFBQUFBQWdBQUFBQUEiLz48L21ldGE+?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY3PR18MB4707:EE_|SN4PR18MB4888:EE_ x-ms-office365-filtering-correlation-id: 2897a2fc-ca7f-4d4c-477e-08db9a2e9c64 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: E5rwRbPzQta5wc+k0mUwMoEovEaFvhcc6icJncEX+AZBKfZHnJw1JM1al9jk9cuJf612Wa+YI4TWC/ALi/shBegZaI2XoF+Q9+Hgu4W8LOlxhKI6OeuAzr9ZTC6Y0vc+dNKgkAmepg318JnwPuLPa+5mv/CMFSdnSwKUBX6z3IlVdhHgvg4Ywhw91nGsqb2pIWk29/llWqaO0LAV9rnKtsDGxcWiPjUbW8XfOeV6eW6Do0iDZB3f3NPo8QuNGMut2HAIPs/o2vaX1EUGj5/kIuJW1H7hwA/8J9ci+D6STf0IFO+fM8sjcpDf1HZYnRGe4kDHsKQ0wMp9/LWS1/jvGoB+MlpXgD3H0U1pahUTRp7+HtbWCQXjFfoKWmSB3/sUK/3howZY8x/PcCCHHOmqQQxWFKHfLvh2O394mNyJ95xApHyv2Nt5Snyiewv2jzclpB1Kzv5x80ssohEmdWWZ4pJgfCBPCo11Jaz22WucUd2g9BOleoKkjkWtqtrFLcr/DV75G7UiDNS//9xWpvm3BdKYLcDBdb0p8elEs9vyPYVw6bj0qBbswesztkofCqWChSAz+6mkBa6P7/OdmaUUKB6M5ZQL+FKIr1pLBG+FRazAyUXK3jmst4VrnMoH5oWq x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY3PR18MB4707.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(346002)(376002)(39860400002)(366004)(136003)(451199021)(186006)(1800799006)(4326008)(83380400001)(2906002)(38100700002)(54906003)(86362001)(478600001)(122000001)(55016003)(107886003)(5660300002)(26005)(38070700005)(71200400001)(6506007)(52536014)(316002)(9686003)(8676002)(7696005)(8936002)(41300700001)(76116006)(33656002)(66476007)(66946007)(66446008)(64756008)(66556008)(15650500001)(53546011)(6916009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9oL6sJfjPZDWDEQBShdwlEz3La7gWH8Uy4Ar/HDXdhFo7iKMhYeDtFf/2ERK?= =?us-ascii?Q?qsUe03DImB75UJt/7ylroBqmIVPL9+E+eXSST8zerqAhTC4Iv3J/Lc9AOr2A?= =?us-ascii?Q?VCZMw7psKdXXSNd+7XuBiJ9+yiN0uL3KzdwromXydGml0/bcJ3NHzSzw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orjLqsAC5edXr4NbDEyENwVWWKrxsi1PSPhXf+/oOIi1bnqm5uCd?= =?us-ascii?Q?MYXHnWo3Jv1i7ut1b4qgU5EA8KjRwjdA0aNMoI6G7eVbOsXYKFVeRQLlMN3b?= =?us-ascii?Q?bk+MEPk62xOaG+K+xtbT6HfexH706GD5xGOpaMRUfikU/xunViGENkpQL68E?= =?us-ascii?Q?qYRLX0pBzDdedOLiZ9Uivgx18Qi+1KtyvrJsDM+WjFmDFRf1MMA7IGu0PdHq?= =?us-ascii?Q?vmc+zjgbQ9eOqnhOlNYx59CA97kMatTd6AJ8BSXCg3dg2GDaIk2Xp9Z7xIZT?= =?us-ascii?Q?pmoOzOoIbzXXsCL8VnPB+ZbNdOabNHOt3W4NQv5Amke3QqlivE+doXqGGrbg?= =?us-ascii?Q?J1L8/bfCSlnpJbW2A6QTzYniUJrsRbaZQW886Yrc6xBplWW8/TghMq0EXlg9?= =?us-ascii?Q?gkQct0v7CYRexxFflX24/u2VOoSg7GAh1oYmQCIGpUN2zKGkD2ImwuxI7Ys2?= =?us-ascii?Q?+vSK8izMA+p3qdldqGt2iOvQJNLJ2t6hvrqr7tdO5taLH0Q1obRoZJix3XxE?= =?us-ascii?Q?lfbLCjr7k5FPHCEyE2BBgtc4JitjAQYYGEHV4E3J?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR18MB4707.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2897a2fc-ca7f-4d4c-477e-08db9a2e9c64 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2023 05:48:38.5844 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tvi3hZAIOJIZZB+xztoCVDsWHKiII/Ch9FyGpuPncAnfNAXpATG0DHpqUnRYlK4vNFziahXbW6tO0DbLG+mGqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR18MB4888 X-Proofpoint-ORIG-GUID: Tah04fgDMEhcfvuZ8twxsk7nHPek-P4I X-Proofpoint-GUID: Tah04fgDMEhcfvuZ8twxsk7nHPek-P4I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_20,2023-08-10_01,2023-05-22_02 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Jakub Kicinski > Sent: Thursday, August 10, 2023 4:20 AM > To: Sai Krishna Gajula > Cc: davem@davemloft.net; edumazet@google.com; pabeni@redhat.com; > netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Sunil Kovvuri > Goutham ; Geethasowjanya Akula > ; Subbaraya Sundeep Bhatta > ; Hariprasad Kelam ; > richardcochran@gmail.com; Naveen Mamindlapalli > > Subject: Re: [net-next PATCH v2] octeontx2-pf: Use PTP HW timestamp > counter atomic update feature >=20 > On Mon, 7 Aug 2023 19:35:35 +0530 Sai Krishna wrote: > > Some of the newer silicon versions in CN10K series supports a feature > > where in the current PTP timestamp in HW can be updated atomically > > without losing any cpu cycles unlike read/modify/write register. > > This patch uses this feature so that PTP accuracy can be improved > > while adjusting the master offset in HW. There is no need for SW > > timecounter when using this feature. So removed references to SW > > timecounter wherever appropriate. >=20 > > -#include "ptp.h" > > #include "mbox.h" > > #include "rvu.h" > > +#include "ptp.h" >=20 > If you reorder the includes - maybe put them in alphabetical order? There are some structure definitions in rvu.h which are required in ptp.h. = So, re-ordering in alphabetical order will give compilation issue.=20 > > static bool cn10k_ptp_errata(struct ptp *ptp) { > > - if (ptp->pdev->subsystem_device =3D=3D > PCI_SUBSYS_DEVID_CN10K_A_PTP || > > - ptp->pdev->subsystem_device =3D=3D > PCI_SUBSYS_DEVID_CNF10K_A_PTP) > > + if ((is_ptp_dev_cn10ka(ptp) && > > + ((ptp->pdev->revision & 0x0F) =3D=3D 0x0 || (ptp->pdev->revision= & > 0x0F) =3D=3D 0x1)) || > > + (is_ptp_dev_cnf10ka(ptp) && > > + ((ptp->pdev->revision & 0x0F) =3D=3D 0x0 || (ptp->pdev->revision= & > > +0x0F) =3D=3D 0x1))) >=20 > Please refactor the revision check to avoid these long lines repeating th= e > same logic Sai: Ack, will submit refactor changes in V3 patch. >=20 > > return true; > > + > > return false; > > } > > > > -static bool is_ptp_tsfmt_sec_nsec(struct ptp *ptp) > > +static bool is_tstmp_atomic_update_supported(struct rvu *rvu) > > { > > - if (ptp->pdev->subsystem_device =3D=3D > PCI_SUBSYS_DEVID_CN10K_A_PTP || > > - ptp->pdev->subsystem_device =3D=3D > PCI_SUBSYS_DEVID_CNF10K_A_PTP) > > - return true; > > - return false; > > + struct ptp *ptp =3D rvu->ptp; > > + struct pci_dev *pdev; > > + > > + if (is_rvu_otx2(rvu)) > > + return false; > > + > > + pdev =3D ptp->pdev; > > + > > + /* On older silicon variants of CN10K, atomic update feature > > + * is not available. > > + */ > > + if ((pdev->subsystem_device =3D=3D PCI_SUBSYS_DEVID_CN10K_A_PTP > && > > + (pdev->revision & 0x0F) =3D=3D 0x0) || > > + (pdev->subsystem_device =3D=3D PCI_SUBSYS_DEVID_CN10K_A_PTP > && > > + (pdev->revision & 0x0F) =3D=3D 0x1) || > > + (pdev->subsystem_device =3D=3D > PCI_SUBSYS_DEVID_CNF10K_A_PTP && > > + (pdev->revision & 0x0F) =3D=3D 0x0) || > > + (pdev->subsystem_device =3D=3D > PCI_SUBSYS_DEVID_CNF10K_A_PTP && > > + (pdev->revision & 0x0F) =3D=3D 0x1)) >=20 > why are you not using cn10k_ptp_errata() here? Ack, will submit the changes in V3 patch. >=20 > > + return false; > > + > > + return true; > > } >=20 > > -static int otx2_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 > > delta) > > +static int otx2_ptp_tc_adjtime(struct ptp_clock_info *ptp_info, s64 > > +delta) > > { > > struct otx2_ptp *ptp =3D container_of(ptp_info, struct otx2_ptp, > > ptp_info); > > struct otx2_nic *pfvf =3D ptp->nic; > > > > + if (!ptp->nic) > > + return -ENODEV; >=20 > Is this check related to the rest of the patch? I will remove this check and submit V3 patch. Will submit this check as a s= eparate patch, if required. Thanks, Sai >=20 > > mutex_lock(&pfvf->mbox.lock); > > timecounter_adjtime(&ptp->time_counter, delta); > > mutex_unlock(&pfvf->mbox.lock); > -- > pw-bot: cr