Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp861104pxb; Tue, 1 Feb 2022 11:58:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpVVleouUsKNndm70ieDDsN9Birpw5/jv05rzeNqz8EqURviiPjmwI+6tDdAD9qVMP31gn X-Received: by 2002:a17:907:a0c9:: with SMTP id hw9mr22036651ejc.421.1643745529230; Tue, 01 Feb 2022 11:58:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643745529; cv=none; d=google.com; s=arc-20160816; b=oK1rqJqQMEYQQiHC/okx8P3jpxtjoiQwIW5v7MWci8TwQdWmR6OZg2oEXz3h38ehEQ wiYvET/nxx/jjm5PnS+KZNt4E08WYi1QzOlOstjlo4plUrDa/ijOjAI6zeUIQGBj20ik H3ktigcgd1/z2gSllsyxKVYdu349aPGcXLOBB7Tg82GIJeJFT9Lrnk7EfBjRHmcLBpUq uttP1VDmLj87f7hbcgyNg28ijU3TlqWWwX3EnRIzkYyGz5dQJe5VDzFzkJeura6kBnUr AjuYgiYf3cybL2yYXNV4WslmG9ORZzsnANOzttD5mP5B6TYLkIUKJ99bbbRMdisaJ+Fu fvrQ== 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=D5zWIvVHzoTxGQgk/uXKeDFo8BKNyQcS7pPhb5eJqXA=; b=gqDh0q3W40CFrtXZC6ZQYNFj06jPs2wcYaHcQXBv3+eXlEq6/lgXKjZStrfJ2OhBgi d5KoMZUHojFuBaRKD2wio6gzuefMHa5vHxr8YwiWdebuiYOzV0hjuM/52l34gZmfUYoP EiyE8/bUNW4seMnlk2j31u5IbE0Ic9kFsMA27kIQ3M/QT54p3iVabT+EZ/Th4cxuOp5s fSUYCWJeQKeTVY/sK/WLbw8p/tjzewUxKBsQZe5peMqv21A0+9lqE9ro2hfaGd2HhPlg a9Q4Zylfm5SBgdxcGlz1SQNGjVGtxNR0PD0GCn8/pgqtDSXE1iSM1RnS+VPTTtanhynw kHgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rq4JaleE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si9901344ejo.76.2022.02.01.11.58.23; Tue, 01 Feb 2022 11:58:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rq4JaleE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376387AbiAaLIW (ORCPT + 99 others); Mon, 31 Jan 2022 06:08:22 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:51960 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359210AbiAaLFE (ORCPT ); Mon, 31 Jan 2022 06:05:04 -0500 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 6AE20B82A31; Mon, 31 Jan 2022 11:05:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFD11C340E8; Mon, 31 Jan 2022 11:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643627102; bh=qPmn2951N6S0rKBmkYyFf7WnPt8+8/bb8blm2+jhRxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rq4JaleEY6Rh9AwcviYa7bBg8cSaBNCErPiHOnQkkhAPxCsEmJiKGIC7XxvyFur2w LQDuMxJZRWqUFEjffM+Uxke8OYGwxijylBCRIczEqzJYJFdcs63ZB0Yc9R8Je6u9mO 9isNDtCiIANc9pt8G8vh3e8J89WSUgbqaiW/eLsA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arkadiusz Kubalewski , Jedrzej Jagielski , Gurucharan G , Tony Nguyen Subject: [PATCH 5.10 042/100] i40e: Increase delay to 1 s after global EMP reset Date: Mon, 31 Jan 2022 11:56:03 +0100 Message-Id: <20220131105221.852233473@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131105220.424085452@linuxfoundation.org> References: <20220131105220.424085452@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jedrzej Jagielski commit 9b13bd53134c9ddd544a790125199fdbdb505e67 upstream. Recently simplified i40e_rebuild causes that FW sometimes is not ready after NVM update, the ping does not return. Increase the delay in case of EMP reset. Old delay of 300 ms was introduced for specific cards for 710 series. Now it works for all the cards and delay was increased. Fixes: 1fa51a650e1d ("i40e: Add delay after EMP reset for firmware to recover") Signed-off-by: Arkadiusz Kubalewski Signed-off-by: Jedrzej Jagielski Tested-by: Gurucharan G Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/i40e/i40e_main.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -10130,15 +10130,9 @@ static void i40e_rebuild(struct i40e_pf } i40e_get_oem_version(&pf->hw); - if (test_bit(__I40E_EMP_RESET_INTR_RECEIVED, pf->state) && - ((hw->aq.fw_maj_ver == 4 && hw->aq.fw_min_ver <= 33) || - hw->aq.fw_maj_ver < 4) && hw->mac.type == I40E_MAC_XL710) { - /* The following delay is necessary for 4.33 firmware and older - * to recover after EMP reset. 200 ms should suffice but we - * put here 300 ms to be sure that FW is ready to operate - * after reset. - */ - mdelay(300); + if (test_and_clear_bit(__I40E_EMP_RESET_INTR_RECEIVED, pf->state)) { + /* The following delay is necessary for firmware update. */ + mdelay(1000); } /* re-verify the eeprom if we just had an EMP reset */