Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp485383imn; Wed, 27 Jul 2022 11:31:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tkOxT8jfl11U0oOZVhZrfzmnfjm3sFWo9duPZbGzBjbvKZwSCaa1CWvg0e1t+BOdMlNsxG X-Received: by 2002:a05:6402:5510:b0:43a:76ff:b044 with SMTP id fi16-20020a056402551000b0043a76ffb044mr24683944edb.197.1658946668703; Wed, 27 Jul 2022 11:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658946668; cv=none; d=google.com; s=arc-20160816; b=DdMP2l6UWWyPGEB7qbjyZ0zVUW+RAlFa4xTBuPnLux6DJMT+HfCFuO6pE02AqLqeuK cJBtQ7Fk0hy2DMqSXmn6CUpeJEqsuSnTBWSB2Z3v2xBd9ptCGwGUdWRdGhdRkxV4jDqS yWL1Wj0He0h85n4nvSiGcd0PnCHuVBBYa2vc+B9h9srLKgO8RiigRAM3HRpeVLxiGpMb ni8+Q0oIIQ11vSKrjiW4Yhoa0cjOTuhrNsAITRDMMDcHQ0YjPw4cJiHpcsESLK51WDdy pS2LE399AAA7bJ0ILvf0Q9r3JlOUryZ4MK3XLZ4n/vui4LQxLf2mPyffnftsgM3/nHbF xYGg== 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=D6YsQjhfntpv92zssxNOYYwv9CFdkWEDguPHfSd4EIs=; b=k7Mn5zriAT1Jo9cRtDKyJeUnt9M6XLqlW4ftr4Wp0phY63GTExZa5BASNDnFyojxc0 Kc8W8U74nQjHl+6NWPvtAHFM7FBb+Gqrz7EAcHKGvtXdaOOkUlhKhq5TD8KvDsaKpnOO IoQypvqMEKtjZMeK2qhgGdGOdIKpJt6gVB4spQwCSGBnjXIJLTStblJBESTiGcX9DdZV h7ssP2p1DAHLc9f1r4Op8N57WUqdwYWVvSJRtVfH7PD+ErMWIcZjNNxooUYl6sTzfISv 6J5BahFrdWhRPPpfmy08F4x2LerV4XDJ6T8Ow9DoIOKVXtEtg+Is56XCcGfLz6aUF8Rc RVsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ErE0F4je; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a056402084d00b0043b5531e9acsi23090833edz.469.2022.07.27.11.30.43; Wed, 27 Jul 2022 11:31:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ErE0F4je; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241921AbiG0RVm (ORCPT + 99 others); Wed, 27 Jul 2022 13:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241974AbiG0RTZ (ORCPT ); Wed, 27 Jul 2022 13:19:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC411A80F; Wed, 27 Jul 2022 09:44:40 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8D01F601C3; Wed, 27 Jul 2022 16:44:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93407C433C1; Wed, 27 Jul 2022 16:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658940280; bh=L0zad5tuT0Tpll3f1lgIxg3OEeQjJgTPBhyabtixlR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ErE0F4jedhdpXdbrkLBFmMdC5wgHje8PzjH8t4AJPqV/UEJrLOhsjqU06S1aqRJfD T36a3nIcXlQENnY/hPFibKZyqpHLjTd2GWPy+0d9vlzr2lcAfeCd+cci+5PDPtTmx7 nnSLSgIbbhqnJMfOjniqUDegaGX3BCZ+8NPXH59E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Giovanni Cabiddu , Marco Chiappero , Adam Guerin , Wojciech Ziemba , Herbert Xu , Sasha Levin Subject: [PATCH 5.15 167/201] crypto: qat - re-enable registration of algorithms Date: Wed, 27 Jul 2022 18:11:11 +0200 Message-Id: <20220727161034.749849280@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727161026.977588183@linuxfoundation.org> References: <20220727161026.977588183@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org From: Giovanni Cabiddu [ Upstream commit d09144745959bf7852ccafd73243dd7d1eaeb163 ] Re-enable the registration of algorithms after fixes to (1) use pre-allocated buffers in the datapath and (2) support the CRYPTO_TFM_REQ_MAY_BACKLOG flag. This reverts commit 8893d27ffcaf6ec6267038a177cb87bcde4dd3de. Cc: stable@vger.kernel.org Signed-off-by: Giovanni Cabiddu Reviewed-by: Marco Chiappero Reviewed-by: Adam Guerin Reviewed-by: Wojciech Ziemba Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/qat/qat_4xxx/adf_drv.c | 7 ------- drivers/crypto/qat/qat_common/qat_crypto.c | 7 ------- 2 files changed, 14 deletions(-) diff --git a/drivers/crypto/qat/qat_4xxx/adf_drv.c b/drivers/crypto/qat/qat_4xxx/adf_drv.c index 8fd44703115f..359fb7989dfb 100644 --- a/drivers/crypto/qat/qat_4xxx/adf_drv.c +++ b/drivers/crypto/qat/qat_4xxx/adf_drv.c @@ -52,13 +52,6 @@ static int adf_crypto_dev_config(struct adf_accel_dev *accel_dev) if (ret) goto err; - /* Temporarily set the number of crypto instances to zero to avoid - * registering the crypto algorithms. - * This will be removed when the algorithms will support the - * CRYPTO_TFM_REQ_MAY_BACKLOG flag - */ - instances = 0; - for (i = 0; i < instances; i++) { val = i; bank = i * 2; diff --git a/drivers/crypto/qat/qat_common/qat_crypto.c b/drivers/crypto/qat/qat_common/qat_crypto.c index 59e122afa434..994e43fab0a4 100644 --- a/drivers/crypto/qat/qat_common/qat_crypto.c +++ b/drivers/crypto/qat/qat_common/qat_crypto.c @@ -136,13 +136,6 @@ int qat_crypto_dev_config(struct adf_accel_dev *accel_dev) if (ret) goto err; - /* Temporarily set the number of crypto instances to zero to avoid - * registering the crypto algorithms. - * This will be removed when the algorithms will support the - * CRYPTO_TFM_REQ_MAY_BACKLOG flag - */ - instances = 0; - for (i = 0; i < instances; i++) { val = i; snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i); -- 2.35.1