Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1020100rdg; Fri, 11 Aug 2023 07:23:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgLc3FcwoNAhKS1MRnCUyNHwB58bagwUEvRjzbxN8vsS3ZHQHcbPeXu/ZJeFYjcYIBHdTz X-Received: by 2002:a17:906:7693:b0:997:865a:77e5 with SMTP id o19-20020a170906769300b00997865a77e5mr1846387ejm.45.1691763839358; Fri, 11 Aug 2023 07:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691763839; cv=none; d=google.com; s=arc-20160816; b=ShPDUDQt/G3m1JYmw5nGgckJRpC1mA+7IHW+u7SYBiZopGBxCIUCKowVlhu9r7KT1i xigY6/kzpRVZY4mGlTorie38SJTuzDvzxWCXFSuDdBXd8wqBaPUGV6TJWiNsGA/MIKYf ScivASyl6cO43Z5CvRRSCnO1Vc2h06wpFUA9yQixVoITBBKwLn346EgCSML9lcH5Wbzw vSMHSP9uAjgrOuEg/GjM8sc8kAduoRcTfsdk3z/caKkiOdpWffzH0BB/dAx0EXtKnF44 djszHDJsITlU//mar6zOXfKB+utdRVwJzWbFke2C1Hv6cRdYvtVuTmN6MHFjIi4uZk1X bdAw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=26gndH/aBm44KovAO7P+oiQWob0pYHtmKcyGu13czeM=; fh=fXxcka4ttcRjf8y/QNeUVBVR3n8KtaOL7ehuC2YQY+g=; b=I/ibtvIKAoRR/yswIjy88ewNOGyBeFqHjPEi/Og/d95cf1M/LBBk/bvJGk0YEjoGaO W9Y4Z8lvS2lqvDwsub0qhBly8jpsRKqOHwBG/9RlcWqLLRI88+0A/U/cJGfG0jzqGBzr GEbvQ6mrMboKxwQjsC+HRZKNrRFLNwpvC1PjfbhR7Jxj+oiA83LR8VvU3oYvGrOxOgWc xlEvuMUy+uUFWd5jYrgBT6QGEklPjQmquWxF/bJXXOyZUZA+O+eTdBTfeR3q3YYAJQ9r UQdhulBwAqv0SDsmYjLDL4wYHReKfrhyONpbGj1NdwK9810yBnuTlXrlx8pE3NtPMxCu YZUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a170906360f00b0098f99048058si3624549ejb.1015.2023.08.11.07.23.34; Fri, 11 Aug 2023 07:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234988AbjHKOKy (ORCPT + 99 others); Fri, 11 Aug 2023 10:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbjHKOKw (ORCPT ); Fri, 11 Aug 2023 10:10:52 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7152D72 for ; Fri, 11 Aug 2023 07:10:51 -0700 (PDT) Received: from kwepemm600009.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RMlxT6Y4XzqSgG for ; Fri, 11 Aug 2023 22:07:57 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 11 Aug 2023 22:10:49 +0800 From: Weili Qian To: CC: , , , Weili Qian Subject: [PATCH v2 7/7] crypto: hisilicon/qm - increase function communication waiting time Date: Fri, 11 Aug 2023 22:07:49 +0800 Message-ID: <20230811140749.5202-8-qianweili@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230811140749.5202-1-qianweili@huawei.com> References: <20230811140749.5202-1-qianweili@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600009.china.huawei.com (7.193.23.164) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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-crypto@vger.kernel.org When multiple VFs, for example, 63, are enabled, the communication between the PF and all VFs cannot be completed within the current waiting time. Therefore, adjust waiting time more than the maximum mailbox execution time. Fixes: 3cd53a27c2fc ("crypto: hisilicon/qm - add callback to support communication") Signed-off-by: Weili Qian --- drivers/crypto/hisilicon/qm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index a1539974f95a..5d633f774c83 100755 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -181,9 +181,9 @@ #define QM_IFC_INT_DISABLE BIT(0) #define QM_IFC_INT_STATUS_MASK BIT(0) #define QM_IFC_INT_SET_MASK BIT(0) -#define QM_WAIT_DST_ACK 10 -#define QM_MAX_PF_WAIT_COUNT 10 -#define QM_MAX_VF_WAIT_COUNT 40 +#define QM_WAIT_DST_ACK 100 +#define QM_MAX_PF_WAIT_COUNT 50 +#define QM_MAX_VF_WAIT_COUNT 100 #define QM_VF_RESET_WAIT_US 20000 #define QM_VF_RESET_WAIT_CNT 3000 #define QM_VF_RESET_WAIT_TIMEOUT_US \ -- 2.33.0