Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1588690pxb; Tue, 8 Feb 2022 23:17:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxG26xcppZ0ueEX+sNTWf4KfFrX65RWREVbRZ+ATP21ReE+01CeOcesiXM3Y/93pKGMs6bw X-Received: by 2002:a63:6888:: with SMTP id d130mr893893pgc.124.1644391035470; Tue, 08 Feb 2022 23:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644391035; cv=none; d=google.com; s=arc-20160816; b=niOJ/ZyLkTbF2m+rzJ2R6Zl24Pt5OX0QQ/dBsixrcdan7dmQ7v8STAi20GMTitQqtD wZTytuuCCvxTSNo5J+3hv9IFHbtqug/KWbRrOjlr+WxUEnSR9uPAIOb6v701LdHBpoGT S4n5/U5AtqQeZVWKp7EDZqzSjyJsEzvDE+5C5s2iobsRr9igJKKDRaMpjjpQ5zYpIPmM 5poSErRdNgHiVOUaegCz9IMIJYwS5ZJCItrn/xsxEVJwGxOp/RNurq76QJlQ3rLlK5yx st2hg88tlLUvEnUA4GneIH9tFATAD4Tw/iqCdc+I9Tz+1/Th3HYA37Mk555dHN5vKm3Y vllg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=USVyxnc2lHy0gZ76KcHoe63Qiy51XRthhz8SDT36Wuc=; b=tZFUJbgpfCPWFzAaGJsWzuSxWNtCg5e5I/ZkmtL5VphJwe3ZCR0GaPzmpLo+Gcef7L /ldfb0n6UExhLZJFBMlZ/gMaWgYSfr+rvAsfzTP+ofKNb4qPkr98KD3ezJOgcxAqTTI1 w7MxXVH8IBb8BK6hH84tUS8GSZPoA2e+ILHNQwmkrt6hwpokSl0CaQnOevX2WK3ZpTFQ t1Qhtk7LoYA6SpQqcoCrChMmXkX9THOws6TVmBT4xOe/QWBCJ9kWEogxPGr8A8dGRIiI cI7fScPutpgc8XlxYZhDRgdCkg179XDsMHar8ZRXtj0ovHArZf2NJGzGG65PCjNeDh6s 1oRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BLe7bW9r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id na2si3167033pjb.134.2022.02.08.23.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 23:17:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BLe7bW9r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D7334E00D0CB; Tue, 8 Feb 2022 22:33:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383208AbiBGLVt (ORCPT + 99 others); Mon, 7 Feb 2022 06:21:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379137AbiBGLQJ (ORCPT ); Mon, 7 Feb 2022 06:16:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 930E0C0401CC; Mon, 7 Feb 2022 03:16:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 39694B81028; Mon, 7 Feb 2022 11:16:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5754FC004E1; Mon, 7 Feb 2022 11:16:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644232563; bh=cqdxJHRXvkiuPyL1bxilU0eE4v8ZoH9JbzQvJTgPsB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BLe7bW9rVBKqrPBskKNTFYSuoy8imUy/n0IsjMy5if9RaHvUxCEcKM7KZ+3Jr4lRC BT1uw+0hHSy25ltrQDmmbOhD+IaclVt3VnBPt56VrYZOuZqQTExRcGRlVYXrXXaF0u OGMFJECD6TefoQBhdCtvZAXx3cxY5xa7NnoK9OJc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sudheesh Mavila , Raju Rangoju , Tom Lendacky , Jakub Kicinski Subject: [PATCH 4.19 50/86] net: amd-xgbe: ensure to reset the tx_timer_active flag Date: Mon, 7 Feb 2022 12:06:13 +0100 Message-Id: <20220207103759.194851868@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103757.550973048@linuxfoundation.org> References: <20220207103757.550973048@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Raju Rangoju commit 7674b7b559b683478c3832527c59bceb169e701d upstream. Ensure to reset the tx_timer_active flag in xgbe_stop(), otherwise a port restart may result in tx timeout due to uncleared flag. Fixes: c635eaacbf77 ("amd-xgbe: Remove Tx coalescing") Co-developed-by: Sudheesh Mavila Signed-off-by: Sudheesh Mavila Signed-off-by: Raju Rangoju Acked-by: Tom Lendacky Link: https://lore.kernel.org/r/20220127060222.453371-1-Raju.Rangoju@amd.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -722,7 +722,9 @@ static void xgbe_stop_timers(struct xgbe if (!channel->tx_ring) break; + /* Deactivate the Tx timer */ del_timer_sync(&channel->tx_timer); + channel->tx_timer_active = 0; } }