Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp434635lqc; Fri, 8 Mar 2024 01:38:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUEp9OfD7ZbT/ncM/fw5hxAU8tNFmI0lI6mKtKNjIbr13Q02XnEkAWU0w94fru7QHwi3UMGjLhVFL+xzVz1+zA0w5FKsx+hIZSdgIgwEQ== X-Google-Smtp-Source: AGHT+IF/f7shjOTByg2XLM8HZSEBvwtC5EMzsrqr0TE1wYVhYQkP58w4U0xHc//rsJwUETl2K044 X-Received: by 2002:a17:902:a50c:b0:1dc:3e49:677d with SMTP id s12-20020a170902a50c00b001dc3e49677dmr9322293plq.26.1709890717076; Fri, 08 Mar 2024 01:38:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709890717; cv=pass; d=google.com; s=arc-20160816; b=LIYHr9BUqJcOlN1puqJeh9A4sNmtNEQ4EQ7k5MUpVfohh9j/2TWjtFDTnEnGQdW4Eh 9EomYEAUEfBquDGk8DdJnAQ9g8qF87+4QpJFCfaI35nBh4drh5Ngt3BWvTqwib9mLd97 +xwdVQrSMAWGv8cQkzTEQAkyA46tnPj0cs7iaS3UV+PI7AmbzTxeqY+C5IT54fWojlda R1/ONkYF3pGMzHdHkhZ3WAoga6Vn23Mp60tVww2AY+3FZjqNXFyBdFHbRxN/gXCfjmvI XNBc2hAN32pOZ5DniVTaJMtp9TnOKzneS/FjOGTEQ5AujWemd2HSaFaeBfUSIw5KmGJi tLPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to:subject:cc :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=NBM3HX/hK8juwoAhjLMl+cACL+7l+tnUbk6HIlPOyd8=; fh=hrmyuIyXoR9WvPWTUEjNohWIcHbh+cWr6OPHN8cSzVQ=; b=dj8QqARIPAvu9PQue/f6EnP/MUcOiLb3JlJ6YqJaMVbcRx5lkMXI9ObO7DyoDiiPG3 Z3AV/PzdevHftCP9eARbzhFAfkS4tdWVagTHOIFgwYsFRvZ2Qb2N6KB+xH+SBW4+/erh 4MdvJXPMIemAYWOunf446pH8L6i/bB1uYm9+Y3e1dLvpu87uO+7WdC96OTz4006e9PlZ 0v5Jj78nsXsaokrMlzBgBlgn/dR33qm7drdl+x38sX+dwwA825VPUky6VALlMQJf2+j2 xF+miF+OH/Oyg14FBdE+RWnhlINsa/AHLK4gjYJ82udBmkJ4fhIfTRHx5DzXWn0O/4RG eQxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-96755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h17-20020a170902f55100b001db2ab0f3fcsi16280560plf.32.2024.03.08.01.38.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 01:38:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-96755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BDE1C282BC6 for ; Fri, 8 Mar 2024 09:38:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D76F6535DA; Fri, 8 Mar 2024 09:38:29 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 393F752F7F; Fri, 8 Mar 2024 09:38:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890709; cv=none; b=Jpk7fJHp2waAcG4l3IDLgjsp6pchJ1rlQpSi8cxKluLqHrTHmJOccQyMaZgda8AnZnFFxNGDDw76HWN2YHYS/ojNTY1RAXzELDnpU2u2XjNkvgtXdYkz09oyTq7XxBL6Zd+e9nlAOR60s9JUJ+wOhW8jGDAyUguEm3Mnn+K1Lm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890709; c=relaxed/simple; bh=NBM3HX/hK8juwoAhjLMl+cACL+7l+tnUbk6HIlPOyd8=; h=Message-ID:Date:MIME-Version:CC:Subject:To:References:From: In-Reply-To:Content-Type; b=dXIA+ZyyKZiCjLzK1CXzj667BWS/Cx+5gYsM/vQGS4G23QS0qTvmGNrVw9yQd0tMKrqdlhrmSnriRkYJqyf3xRIV4IAPoYUhcfMCk8oq4UUAy9PY3GX0Jjdn4Ii1aI6Kvia9ZvKi/2p6eRomdB1C8OfINyz9j//Vf9+9SM4Ma7A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Trgyd0q6Sz1Z1MQ; Fri, 8 Mar 2024 17:35:53 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id 4CE271A0172; Fri, 8 Mar 2024 17:38:16 +0800 (CST) Received: from [10.67.120.192] (10.67.120.192) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 8 Mar 2024 17:38:15 +0800 Message-ID: <447cb805-9ad0-4e08-8038-45e3cb8c81fe@huawei.com> Date: Fri, 8 Mar 2024 17:38:14 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: , "shenjian15@huawei.com" , "wangjie125@huawei.com" , "liuyonglong@huawei.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net 6/8] net: hns3: fix reset timeout under full functions and queues To: Sunil Kovvuri Goutham , "yisen.zhuang@huawei.com" , "salil.mehta@huawei.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" References: <20240307010115.3054770-1-shaojijie@huawei.com> <20240307010115.3054770-7-shaojijie@huawei.com> From: Jijie Shao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600007.china.huawei.com (7.193.23.208) on 2024/3/7 19:24, Sunil Kovvuri Goutham wrote: >> In order to avoid the above extreme situations, the driver extends the reset >> timeout to 1 second. >> > Reviewed-by: Sunil Goutham > > But one observation, loop of udelay(1) for 1sec seems a lot, probably better to use usleep_range(). but this is protected by splock, so cannot use usleep_range().