Received: by 10.213.65.68 with SMTP id h4csp1031919imn; Wed, 21 Mar 2018 00:22:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELsvvcqrDyLf+YezReHmxcmQ0GomzwF23WfU1rekkvymJiUYTvuSgcLshtNjH7uEbyrxdwiL X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr1581904plc.214.1521616948475; Wed, 21 Mar 2018 00:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521616948; cv=none; d=google.com; s=arc-20160816; b=UCIo3Ktokm7zHlxKg4SEaFvQvssDBaiDWYwrt+cSBDVt0n637vQie5FHLcIGrZ9Csz 1tazHbgp/YwKrKvhbmDwIyFC7wVvNCyG1dpQQiUh0xn6AbUZ4cY35rXJajgO5PsZNOas fWH309dD7l7TTPQWT2uKb7bt2bayEkQSh3lhyx7rc6uaHLXxt0TEJqbtocWWc+uWChea tAhTHtY6BgUZup5Dp3swd+T2obEmfFGQOZ1XlShrJHlHuPcNpx59zJJMmvuBMEtrZorM lwuz+wA45v2NG8u9QECDVfznbzO0v4h8DwyNVKSEB7jLZ2FXFLteTEf6eEpBYvsEiwLe I6gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=4IO4Cz0IjWZ2kLTqHYmHXj5bj1cbJ97i1qb/SNOQ/aE=; b=pDF26miZlT6DuUxh5y/mt5WQECvMHe6gBnufwh+qyAm36uMiwfVAEL5F8/aTTu7tBo r7tuF3STBZyoQR0n+JNShNi7KJMlpozmNVz+t8MhAaeAvxwTcdZCwXsSf/1YW4rqKije wpg8e0qLxI7VHQfrWs3vAFN/b0NnGA9GzEibk7dJARenwlnidZzv8s2U+ihhD1EdYTtL WbKJiaNzU4u8wQPJhsTT5ymgEuaJoL/djKAIfNCYOc2JfFYCZRSPLOLuE8ijTHLJWX89 GnNgrtcEt9PbPvi99aKZga5HeAsiYfD2/nKJgifCFsjw2qnyQIphn12HB49C6Z7Nr5az wPxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si2622214pfi.32.2018.03.21.00.22.14; Wed, 21 Mar 2018 00:22:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752010AbeCUHUr (ORCPT + 99 others); Wed, 21 Mar 2018 03:20:47 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6667 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751594AbeCUHSU (ORCPT ); Wed, 21 Mar 2018 03:18:20 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 4E2BD50AE9A79; Wed, 21 Mar 2018 15:18:01 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Wed, 21 Mar 2018 15:17:53 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 05/11] net: hns3: increase the max time for IMP handle command Date: Wed, 21 Mar 2018 15:49:24 +0800 Message-ID: <1521618570-129694-6-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521618570-129694-1-git-send-email-lipeng321@huawei.com> References: <1521618570-129694-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It may need more time for IMP handle some command, such as reset. This patch enlarges the max time for cmd timeout. Driver will check the IMP result every us, it may break through the loop when get the right result. So not all command need the max time. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index 3fd10a6..aae4abe 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -12,7 +12,7 @@ #include #include -#define HCLGE_CMDQ_TX_TIMEOUT 1000 +#define HCLGE_CMDQ_TX_TIMEOUT 30000 struct hclge_dev; struct hclge_desc { diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h index 2caca93..621c6cb 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h @@ -7,7 +7,7 @@ #include #include "hnae3.h" -#define HCLGEVF_CMDQ_TX_TIMEOUT 200 +#define HCLGEVF_CMDQ_TX_TIMEOUT 30000 #define HCLGEVF_CMDQ_RX_INVLD_B 0 #define HCLGEVF_CMDQ_RX_OUTVLD_B 1 -- 2.9.3