Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2785898pxp; Tue, 8 Mar 2022 01:36:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9UAopYlZroIK773fB2FsG/Xe6fDQ0Ksyo9wmlaisFDt68UClt6FSxh5OGwtreVme8ZfKz X-Received: by 2002:a63:88c6:0:b0:37c:4e10:1a1f with SMTP id l189-20020a6388c6000000b0037c4e101a1fmr13722002pgd.162.1646732189166; Tue, 08 Mar 2022 01:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646732189; cv=none; d=google.com; s=arc-20160816; b=EnOE9nrzRK3MH7YBaTPgQf3SLolWQQfVNTPVKqVF4S3pF2lFSFHQf1GH7dVIcq0Efb XK7k457u0panAw3TV0zOrTrVjs8MsRukMv+7nWALu/h83OiwKlpnNTWU+v4b1PLRAa7F lkOb+A08ewUhJ7uU5wYhN6KqFiz0Va/eqw1EVs489LxIDcwSsUQ85K/9IMaTE9t8izqk uY9vADQGFFWqBgMZ8gtuOqDpPYbgFl1twZIDlOqh/ulE1ykxeb+W12aeFcfXOcORLBxn OaN+bJNiDy9STw3cobjGdR+ggERqaFnHhfyEntBQsqaIuY/sMk5XRS3dvl5Sda/rMk0D duPw== 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=pPliAAL+uhDk36MVj68U7bWX+0H+Ev5uVTWIsEjLaCw=; b=SpBqdvtNkY9GRtJ3UdcXg4tF7mEC0jIRU/bI3vyKwIM5A43psKVPpcVmf9j8AzNodp VPiJdW0/G9KijMF91PUhNHN/Mw3YODB1SWhZIhd1H9vNovQuxIv8KBhdNMG47yhMPss3 71sAZmy5aCMQa4idmncfxEzTEMDx+eCvNNUaAeuO8zRhUABhzv1xQlD8wf0foa2zWYFM 2OQRDhu0XzZBwOuFQ/I859L55760hwzCXeuP9jS6bnMKjjztzPMRvvJMjbWujL6NGDrB RnxlY6uNMIJOpIIOL1F33decJIHyKb7Wew+02D22uRJRCxwu4taD/qU5GIHwB2rNPnEp rDcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SyTdki4M; 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 w22-20020a656956000000b0037874781f29si14718901pgq.332.2022.03.08.01.36.12; Tue, 08 Mar 2022 01:36:29 -0800 (PST) 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=SyTdki4M; 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 S236570AbiCGKQj (ORCPT + 99 others); Mon, 7 Mar 2022 05:16:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240321AbiCGKA4 (ORCPT ); Mon, 7 Mar 2022 05:00:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89A627EA3B; Mon, 7 Mar 2022 01:47:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 05AD06122D; Mon, 7 Mar 2022 09:47:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F16DCC340F5; Mon, 7 Mar 2022 09:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646646443; bh=uJCPOqF2xI6+TMmEk1hZkWXqx5KU3QzRdV2V91L7ACI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SyTdki4M8yrrbk7sYhKXrwn4apKu0XtuzbBtOQ1/0uTp2vueByub2tTXoLpy/6Icq FAAKUVCLotwdV3BP2tqmVBRetv4jYYdwyb1xZD1a8VNkUNh37QMwZvS7KWQ/R9wQQr vDqTFjWObuBql7UHRgLh6WNgrJsRrQmUrJI2LhEY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Assmann , Konrad Jankowski , Tony Nguyen Subject: [PATCH 5.15 244/262] iavf: do not override the adapter state in the watchdog task (again) Date: Mon, 7 Mar 2022 10:19:48 +0100 Message-Id: <20220307091710.389352962@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091702.378509770@linuxfoundation.org> References: <20220307091702.378509770@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.6 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: Stefan Assmann commit fe523d7c9a8332855376ad5eb1aa301091129ba4 upstream. The watchdog task incorrectly changes the state to __IAVF_RESETTING, instead of letting the reset task take care of that. This was already resolved by commit 22c8fd71d3a5 ("iavf: do not override the adapter state in the watchdog task") but the problem was reintroduced by the recent code refactoring in commit 45eebd62999d ("iavf: Refactor iavf state machine tracking"). Fixes: 45eebd62999d ("iavf: Refactor iavf state machine tracking") Signed-off-by: Stefan Assmann Tested-by: Konrad Jankowski Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/iavf/iavf_main.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -2110,7 +2110,6 @@ static void iavf_watchdog_task(struct wo /* check for hw reset */ reg_val = rd32(hw, IAVF_VF_ARQLEN1) & IAVF_VF_ARQLEN1_ARQENABLE_MASK; if (!reg_val) { - iavf_change_state(adapter, __IAVF_RESETTING); adapter->flags |= IAVF_FLAG_RESET_PENDING; adapter->aq_required = 0; adapter->current_op = VIRTCHNL_OP_UNKNOWN;