Message ID | 20210216190710.2911856-3-Shyam-sundar.S-k@amd.com |
---|---|
State | New |
Headers | show
Return-Path: <netdev-owner@kernel.org> 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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 43D82C433E0 for <netdev@archiver.kernel.org>; Tue, 16 Feb 2021 19:09:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 23C4E64E79 for <netdev@archiver.kernel.org>; Tue, 16 Feb 2021 19:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbhBPTJR (ORCPT <rfc822;netdev@archiver.kernel.org>); Tue, 16 Feb 2021 14:09:17 -0500 Received: from mail-bn8nam12on2058.outbound.protection.outlook.com ([40.107.237.58]:51168 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231247AbhBPTI5 (ORCPT <rfc822;netdev@vger.kernel.org>); Tue, 16 Feb 2021 14:08:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KBU1My5xoFF1aA8Q51D7+PzPLbBYyQQPVxxCFm6/Xe3ScK00dC17r2za+5Zk7hQFGe2Szxn8IgIqnNXPeqbR4bzgc0GY7gXGfdz0MR8Q2jmEBG/NQybGBse8esa6nuSUoF9EZj1410OUr2ZRAnyw1UmX+m5tyiN4O1nz5v4Y2V7mIuwKT3lFXJM0lyWM1fysgnipuwNeHWk2iW/jEjg66xmL4I2gLkVMZZbDToN5hfopfYURF8vmfAfdlaj1hYH7Gdvnpn3LWpXEo1PcQkydHWT2hJJYCBcubzYGHgVwOoF7IWbiiciatqMa5sMMVaxnxvyDcg0VgYDIiIfXemZ4rQ== 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=TIqzXFiat7pbIGtFHKIXloHJf+aIrPnyJzi7SW06kfM=; b=HFDreeKrm4HeT0dvxgAeFfI9TDqBaCz5Ll0G+jyXJwpa0NeLKtNOWH/ZQckO2AJcHzGlmlY2vKEw3iaGrMoXd4ufk7gUaXO/QiJV2jSuRKxsUXvMzCevdQlEvCvKIh2LaOygQHSkxUUqngZtpiK01E9Ga4nFLW3Jay86MvlRjE2feWp7ozOg5wB464Yd5N4Ez1QEFnlHEh2dcF4vEgHOWfXcWPCLbasJoYDEg1fuky7EgQbzxwsNEhxBk6zBMnN1xo/Rcq8gNhD86brN3LBJ4RMVlL842skqeOrbYciL7E+fVMZ4gUnmxGGQDSquzSvwEPz7qkbE8hmyg0RjNKEGAg== 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=TIqzXFiat7pbIGtFHKIXloHJf+aIrPnyJzi7SW06kfM=; b=twq6NePJ44AKqc79SZy8WnItdK4yDWgqmrgc3y44T6nOE8GEPyynSxX09fDLPoHzEcaRrKnZ1bX5KM7LZ22SWOOxG3ZoZx0fq1KFQZ3zR2y3IeKyXKav82rFx2mJS7YrnYyUpXdZZjzNunHK9HTlLNEXbq0GN0mdG3sNv22ENtE= 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 MN2PR12MB4112.namprd12.prod.outlook.com (2603:10b6:208:19a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Tue, 16 Feb 2021 19:08:04 +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:08:04 +0000 From: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> To: Tom Lendacky <thomas.lendacky@amd.com>, "David S . Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, netdev@vger.kernel.org Cc: Sudheesh.Mavila@amd.com, Shyam Sundar S K <Shyam-sundar.S-k@amd.com>, Sudheesh Mavila <sudheesh.mavila@amd.com> Subject: [net, v2, 2/4] net: amd-xgbe: Fix NETDEV WATCHDOG transmit queue timeout warning Date: Wed, 17 Feb 2021 00:37:08 +0530 Message-Id: <20210216190710.2911856-3-Shyam-sundar.S-k@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210216190710.2911856-1-Shyam-sundar.S-k@amd.com> References: <20210216190710.2911856-1-Shyam-sundar.S-k@amd.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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:08:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c115b4be-3ba9-4052-660c-08d8d2ae2f84 X-MS-TrafficTypeDiagnostic: MN2PR12MB4112: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <MN2PR12MB4112B971EB53FC74EDC61C7F9A879@MN2PR12MB4112.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M3nEi2Ko8wWiL9VnG+ngNGP3YAhQxYCDTHpwTutofnXKuIZfxr8aQqIDxki/WlAOwYDJAQOcHh65pzTDGeGD5fruXXbiqkdrosYgl9wTewdfo/oKDI6RiAS7kdRfevNjf2sSiLXrFhLOtvDzYhOm0OyOcCDdVN418BjSrR8p+NE5Vf7iiF1g3ozYdPoK3nDAY54RcHWDIFCHNkwMrYR6ucWqLq7tSi4dDWAg3bvDAMZlLgGO8RFAbu2SX0WFsmt/hBUHmPoOt8WcTX9o2r/dIzOOWiTeuePy5nM6wFXTgW1QoCC6UBbnKivpzu15AEz2gxmLyJJNPBSuSN6Z1LBl/qE2+yB4SNZ0lRiv2LlR0V6psK9wYtbjse8m69ZCwbrsjb9Dnom10FLcH1B5LEmpcGSZr6rrONRIEy7bl90iyR6vuLkHz1B8/LrV9JgL107qMePUJLBVMM/IYjNhdYiRYOBJHJvlWchVsVh7H6ZLB2JkVLVlBtRxq/T/PD8emz9eESS27ORboqiDgPlcEFalQQ== 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)(39860400002)(376002)(366004)(136003)(396003)(7696005)(54906003)(1076003)(83380400001)(8936002)(86362001)(66476007)(2906002)(4326008)(8676002)(52116002)(5660300002)(478600001)(110136005)(186003)(26005)(956004)(66946007)(2616005)(45080400002)(316002)(16526019)(66556008)(36756003)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1JqZa2YYajhtsUU+YkMVpTMp2KcJiRE6oLaVzw/tocDVfYKMlnYXRqM7s6kclzrBeTgfDUHkR0EInmcAA2M7neMuYSQESiczmtoFAB/R0BP9ZJ7Np/ZoNqgGZbebeUj7DrTCbdvIQjYvkOpq5NC9GGwRbC+XQU1hNZHB/PdCypIf0YXVRwMmSb6YL/3oKfi8n5yU+GgT6rnO/5jnjZ7remsYeBJoRC0BAYyF+fz/7twQ0M9sqiyJu725tEvTd8/lVyDnbYKhzREyxK1BIUC5n/FRr2QGD2NXA6rlfa+xFzpAFm+15aGE0hDFZd5lRF+MrP9nkYuB11Z/hJhvcMtUqILWKnjLjOscUijvWYjJ3eqIaPHmd5GdG9SPIJhcDKKQRi4jJg4IB5X0OePKnPF8KhckEThzL7aZQzgueVnPI4s984rWd1dq7ZvMSk+UEBLkY+O90+XKbrSXzJ3Bt/4gVZCr9tjN1LatukX6HGt3j0M3N6MNlRBDfYXsvifUtb7OKHx5G6Sa+lZbj8woK0rcWBZevY+kg9JSW43Fe7tBQIxT7OqWUMstG7jOiIAno2AuBVvUSs6B1BgGrBKEFB7Z36gaPeEakBO5OxSySzVTzqj4/Jg72WXGIQKZqOjMiDSm6TV/YGRwh+MbsMs4RUyl45zhOaCuVbG8Q7uFb11hIDexrpqXNXrir5+c76IEJiO8xmGOsMKsKXFmacAbFPteH3CFvvIzbb1rUlUkNYR93sbZCFMHYvaRL1xmqhgERA2+1Zno/fzMWqEXFI6xZMWE4m7QlqmBQIfkrmS+oPdg7tSyN3M9YS66gL0kaFogyXFgqBmrSp4Kmg7RfByE6i79sJub/WBfTH/DceaFHP1Uu5fzesUUQvDEggKkegCAglja4ShD8KXMDpjuXp10w+dpMf7tL2gmiafHNFHModdX2jDF3ii1ePNvsxwi3tXrokyOOgsf8YxXOo8DBIGawU1ceT4P+vr6UGOEjZjSRHsf+7XIP8xja1QbPylusYcR6dblG0QI0VmcTGFyWVIn22QcH3HmGgea/HJMmeSjY8tcJOy/NAN2haqOlTvkCBnDVzexC06wEOBW7FtDZShmv9uiLTGb1NPYYRuRWsIYubPQQk0Zj7DbrNq2KGPGMXPds4xo6npYeQ5w7kvnhwwBO9IjTvaVlYbR7aacCGPKw8xWd0KndGAi+w2KZUBOm0WK4WFAQ2gB3AH70L2+wFaJkYL3u+pLkdJucQdx6tzgAu/Mu3o+sb4kgDRjXvLx/bKVXnBfAWVHkH4WkuMMc3t+RVyQLOViyZklf+eAnqvWvn8K9cxF8Ttmi2VZpd2FigZb1NZp X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c115b4be-3ba9-4052-660c-08d8d2ae2f84 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:08:03.9351 (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: xD34UpfB0ovUazhJQjrNRgeGf0+IIWg/1KXkEP6YmBs3xc6rbp6TuqMYklTIiLshLOHFhUT8SLKuLLMbvdLIjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4112 Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
Bug fixes to amd-xgbe driver
|
expand
|
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c index 2709a2db5657..395eb0b52680 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -1368,6 +1368,7 @@ static void xgbe_stop(struct xgbe_prv_data *pdata) return; netif_tx_stop_all_queues(netdev); + netif_carrier_off(pdata->netdev); xgbe_stop_timers(pdata); flush_workqueue(pdata->dev_workqueue); diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c index 93ef5a30cb8d..19ee4db0156d 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c @@ -1396,7 +1396,6 @@ static void xgbe_phy_stop(struct xgbe_prv_data *pdata) pdata->phy_if.phy_impl.stop(pdata); pdata->phy.link = 0; - netif_carrier_off(pdata->netdev); xgbe_phy_adjust_link(pdata); }