Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp656398pxv; Thu, 15 Jul 2021 12:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDAp1/ecdFjF8Gpf5qhN2nXOrjzlvx3QqKw3dGhhpPE7L9+3+wQPEuFjTOAXjhB/aqfyzo X-Received: by 2002:a50:875d:: with SMTP id 29mr9158869edv.340.1626377918549; Thu, 15 Jul 2021 12:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626377918; cv=none; d=google.com; s=arc-20160816; b=Elva9/HYbFI+CpL30zw1Cbq3Jbj/9UVeJYMrNpVSna/1ynJwmPh5ePmx7Y3vwDU64j pBHHGNzJwEkJT0pENXLnKImHs/nj+77aUE5tkuf6rOM7gywbU+b2WjzBtADQEeW29T8/ Xp1JPeNEqH7tzc4byG6Hval/PKvNCL6rAvYmeCgjeLeCHNo8lDu5wTw1decKOZ4E70r/ Y0hnuAtVitTLnUaUsdrXhuxJMv5hncPUmli+od0dZLLAxmYZsBvpH9cfyLBTM6VMX/V7 xgqRd7nTbd0k5jw+b4ZJ+e/4seuLpuCfKHxVn7Ba0Ex6hbngu1hXsQ96T4t3uWdZJYkE qm/A== 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=n1VgzOXlPJ3dhCRS7UAvN6Whw0c32a/8kTB+k/LVGho=; b=iI4LF0AH7VGTvFrQuJAVbau7pH1ft45gsh/4/bCAbzRTXlD/9vwqsl1/EnKvyi/kDu aY6EJ/RRnu1Z9U695xS0HknfgLU9G06uqpzWqZC1f9UWVJ0ZVZWlDyhVSajHuk9DmrZa Irx77i0mxYYOc92NxzOcHl+Yh3JEm+bUpSI0y1fzc+JQ8VkkNAheest/+0ioEl9Dstb7 e9KiLfLsIlj7GJEls+G0hDoZ7JwQTx+8P4GmQlqhEL3J/tXVsZHpNE2HDIkyf/0DLriS 0cOTiGV3d8Wy+PaX0vCVjwAxtWqYDatnLsrv69nGGdeUPOngairvSCxZvGXiT5PLspbm hJ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zzfQqSsP; 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 o8si8333660edw.60.2021.07.15.12.38.15; Thu, 15 Jul 2021 12:38:38 -0700 (PDT) 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=zzfQqSsP; 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 S1343502AbhGOTdR (ORCPT + 99 others); Thu, 15 Jul 2021 15:33:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:49976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244179AbhGOTKv (ORCPT ); Thu, 15 Jul 2021 15:10:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5327A613C0; Thu, 15 Jul 2021 19:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376077; bh=mO31RgJ4+0dZGdoBdyvJ/iWtSwSO7wBEy2554jYBLMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zzfQqSsPHWaGHiomMXZ2NIZZP79fhBmBCfxIfCuppyynJC115ub0rY6YPRlp7fr75 BUCktilPyl/8ZNakbEr8wWQvi1lLI6bEuTwtoevF9p7d6yw3tNnDAeStJSl37EgDma IqXwK+4O0NXx/cFk3dXhGKLyXMachf5jsSnyYqSM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liwei Song , Tony Brelinski , Tony Nguyen , Sasha Levin Subject: [PATCH 5.13 074/266] ice: set the value of global config lock timeout longer Date: Thu, 15 Jul 2021 20:37:09 +0200 Message-Id: <20210715182627.203155588@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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: Liwei Song [ Upstream commit fb3612840d4f587a0af9511a11d7989d1fa48206 ] It may need hold Global Config Lock a longer time when download DDP package file, extend the timeout value to 5000ms to ensure that download can be finished before other AQ command got time to run, this will fix the issue below when probe the device, 5000ms is a test value that work with both Backplane and BreakoutCable NVM image: ice 0000:f4:00.0: VSI 12 failed lan queue config, error ICE_ERR_CFG ice 0000:f4:00.0: Failed to delete VSI 12 in FW - error: ICE_ERR_AQ_TIMEOUT ice 0000:f4:00.0: probe failed due to setup PF switch: -12 ice: probe of 0000:f4:00.0 failed with error -12 Signed-off-by: Liwei Song Tested-by: Tony Brelinski Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_type.h b/drivers/net/ethernet/intel/ice/ice_type.h index 4474dd6a7ba1..a925273c2cca 100644 --- a/drivers/net/ethernet/intel/ice/ice_type.h +++ b/drivers/net/ethernet/intel/ice/ice_type.h @@ -63,7 +63,7 @@ enum ice_aq_res_ids { /* FW update timeout definitions are in milliseconds */ #define ICE_NVM_TIMEOUT 180000 #define ICE_CHANGE_LOCK_TIMEOUT 1000 -#define ICE_GLOBAL_CFG_LOCK_TIMEOUT 3000 +#define ICE_GLOBAL_CFG_LOCK_TIMEOUT 5000 enum ice_aq_res_access_type { ICE_RES_READ = 1, -- 2.30.2