Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3098962rwe; Mon, 29 Aug 2022 05:57:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7a+Ia/HFdDEpwT+1hlCJlNUMiKNeW4TYFZYwk94mpntntrlZ6XCX+53soqkPwUWXU2bJX1 X-Received: by 2002:a17:907:16a6:b0:73d:de5f:8b22 with SMTP id hc38-20020a17090716a600b0073dde5f8b22mr11684493ejc.261.1661777866438; Mon, 29 Aug 2022 05:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661777866; cv=none; d=google.com; s=arc-20160816; b=tQKru72kMv3Cxa/k8XOQEbEoSn3lAEdGVrtIWmCV/E2DYoNZcdNQGWQGrUGvV2NWyx 8m2OhITmKeL7W28BCmMy1Q+pGq44JYS+AY7nScethzXp9huEaa72m25Bard/RjAYGUD0 1EckduxIxaTCgyKOZkOSA+BFXLs7VRr9w5ltRMGN+a64488qV5gd+cDUghJPc8nOIVSi Sg1F1CCDf/FVxutrN250nHXNWm8hA8p4Qmc3P8PRTleKWsyhVYNgZhhFFgNwMbgKHjTb EN1E9HM50/Gv3QGaHiDKvVHWkc1MH/S3PMQDN3yQzrFXLm5GLSdsMwYHqObnsgJoxtVX Ie+w== 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=F7o1BTcSW3BL7Bt5hC4fy4Ram+JeiZ+wRGSqUXTGnJo=; b=jytNirwXYof6IHN0dIWMcfcJI9+xp5qpOW7H1w9hImDKxwBENu4Z8ZW8gkhApoWQTA TeWIJKJzfVOdaY/27AnZlgy/YgvaGv1EUvI5Oz3sOnmIgTlefufwelZG03bKNyMsPUZl G6Yw/FLyiCguCOw5z8KDc5/Gwnpa9N+/Y/7l8VbC6qZFbrV/TbuboJARHy/49H+P9Wbt wJOaMBty7n3MLk1/Jt5joEU1lFx3umQeynNNf/2zrJ0ZXfp+TbL1Ki+Zddalg/GVa9Ox y5Ak9Nhampu7aineBFDGT1stc+QJwarpJ20D/PkwKU/ORmIEk8prTiWTv/hmpZR5gw8x ZB+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Owzfv/5O"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a05640211cb00b00443b1e53479si8557733edw.374.2022.08.29.05.57.21; Mon, 29 Aug 2022 05:57:46 -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=@linuxfoundation.org header.s=korg header.b="Owzfv/5O"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231891AbiH2MQw (ORCPT + 99 others); Mon, 29 Aug 2022 08:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiH2MQX (ORCPT ); Mon, 29 Aug 2022 08:16:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0AE3DEAE; Mon, 29 Aug 2022 04:59:59 -0700 (PDT) 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 54533B80EF3; Mon, 29 Aug 2022 11:15:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A38B3C433D7; Mon, 29 Aug 2022 11:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771753; bh=BILumsM7qmpk/hwvCIZjFEGcHsYLV3LR5ngpNbL/JVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Owzfv/5Owvu8QWMUem69ijFbnmDnitN6Ttm+1I0IbfrNkJm34Ro/6hWpAivFVt6vU OAM8kMlPfMGyQZ0/BK7XkqKOrUaFI50A53Cv1zukhcekrRniYBys22casky3ppkcvu N4/m/X4UcqRT0KRxQ4cRVk6Vd2sR/WfWpXK19fSA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shannon Nelson , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.19 087/158] ionic: clear broken state on generation change Date: Mon, 29 Aug 2022 12:58:57 +0200 Message-Id: <20220829105812.704403576@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Shannon Nelson [ Upstream commit 9cb9dadb8f45c67e4310e002c2f221b70312b293 ] There is a case found in heavy testing where a link flap happens just before a firmware Recovery event and the driver gets stuck in the BROKEN state. This comes from the driver getting interrupted by a FW generation change when coming back up from the link flap, and the call to ionic_start_queues() in ionic_link_status_check() fails. This can be addressed by having the fw_up code clear the BROKEN bit if seen, rather than waiting for a user to manually force the interface down and then back up. Fixes: 9e8eaf8427b6 ("ionic: stop watchdog when in broken state") Signed-off-by: Shannon Nelson Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c index 1443f788ee37c..d4226999547e8 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c @@ -2963,6 +2963,9 @@ static void ionic_lif_handle_fw_up(struct ionic_lif *lif) mutex_lock(&lif->queue_lock); + if (test_and_clear_bit(IONIC_LIF_F_BROKEN, lif->state)) + dev_info(ionic->dev, "FW Up: clearing broken state\n"); + err = ionic_qcqs_alloc(lif); if (err) goto err_unlock; -- 2.35.1