Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17452881rwd; Tue, 27 Jun 2023 03:17:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45xiKXN3ZUcglXSCOMNwnGLDDm2nqIL0Yl801bYoTrVUIdufXeXT5Bd6gChcX9F4qEdae/ X-Received: by 2002:a05:6a00:139e:b0:677:e738:9866 with SMTP id t30-20020a056a00139e00b00677e7389866mr5417293pfg.1.1687861046175; Tue, 27 Jun 2023 03:17:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687861046; cv=pass; d=google.com; s=arc-20160816; b=EDSrP/Yuczo2MAyBPxAYkjewRofCWl83L+4RuiuybePkm19HyEKcRc80a0ZxHC1/WU k7HRUYqTg1TLhrp/Y+gfYV9P+e36GzwBdWYf0jHvttiPkv/WE1r9k17RDrQnsUTCJuXf 7WbQknDrLFJ66Jipl5oFh6E2/z98bscSY9Pk5d8PFB3TQSmJeRKCsEtn6opCSwAkLd8v 0fJdBcYli3xV35c7bukS3cO9511Wcl4/H2WexxZcjSrCLPj2gcVrbZK2odHHh1PBWAPI SrhC4wiXXKWXu2bnvxpw4XCKsXjaO5CqH8yuZha1xa05+EqQwv1xjk67mpRnTvCHpTx/ Zu5A== 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=l7heYl/XOUrCV6rppMlz4MHksi6bF0TIBx48rlDObYY=; fh=63OFRaH/rRNj0tTe5mH4F/8A/OlOYSJNv+HmIVJRciY=; b=adnR+mPIpAcOcSl/DupzdD2vML6B76r66ojpKFV9J66B8aUSgvGuyKKg7TkhUtVkFX iKnamF8z0hh7F5094PGkBp6YJnohNN/BNk8MIPSwFzxpHvTCu1mbkkJEeGueq+t57C8e FysQ4IiCaHE5hgLzJQWQCpF9ruyTrIpEndv/fbZzWInezxPMHUql/qn/pGdHGpnIH13w sIXGmY8XOi4bQ/fBV05EXqhfjhhEHGylpUsi/bzTYbJ0Osi09VHoeGiYkDTSff4opZF7 GeKQyfqF11rXOKMFxRqVSdjTIC/BeN/kXo+ZhPQByfZPXrJ/A0GTTYGiBkaOT16ymJk+ 15zQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ITPF2qM9; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb14-20020a056a00430e00b0067d77ec0d2csi1078477pfb.123.2023.06.27.03.17.14; Tue, 27 Jun 2023 03:17:26 -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=@amd.com header.s=selector1 header.b=ITPF2qM9; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbjF0JUE (ORCPT + 99 others); Tue, 27 Jun 2023 05:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231942AbjF0JTz (ORCPT ); Tue, 27 Jun 2023 05:19:55 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2075.outbound.protection.outlook.com [40.107.237.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27199106; Tue, 27 Jun 2023 02:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GNiG31g1gxD7rlA6iEtIDONuu6Q0Dayph0wajbwCLbR8ySgwhCxypV0gFcCLjOPzFNyB1dmugHSoF0ayRd/ItCsIKw7cp7X41FkqMAUbcix5qcocv6pD13oqezBtkpN6WV8pVgBi2CNyQb9a+v7VV3QWi5mLs8ja8t3WqxF4ERa80eykkDKvAcLySeqXGiaZwbNau+wsVKFAa/AzxI+LOWPXGjjgNyFHbeMSfaWPrxm4j+UOkn3yYqAd2cqKQ91PD8goorYp25jzEpS4G/oMx06WHiKEu7vltUQu1QM+XPr2/15HIr56bxCdH7VCjCiiRznM1QpAv/0mImzGOgZF0w== 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=l7heYl/XOUrCV6rppMlz4MHksi6bF0TIBx48rlDObYY=; b=Nbsc4WJ1rKYImKzo5XM8UHlwvAS7UNaouIDVCuXFeUPRpZvdKVG9JkPnVZfVPvea8NLW5tCa5hMZeAxaHwFmdSfFlWofHhWxqXFXp8FJxAQZis7K6K1aJRby/cgCMVQW5Ny946bFM4gX/egL99gueaZU3fcKo7xuTqnxAHvnXEYpFDSueIfrYP8LZsGT+saI0I+UNxR4N4mCEdalKJ4mEq8ZvKNVDh1WeDD0rp9HnUQBt+O9PWW+q4SOmPrqjkw8DIN/FOS1VJRlw9YKRFm8MP13X5TgUpNJBw8K0SRF1mL2fqOFeGr82i76x3fJMdXhI/3fvN8cIeNLe2dlo6YGCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l7heYl/XOUrCV6rppMlz4MHksi6bF0TIBx48rlDObYY=; b=ITPF2qM9A0yMpFJjsz3CV3C7dqf/KzNjw/V6ZE6Qwj7TWc57G4OYl0zX+ybqU5oc+G/PFEUsKj3yekkn0jwLf2gi2RGStLlDl6htzTxqcqmYhCzyZXVvXgHRTVlr2PCCr5sSUhcNqu9IWJ9ghxjsb74uXfdJfDecO6b7hXSrhIg= Received: from BYAPR12MB4773.namprd12.prod.outlook.com (2603:10b6:a03:109::17) by LV3PR12MB9233.namprd12.prod.outlook.com (2603:10b6:408:194::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Tue, 27 Jun 2023 09:19:52 +0000 Received: from BYAPR12MB4773.namprd12.prod.outlook.com ([fe80::dd8c:65dc:5934:7ecc]) by BYAPR12MB4773.namprd12.prod.outlook.com ([fe80::dd8c:65dc:5934:7ecc%7]) with mapi id 15.20.6521.024; Tue, 27 Jun 2023 09:19:51 +0000 From: "Katakam, Harini" To: Vladimir Oltean , "netdev@vger.kernel.org" CC: Jose Abreu , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH net] net: phy: mscc: fix packet loss due to RGMII delays Thread-Topic: [PATCH net] net: phy: mscc: fix packet loss due to RGMII delays Thread-Index: AQHZqNda5+DRbHxbQUikxPH5Tvdjz6+eXxZA Date: Tue, 27 Jun 2023 09:19:51 +0000 Message-ID: References: <20230627091109.3374701-1-vladimir.oltean@nxp.com> In-Reply-To: <20230627091109.3374701-1-vladimir.oltean@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR12MB4773:EE_|LV3PR12MB9233:EE_ x-ms-office365-filtering-correlation-id: becf4601-1fb1-4b68-cb12-08db76efa97e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bfatvjbjzWYXPEHksmfGhwTDBQhW9MJMpB1YaDx4dmK6M1gWSR9P8jY6Pgj1fCaVV8afzeyOl21tyAkA5n4ZY7Y/YCTACesnAugbdLMJiWcyBLLfe0V65QNfKoG4tbTT/1MZyTlphMkVaQSrWIjLpEwRtnnKSeZiAhqrRkjHZnWtSmWSBjilNWoyosVvb8LO3z6ZsuUp6RDCMYhPFGCo2kPIpV5yiSrsnfH/WCCedRwMCow4lRhaB5eq6Mac1qTVV6swTGkerg6habDnxPNNTQdJFkYhcdWBhRxRa3I/Pvmf0w8xe65eJC5o7Pbnn3KUiMBCoUXW8aRFRU6xPxwxKUQza+aHbeA61seFRw6XGBQaG683I4oVGSjXUjiIfZ7GjxjHAEbwhBHdZuefrQY5n/MEBZd8+kWWBPpsKo/g1l5r+wH26zmooOmXH35dbETIySZ2jjs+tRogPiGRjtPRD070wzEzyjvGQD0vPHDFb7P1C2dYMKU7p+tyYwd4c2wQewqUiUUBTRA07OhqWKbOAxkmSmqr27nzFIiVD8kK6Se6aMjT8f5a9qcxo1PqA0mifvnfbq3HR5sCgIhnFCRavdMJhYscys50XtU07m3qbce/cdHGnRsnfH+KPWGtoaDE x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB4773.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(376002)(39860400002)(396003)(346002)(451199021)(2906002)(38070700005)(186003)(7696005)(71200400001)(122000001)(38100700002)(83380400001)(6506007)(53546011)(9686003)(4744005)(26005)(55016003)(110136005)(41300700001)(54906003)(86362001)(316002)(478600001)(66556008)(66446008)(4326008)(66946007)(66476007)(64756008)(33656002)(76116006)(7416002)(5660300002)(52536014)(8676002)(8936002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2F2MjSNiuEE0KvqWTIr3U+MDp2D7m+kA6JaUV7+gufKecxUaWy4vzLpfmJpK?= =?us-ascii?Q?S5YEM63M9VdeJbhuRGXN7lNNIaw/nLJ3UktUxinQcoJyG5hISVC9EgnG5c93?= =?us-ascii?Q?EZYAefdM0+4aXC0jyPs4Outhf6an/DykoRQ/GflCDYYBI7EvPp2a0wd/K70K?= =?us-ascii?Q?3Zi2GEXSPsa0NnpSi8Qg+HRGWwb5qQxweDK5DAidlkjorQkmZyR4etuPvKiU?= =?us-ascii?Q?hEowEY9c1DA/QqeGHOUCPxijn17SgHq+8n415w65hpqhfcCM0MezRTG6wCmm?= =?us-ascii?Q?OcYBB973FOY2ag5J/XSag2PprKc8L5/N345zk3qhjM1bXfYzGtvc5PLF3iKT?= =?us-ascii?Q?hdQaXqxjF4fsTrDYpFeiON2R/Vna7ndlysoHgFK6u+ejn46rooVfFtbhBhqa?= =?us-ascii?Q?5jCyDYVMx1YjZ2Hc0P3nPZPGsM4F7Kq3LxWCwlaG4u/YAW7G5Y3xPjXXMfHf?= =?us-ascii?Q?+rFk89Rs2Rsh+nwQaQu/NdCkvSdYoe1FfhLcaOz6XEv7A2M6Itr+jAzyCJQQ?= =?us-ascii?Q?GdOloJ4QYArpIJOO8rXFKl2YkUOCCZBUrhUIj4JGimVmVP4l+dFeRPUZka7i?= =?us-ascii?Q?NsGX9MtdfPhhW8OWAlQ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= =?us-ascii?Q?cMmkleg60iLmmp+M3hLxesFLFNczesPRJbDU7pDVI+4vWD+7XnURY+T34J2x?= =?us-ascii?Q?GoKl5AIPmWLES6zPRKI=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB4773.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: becf4601-1fb1-4b68-cb12-08db76efa97e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2023 09:19:51.5461 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HyAB9ggtpW2xon32TsKLQbh6dRzmJ6tlGKE9BsbW3smSBOdhtuZ2gbjC0RRBoQ2R X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9233 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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: Vladimir Oltean > Sent: Tuesday, June 27, 2023 2:41 PM > To: netdev@vger.kernel.org > Cc: Jose Abreu ; Andrew Lunn > ; Heiner Kallweit ; Russell King > ; David S. Miller ; Eric > Dumazet ; Jakub Kicinski ; Paolo > Abeni ; linux-kernel@vger.kernel.org; Katakam, Harini > > Subject: [PATCH net] net: phy: mscc: fix packet loss due to RGMII delays >=20 > Two deadly typos break RX and TX traffic on the VSC8502 PHY using RGMII > if phy-mode =3D "rgmii-id" or "rgmii-txid", and no "tx-internal-delay-ps" > override exists. The negative error code from phy_get_internal_delay() > does not get overridden with the delay deduced from the phy-mode, and > later gets committed to hardware. Also, the rx_delay gets overridden by > what should have been the tx_delay. >=20 > Fixes: dbb050d2bfc8 ("phy: mscc: Add support for RGMII delay > configuration") > Signed-off-by: Vladimir Oltean Thanks Reviewed-by: Harini Katakam Regards, Harini