Received: by 2002:a05:7208:1509:b0:82:bbfa:f723 with SMTP id o9csp756637rbf; Wed, 24 Apr 2024 18:38:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWw60RrXO07guuaCslzkew0fGbtIZWle940CYVhSlUTd0haPjoHwZvf63N8sPxedkAqxj890CLlz9MuOnZ/q8p7HrBxvHnMQY76LJnFEQ== X-Google-Smtp-Source: AGHT+IGAI/W4M0UB7CSwV1A7xN7mBG13moItd1BGm+cztIUMG0Ba8SJdWwryIhZJonOxzyD2TCCv X-Received: by 2002:a50:d693:0:b0:570:5215:d293 with SMTP id r19-20020a50d693000000b005705215d293mr2737781edi.17.1714009012787; Wed, 24 Apr 2024 18:36:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714009012; cv=pass; d=google.com; s=arc-20160816; b=QimKfLVMd0vts6Bw2rcrHasr4yCT8JBJATPnt+e7R7PYDeyhArNYvdflD/Fz+pYG+F EEXR2LRDCutjrTmbmwJBOsx7k7+K2Tanh6s7ujrpQ2hIx/q6/s8rjZc8vyiivLy5RgsC rxru5nVT8KhhwHp/oZ19nPbw7O4crRuUBmeztnZR4QL4vn+Yqva7kYGQiP3RfJfA5ykG BW7DRaSIa2QwYmokdP4DiEfdk3uz3n/p/X3QzXGD2M6jWqbHB9/YkafShZKD1DT6sEKH NlaTvw17kYINA4vJg3VHAeMBG2qihbUkF58qIFwL7dVsH0+HWnD8LpIfEOeYHP0WHzT1 BVdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature; bh=i5RAFEvP38r+a961SX0tfBJyIu32q/b7hWAnaImObT0=; fh=7zx1O9ayLH/oqK2wsNognp4p7wzZRTSiJG2Cnv67f4o=; b=oX0/ET4w9f7KFOI9U0b6Y3LRA0M/GFKHw0ZrWodlfVNnPU8SqZWSqkQUL5s+ulyxS5 Aljpju1x93PdNDOBAhg03vaz8t70buNoWOa+0/WhJNWXFi952tPbV+KPlbRR4Ezz9vph BJYGyKrbRMXKrTzDjbPBYzPAX96QLiKx3LBcwP+soRgSaW0cR7Rdl8KcIIGKPIwwXVLE g+pOUHosGCf1zbOiGUcG+plkSxhQhwPYsBjPGqdu0G8ZxXsT3w13L9Ioch4zS6DPoQLB D4Ots/ZsdHu1/a5swqivVdJJ9zUsTQuLM5hIrjRvwn4Tb6jLJHUdUIioFGQdsyTD3V4O dUBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=Yju3SB8p; arc=pass (i=1 spf=pass spfdomain=hp.com dkim=pass dkdomain=hp.com dmarc=pass fromdomain=hp.com); spf=pass (google.com: domain of linux-kernel+bounces-157911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157911-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=hp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z12-20020a50eb4c000000b0056e55193a81si9032186edp.383.2024.04.24.18.36.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 18:36:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=Yju3SB8p; arc=pass (i=1 spf=pass spfdomain=hp.com dkim=pass dkdomain=hp.com dmarc=pass fromdomain=hp.com); spf=pass (google.com: domain of linux-kernel+bounces-157911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157911-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=hp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 333B21F222F2 for ; Thu, 25 Apr 2024 01:36:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A06DD101F7; Thu, 25 Apr 2024 01:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hp.com header.i=@hp.com header.b="Yju3SB8p" Received: from us-smtp-delivery-162.mimecast.com (us-smtp-delivery-162.mimecast.com [170.10.133.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8291B5672 for ; Thu, 25 Apr 2024 01:36:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.162 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714008986; cv=none; b=l9AXM7p5/f9ph1lTV9h/MWsQdklyct6AW23hG8S3OrDlv2Bvy2mW77fnnAhvC7N4OAqlp0V79zftijLzDYJOjA1OBeqOJ9t6MtD/dujggJWSVa4r8gPEt0JT+0oxmo63+mQpVleo5mafNfzXDCEdcjpq7brEbQ8ofdEv97TZBP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714008986; c=relaxed/simple; bh=i5RAFEvP38r+a961SX0tfBJyIu32q/b7hWAnaImObT0=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=Az4axL0nlFeslJHZayhsl0aCWzDL8PZUNwMuFrUBERDM/SfgnvTaDc+PqiLN0/ZlyAUUdMFb5oOBbyS5EGn7Jhfz0cn+wxnzGfDk6uDJ6KsSwd7Cvt3M1bLuUBltSEb5ZGA3w0ZzxJeyMNuojdfexjAivzF9Y3nl8rSS/OTWFVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hp.com; spf=pass smtp.mailfrom=hp.com; dkim=pass (1024-bit key) header.d=hp.com header.i=@hp.com header.b=Yju3SB8p; arc=none smtp.client-ip=170.10.133.162 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hp.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hp.com; s=mimecast20180716; t=1714008983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i5RAFEvP38r+a961SX0tfBJyIu32q/b7hWAnaImObT0=; b=Yju3SB8p/zEPWCnxQcSVWzZ88KTzTnTX39wMLUKDqCJhrOzjAmqo4V1F+T3ImoRl/X9Lpk VJf0Et9Edt35eFu1j+gSgKDmqX9kT5/GzyC0nOaunbaR85lkXOh0U6ZqVg9+0dVzSLo4Pn nvFVgIAkRweS8U7GQbzgd9jwSOe/Lf4= Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-424-8wqMumzKMGyZXTQXh4PM-A-1; Wed, 24 Apr 2024 21:36:21 -0400 X-MC-Unique: 8wqMumzKMGyZXTQXh4PM-A-1 Received: from MW5PR84MB1572.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:1c2::16) by EA2PR84MB3376.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:303:25a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.24; Thu, 25 Apr 2024 01:36:17 +0000 Received: from MW5PR84MB1572.NAMPRD84.PROD.OUTLOOK.COM ([fe80::7ca8:95d4:be3e:9ea4]) by MW5PR84MB1572.NAMPRD84.PROD.OUTLOOK.COM ([fe80::7ca8:95d4:be3e:9ea4%5]) with mapi id 15.20.7519.020; Thu, 25 Apr 2024 01:36:17 +0000 From: "Trexel, Ed" To: Ravi Gunasekaran , "s-vadapalli@ti.com" , "rogerq@kernel.org" CC: "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "richardcochran@gmail.com" , "jreeder@ti.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "srk@ti.com" Subject: RE: [PATCH net v2] net: ethernet: ti: am65-cpts: Fix PTPv1 message type on TX packets Thread-Topic: [PATCH net v2] net: ethernet: ti: am65-cpts: Fix PTPv1 message type on TX packets Thread-Index: AQHalhdcGrDqLZJbJk++v+oR/kZMA7F4NTNg Date: Thu, 25 Apr 2024 01:36:17 +0000 Message-ID: References: <20240424071626.32558-1-r-gunasekaran@ti.com> In-Reply-To: <20240424071626.32558-1-r-gunasekaran@ti.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW5PR84MB1572:EE_|EA2PR84MB3376:EE_ x-ms-office365-filtering-correlation-id: 48d69516-007f-44d1-0005-08dc64c81a53 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|1800799015|7416005|376005|38070700009 x-microsoft-antispam-message-info: =?us-ascii?Q?VBheZC8P8EljXODi0ajdakAL67JNeQOSorEHerOIcwL1cpbSz2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jfTkB7v7Ja9Ug8CNU0c9UtvC0IpmFlOJDwRVa?= =?us-ascii?Q?8RzzflCyOUB/gQRGQSHzCm/je2VX2znzqwA9deuomXdER3sVrT7PL4IpfWCo?= =?us-ascii?Q?PYCJluanBB6oUzTj9LRcKZ8I3FhiLEm4uxtEfRki6NHRIU8MEUW4z1EcdzA7?= =?us-ascii?Q?+JASDQUFAllZaoGx1UbgVS7drfvC1w1k+h2JOPRCClQ1k5SzY/AnxnHRqA0R?= =?us-ascii?Q?+SPidYZOy4Lvhv5eZ/Za7l3vqMuIyM7pfwWTxdf4F9ddY8Omm7A9iHPbQCqE?= =?us-ascii?Q?09cmxekq4LEYi5Iu4J+2bOgPk+tQdlNhz8gfkDvFs7T81Xfezo0cP+OmUZkM?= =?us-ascii?Q?AYRdUw5vCZ322KYs0b8wBrRur7ie5M6SkJbN4q6+9HOohY/f2HEWJ39fnbFm?= =?us-ascii?Q?8BoQoCWXEQDKTM1LLlA9gGzOzI+typDaGhB8o1WP2694WQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR84MB1572.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005)(38070700009);DIR:OUT;SFP:1101 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TUT/t+CFEwrZIdCHUqCETKv+NiE4Wqml7fBkYEpyXTBl1nRpbNt2GFwqsbBU?= =?us-ascii?Q?WB29uK0XX9Lni1S391aQnLIWJEVPfrnDTzErpInQknSryJo4ZdgEpFk1i6dh?= =?us-ascii?Q?aPJg4/7XNON92Un7PMU3Ax7zdpVb8nDZhQ16xqpCidmW3xgtRcmfsQV/jaAa?= =?us-ascii?Q?cOp4Tc04fd5MZtvoqYCrswdREEF/KsjGOWlVLgri1+KnQm2C2P69SoMaa8Dk?= =?us-ascii?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9ThaTjTj7S?= =?us-ascii?Q?QWX9KbfLtEROOD2JWSJps1IloDC+W736EDv/AvQ8cwO1O46gL0NQlikUlBLs?= =?us-ascii?Q?yzDC99dNm058EEuv7PEHO/XGnAxPIbj5+SaVlYCVrv/C3/qUBNd0myrcbZ9a?= =?us-ascii?Q?E/SfH6jGH2tmoutziKZfsuB59S5WxOm1sfvs2g/XI+vE3EmDRPcL6CwBiO2y?= =?us-ascii?Q?i0XqVLemsijEsisWUFGw/YMIJu11h1kSKZHXLcz3HyldH6Yc60efhn8FYxP1?= =?us-ascii?Q?hR0h5cK125RuGRIdcHOXjoUHkOAvzZzRFJ+PBhwMQcrurewVefY12B12quPY?= =?us-ascii?Q?eP2vg6wOjnGjc8HodiBezl5jlBJjcFxGL+mmLtduMMlk1ox3Rh+PVu6obKTe?= =?us-ascii?Q?ZOv35PxJXVtyyn3IC+rlus1PFtbDmMQpDYYTJpVat/Pi8LXRZeV1r8vP/fkV?= =?us-ascii?Q?XX9XLuScjCxufCHjFTQ=3D?= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: hp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR84MB1572.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 48d69516-007f-44d1-0005-08dc64c81a53 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2024 01:36:17.7353 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ca7981a2-785a-463d-b82a-3db87dfc3ce6 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1RtaIFC76cQM0i2VwW2KCOwBk+KAkZ5ygsMODgEbQMMY3qb8K4jMlPOcAmzi269WjvSx6v1QqqvzNXfOgsMRUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: EA2PR84MB3376 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: hp.com Content-Language: en-US Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable From: Ravi Gunasekaran =20 Sent: Wednesday, April 24, 2024 1:16 AM To: s-vadapalli@ti.com; rogerq@kernel.org; r-gunasekaran@ti.com Cc: davem@davemloft.net; edumazet@google.com; kuba@kernel.org; pabeni@redha= t.com; richardcochran@gmail.com; jreeder@ti.com; netdev@vger.kernel.org; li= nux-kernel@vger.kernel.org; srk@ti.com; Trexel, Ed Subject: [PATCH net v2] net: ethernet: ti: am65-cpts: Fix PTPv1 message typ= e on TX packets CAUTION: External Email=20 From: Jason Reeder The CPTS, by design, captures the messageType (Sync, Delay_Req, etc.) field from the second nibble of the PTP header which is defined in the PTPv2 (1588-2008) specification. In the PTPv1 (1588-2002) specification the first two bytes of the PTP header are defined as the versionType which is always 0x0001. This means that any PTPv1 packets that are tagged for TX timestamping by the CPTS will have their messageType set to 0x0 which corresponds to a Sync message type. This causes issues when a PTPv1 stack is expecting a Delay_Req (messageType: 0x1) timestamp that never appears. Fix this by checking if the ptp_class of the timestamped TX packet is PTP_CLASS_V1 and then matching the PTP sequence ID to the stored sequence ID in the skb->cb data structure. If the sequence IDs match and the packet is of type PTPv1 then there is a chance that the messageType has been incorrectly stored by the CPTS so overwrite the messageType stored by the CPTS with the messageType from the skb->cb data structure. This allows the PTPv1 stack to receive TX timestamps for Delay_Req packets which are necessary to lock onto a PTP Leader. Fixes: f6bd59526ca5 ("net: ethernet: ti: introduce am654 common platform ti= me sync driver") Signed-off-by: Jason Reeder Signed-off-by: Ravi Gunasekaran Tested-by: Ed Trexel --- Changes since v1: ----------------- * Added Fixes tag as per Paolo's suggestion * Rebased to latest tip v1: https://lore.kernel.org/all/20240419080547.10682-1-r-gunasekaran@ti.com drivers/net/ethernet/ti/am65-cpts.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/ti/am65-cpts.c b/drivers/net/ethernet/ti/= am65-cpts.c index c66618d91c28..f89716b1cfb6 100644 --- a/drivers/net/ethernet/ti/am65-cpts.c +++ b/drivers/net/ethernet/ti/am65-cpts.c @@ -784,6 +784,11 @@ static bool am65_cpts_match_tx_ts(struct am65_cpts *cp= ts, struct am65_cpts_skb_cb_data *skb_cb =3D (struct am65_cpts_skb_cb_data *)skb->cb; + if ((ptp_classify_raw(skb) & PTP_CLASS_V1) && + ((mtype_seqid & AM65_CPTS_EVENT_1_SEQUENCE_ID_MASK) =3D=3D + (skb_cb->skb_mtype_seqid & AM65_CPTS_EVENT_1_SEQUENCE_ID_MASK))) + mtype_seqid =3D skb_cb->skb_mtype_seqid; + if (mtype_seqid =3D=3D skb_cb->skb_mtype_seqid) { u64 ns =3D event->timestamp; base-commit: a59668a9397e7245b26e9be85d23f242ff757ae8 --=20 2.17.1