From patchwork Tue Feb 16 19:07:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shyam Sundar S K X-Patchwork-Id: 12090517 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04F24C433E0 for ; Tue, 16 Feb 2021 19:08:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CFF7764E28 for ; Tue, 16 Feb 2021 19:08:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbhBPTIf (ORCPT ); Tue, 16 Feb 2021 14:08:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbhBPTI1 (ORCPT ); Tue, 16 Feb 2021 14:08:27 -0500 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-co1nam04on062a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4d::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E806C061574 for ; Tue, 16 Feb 2021 11:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EE6P50UNX32ecpaaLlFNPqXGtvXt0s1KjoHlJd3LggK0gU8qiGd/1BiywAENB3jR8eziZA8tYf2OMHw1y8+qQlH9EPvFXftaHrGSATrfMne8y2b07u2TqkG4AffkFXD3exHIt9SjwI46qa2Hip37Ox3+74JKD8KB7/ClKqcSLjm7mqG4HTsRNZXktG6MRcPl71XWpBfP4hGCLpvkJHUWKoV5BbhdmUF8WF/4S0EWnLwx6W48uZp+rJv6wx4FOTNv01qz83ISw+D+DYypQ/TSNGCVSpyLLkFsS/YhWFO+lQTNuSmggt+mZF0UjwqibYvPcpwSvU4pyMOeqBd5x1oYDw== 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=yqmzIL/DTiJukm6FIa/TyiCg+LtcycmND4ss9+qusio=; b=IvqI9whdUbfOUfKnW352sPxvH7tWSUkcGdevREP+OmuxnXnm8LDdSND+t/Z6H1m2fAOKoiGcjJwKBXrocnTz6NhsXTDgyHE9TsW5PhujProWhGPCnrA4uCXkHCQxAxlOv1gW1tsYG++AkWO5Z/sij59bs7wKWePhh6g3nppQf9deks7OwmdJg/mHmrzU9hzp5TAIiQ1/pcviuw/LivEBZJiWnLRUEryBKAS/tG00Z8//qlSE0r04Fy3rw/+AIW9hMqnzTE3OV4UUO5ckjkqTHv4RAEVhaOlF6TTMxVFx2adzKSj5+/bUf27y7pX9V6UHnLHYksIoH1QErusowaCX2Q== 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=yqmzIL/DTiJukm6FIa/TyiCg+LtcycmND4ss9+qusio=; b=k6bLZndJ06o/XJ7Ksng1FtyMFegovyEc/ZAd9ctGF06qpnzYHBjimgivoGsIWte9NX1Zxv/oZ8f0saHi3JSr9cmudrvetB0lYb3+9zCw625MbWvzaCOBsQJ1s7v5X5s3BoNvvgBQrRUPuHdb9d8zIykqvgX4SZqczFMruJ3eGFc= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from BL0PR12MB2484.namprd12.prod.outlook.com (2603:10b6:207:4e::19) by MN2PR12MB4334.namprd12.prod.outlook.com (2603:10b6:208:1d1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25; Tue, 16 Feb 2021 19:07:39 +0000 Received: from BL0PR12MB2484.namprd12.prod.outlook.com ([fe80::5883:dfcd:a28:36f2]) by BL0PR12MB2484.namprd12.prod.outlook.com ([fe80::5883:dfcd:a28:36f2%6]) with mapi id 15.20.3846.031; Tue, 16 Feb 2021 19:07:39 +0000 From: Shyam Sundar S K To: Tom Lendacky , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: Sudheesh.Mavila@amd.com, Shyam Sundar S K Subject: [net,v2, 0/4] Bug fixes to amd-xgbe driver Date: Wed, 17 Feb 2021 00:37:06 +0530 Message-Id: <20210216190710.2911856-1-Shyam-sundar.S-k@amd.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MAXPR01CA0074.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:49::16) To BL0PR12MB2484.namprd12.prod.outlook.com (2603:10b6:207:4e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from jatayu.amd.com (165.204.156.251) by MAXPR01CA0074.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:49::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Tue, 16 Feb 2021 19:07:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: aad0fe45-b540-4d00-2d81-08d8d2ae20d4 X-MS-TrafficTypeDiagnostic: MN2PR12MB4334: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aeWNTpQ09CMo9/YT4fj7TXCRa0jN63I8cfFByXVFp5QiD4I8PhVx+CZR2CJADQaoLJh0yEhWda+5zXoArCXgkdkTQ8Ih8NHlK7C9iYWYCe3/U1GvosAiVOYRVCb5luWQPeiJnuXF2zcszZTQISa/shd7St33AG6s7A8PAc+PCdl7yMCbJgnL/u7FcQkv5vjwhR43mGIanOCfgmiiftwQsYDrm9i323Bw/rT7Q3mqcMO3DefQ/MIUqk7XSTpqwLlORC1y2Th0djBNs80H2IoITbjNRWXYcAmVWOOfnMnV3oKFDSmpk9LuezRNbYRg+f32vDkPn3anzWrm3mKs//aTg6RMz1ydmBWsr7xaUFNg4iHaBlxyoXIGEsu/3a1Ajs9fO96UMVN96JsocTeWQqz0oRZixj3XWKmDnuvC8RWKegRwyOuw4rE6Sl2Ur6B6XANXCrFGGYxuWrcBwZWL9wqhG8uHr5kecJCAwfyBA7bpfi+2+6TCDTFmG7S82iq796jK9VcG/nO/nAevNQkisIaF/w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR12MB2484.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(396003)(376002)(366004)(39860400002)(136003)(8936002)(36756003)(7696005)(52116002)(956004)(2616005)(1076003)(4744005)(86362001)(316002)(2906002)(26005)(66946007)(5660300002)(16526019)(66556008)(66476007)(110136005)(186003)(83380400001)(8676002)(6666004)(6486002)(4326008)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 5jmgsSJ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+UmUO4rxJjTrfu+3AyPRfLV6Nnd/cXnlAvsjkETmMlZs7K95N5fZMdi2NEKmm9IidDqiTKR662dRELEEEkauBhixJDXrgH2zylSJjc1h1Hd1frJGLntHDsnUNzNUXfDI7jhHRN9V2n//LomDFNgkoVXieEnSnQxthu5wuyCum1p/xOV34VEATPAyUJNoKZ6zmybgmYreSjLIhUO2WRRz0BGVzpZJZuTmmKssjtrwmt8PxK79oZvsqcsp1FTQWCynOkqXQL7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: aad0fe45-b540-4d00-2d81-08d8d2ae20d4 X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB2484.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2021 19:07:39.6550 (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: iOM2SkDwor1uJKbJDAmdSqzg58DzkLDCzQUMamk3fB4qD34oJyJHtcANMooJqgx/0Z6rDniXPt1+YvIhlqSBjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4334 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org General fixes on amd-xgbe driver are addressed in this series, mostly on the mailbox communication failures and improving the link stability of the amd-xgbe device. Shyam Sundar S K (4): net: amd-xgbe: Reset the PHY rx data path when mailbox command timeout net: amd-xgbe: Fix NETDEV WATCHDOG transmit queue timeout warning net: amd-xgbe: Reset link when the link never comes back net: amd-xgbe: Fix network fluctuations when using 1G BELFUSE SFP drivers/net/ethernet/amd/xgbe/xgbe-common.h | 14 ++++++++ drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 1 + drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 3 +- drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c | 39 ++++++++++++++++++++- 4 files changed, 54 insertions(+), 3 deletions(-)