Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5007605iob; Mon, 9 May 2022 06:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyntPvJS9Ld4AZIxrzW1m+ZwwkqEvpFFNyRf7YzK7vEFbFN5lxbYpB1is6cvZuD2RDhStBA X-Received: by 2002:a05:6a00:1595:b0:50e:a7c9:fc25 with SMTP id u21-20020a056a00159500b0050ea7c9fc25mr16256935pfk.51.1652104134280; Mon, 09 May 2022 06:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652104134; cv=none; d=google.com; s=arc-20160816; b=JjRKGTM7yPq656e/Z3xMMvoVdjZ28/Eb/lEs7QwUtvvGk1BbuHUtaNiNoDQOyjdBI0 JXWAB2tQvCW/KqJlUvQ6ULOvTvMN+LTWiNbjIzUoLTEY10j7358xWFvc5e/SKyq3GWjJ l/VGHnYyrkKrDIl3GE7zdz3vHHd50+yGnxdl7gblErelIJAhO61gR5wgUBZDXiNdaBTN GbpnBoXVXoR20nv1j199Xg3GMx6XoQenP8lE2+xv/Gu5BWsn7URdCRNlV+1bxXEvJaTK ygxsAjTiJagYJzhBS6s11zUKbqRFm2i3yyRrEIfmc1iTDYyyX8ECOSCXdLccCr6snBe3 eAUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kqhh7z5JMM5OWcEl96qipDI9Z52I7n/Q7r1pls+VcDA=; b=MvNyEWrvU3a+fszXV1RcjsM2c2XeZV0Qrf15Wb5vzyXS5D//qxtVEOjJEfA003Y1RG hIjdSa9z7Oyf/ZanXlXMDtX4VZlSCspZRPPOJeRPVn4ryQWh0wBHGpJ660goq4IQsrov Iofd4rDoRxqR6Z2yAX9n6J4RUfwo2RDwmY3plJ45A5H+HVMjcWNWAPsklSfrqMDftaGs iIXlT50v172Di9vWesx56j73h13Z7hCchJ/4mL15LP4TkTQzEgqOYs6xbrOxLtIU2tnB xB2gfz3lGHqujnGmCpoqi1VxdIZ4Hzc/5bvEc3LD+jyrG08/9IRMfnqPNX8ZE4DjyWAb 0/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j7YcHfua; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l19-20020a170902f69300b0015eaa9783ddsi13911002plg.532.2022.05.09.06.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 06:48:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j7YcHfua; spf=softfail (google.com: domain of transitioning linux-crypto-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 721EB149155; Mon, 9 May 2022 06:36:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236045AbiEINkr (ORCPT + 99 others); Mon, 9 May 2022 09:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236030AbiEINkp (ORCPT ); Mon, 9 May 2022 09:40:45 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 863B218B940; Mon, 9 May 2022 06:36:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652103410; x=1683639410; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DzSK5EtvSUu+rARESr34ozWVmZBIJIRsYnefuQZeksk=; b=j7YcHfuakaMD/OKV+5k1+iujncpMVBLmaWNlDsqOC4vd3ozHxpwcWqgu B3fQc66Lle+ccCSmBbSoI0WmOSi4p/JzW0hFJrLGXU7ww6n1nGIhxl7iQ X9pWJ4hOL1ByDyQw9+xK+TGSP9yhw0eD4yW4hYcQAS/1Bv/F7Tv3n3FmS fK8EcpbSF18hmxJ/xPj0vYU+Pv7ui5e9fh/ZBN4iNvhUDJHYrDEvrSxyi tEZNvPHzLSy/m2ff6MIGUdjF1VkNHiCUXT0eN6bzUDK6NmOq7ar+0d2Fy fi1d4EKlaxJ4Jky6lxQ3bBkfTCzW00sWlwqD56+MsME6rqoJN73J7f5fV A==; X-IronPort-AV: E=McAfee;i="6400,9594,10341"; a="248952429" X-IronPort-AV: E=Sophos;i="5.91,211,1647327600"; d="scan'208";a="248952429" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 06:34:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,211,1647327600"; d="scan'208";a="622967754" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.76]) by fmsmga008.fm.intel.com with ESMTP; 09 May 2022 06:34:51 -0700 From: Giovanni Cabiddu To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Vlad Dronov , Giovanni Cabiddu , stable@vger.kernel.org, Marco Chiappero , Adam Guerin , Wojciech Ziemba Subject: [PATCH v3 10/10] crypto: qat - re-enable registration of algorithms Date: Mon, 9 May 2022 14:34:17 +0100 Message-Id: <20220509133417.56043-11-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509133417.56043-1-giovanni.cabiddu@intel.com> References: <20220509133417.56043-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 --- 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 fa4c350c1bf9..a6c78b9c730b 100644 --- a/drivers/crypto/qat/qat_4xxx/adf_drv.c +++ b/drivers/crypto/qat/qat_4xxx/adf_drv.c @@ -75,13 +75,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 80d905ed102e..9341d892533a 100644 --- a/drivers/crypto/qat/qat_common/qat_crypto.c +++ b/drivers/crypto/qat/qat_common/qat_crypto.c @@ -161,13 +161,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