Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp31450lqt; Thu, 18 Apr 2024 07:44:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn024eURPgvEcbDrTw28VZbpll3z6aifgQIuncgcHc809AZQbgJXGCmAr6c3iL0COZGhT+qDH19vL+PfKuPHUPaH907AlvCvOIPwUFiQ== X-Google-Smtp-Source: AGHT+IHmJTCfQcis6pL27eM68lA2M3ViSr2UI7+P1J+Hf86A7XFgM0VVzwvqHGSIQ5wdIUSRHyXW X-Received: by 2002:a05:622a:189c:b0:434:aed1:844b with SMTP id v28-20020a05622a189c00b00434aed1844bmr3965328qtc.37.1713451480406; Thu, 18 Apr 2024 07:44:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713451480; cv=pass; d=google.com; s=arc-20160816; b=icHE4rbc6qwP3q3iNQAp3Z1VWCYnKewDxg0+JGE0NlfcBAJqKFel+tAKvmw0kT8zJX qqqv6zogqju55AcXaZv3CIcaRC9QVMWPCvgzwvwR1APUICtfPgP/lRnxqKeB1RnYkPvx T2FOa/+3ZBXTV2qniVFA1jUP1Nq7grzkXs/hMDoxwxBhOmEwipsINjA3CXEwaZJurJZM +EjNRhMIb5TRJA8CcNyfO86li3hZmuajHJkknZf/mGgLnHO4eKqRKCNZyJSJMqVQY1WB gyhBmKJ42p4Gqm16CjmWBIKNoJK66k3GSCWZ3jpTlQJqEIaSCif6rmu1l8COWGzE1EzM yj2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ph2A+Aw1OMyUQhmZZLizkI6tX13F6U5ZvFiwqHaXpf0=; fh=E6D07cjD6GUQYhGTuP7Uz1BFVadO7McXqCcamQOzJpE=; b=s34BalId7lYds+Ti56o8rKJNZPGlvfOFb1JeAS3kADTtEmQ9fvZBktsbyuDaFLM1rx Abu4Ifef3b0QPI4mTbmazY4w/P/gmOIQi8avf7snTzCO0qi8gZgqFhVOB2rwBy1kZtxK V4j/00NAV+PLpGriN41f50aAVTGZiniqg4edf2e019lD4rxN60WD4AjsR5z/7NXmbN78 Qnt9vtfh23EwitMiGEKoKDIQR2rR1JMAEDr/o9OkGYZ/V5dikC4UJej4ug+0vdonxojV BIRCMWqk2imzzhDxaj2CPRiXMPDIpuY6DCoPrEdc4v9XvgMYO1b9L0d9dyp2OB4xEadE aldQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=tjV3O8dl; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-crypto+bounces-3650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x17-20020ac85f11000000b004347c7aa34bsi1675605qta.445.2024.04.18.07.44.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 07:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=tjV3O8dl; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-crypto+bounces-3650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 16D561C21280 for ; Thu, 18 Apr 2024 14:44:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA687168AE4; Thu, 18 Apr 2024 14:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="tjV3O8dl" X-Original-To: linux-crypto@vger.kernel.org Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 E21E41DFD8; Thu, 18 Apr 2024 14:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713451476; cv=none; b=s8D9S8wcn1EBTw15qx/ztZmYzyTsMVoZLGJl+J49WklI0QgqbSA0Zfdcs4NX5G+uPxqgRFDGnLv0F2cBEAwUwHkEbPrAn5K5oSOZni098rUzDrglKGuGVOJtHQyL7CsaG595ow9tgaHZjJ2CxAJD8pdbzLAGbfhUUbFTOMR8DxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713451476; c=relaxed/simple; bh=t5CCBCzneTz0u5OTkdYXv22f6m6V2+XYsieR+BPa1yU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z4KvL7GfeoA82KnDAyZh29Zqh4ZaKsoXsk4EsnCDZBa8YEMjYeMxytws7b6bRZimYndJvYPsHvWynT8yMJHqFDDhn0Ilh4hD6p9lhXdXDI0jWqSQQAAZ6UVy6ry5xNvJmj782dz+wQKuSIdViyUnhSpfuDa6Vgqjoi0uxs1ALd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=tjV3O8dl; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43IDr9gT032318; Thu, 18 Apr 2024 16:43:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s= selector1; bh=ph2A+Aw1OMyUQhmZZLizkI6tX13F6U5ZvFiwqHaXpf0=; b=tj V3O8dl6CW7GArOc/8CrCAibJaG0ipbX1qe6chr7Ze9/NzeTitAJaZZPHeow+ZONp z7i7ISAuIBOy6ZiyJlsJA5q8aPuvoI2M6RH2T3LlrVFA/B3cRtqluut5tGErhMcW fwqal0NaOdX6KtAU1N+BGn4j5McJXiJ/RVfgUdde5cJwdCtFXNBd5AKmII1y8JKY /IRoOP3TDATFytWO/iRu3/B0AWSFD2YIeIKPuvEFV3X/hU+LtwfZ8ITSjPlW1Y6f ZmtnEwhYf4K+pZDN4TNYYb3xkT7J2listjt0u55jreJ+Sa53/0B/zxnq9S6Y01N6 eaC34QgZwmYEX0W0Jtpw== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3xgecym5du-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 16:43:58 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 2498540045; Thu, 18 Apr 2024 16:43:41 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0627821ED4B; Thu, 18 Apr 2024 16:43:03 +0200 (CEST) Received: from localhost (10.48.86.103) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 18 Apr 2024 16:43:02 +0200 From: Maxime MERE To: Herbert Xu , "David S . Miller" , Maxime Coquelin , Alexandre Torgue CC: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , , , , Subject: [PATCH 2/3] crypto: stm32/cryp - increase priority Date: Thu, 18 Apr 2024 16:42:55 +0200 Message-ID: <20240418144256.3736800-3-maxime.mere@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240418144256.3736800-1-maxime.mere@foss.st.com> References: <20240418144256.3736800-1-maxime.mere@foss.st.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="y" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-18_12,2024-04-17_01,2023-05-22_02 From: Maxime Méré Increase STM32 CRYP priority, to be greater than the ARM-NEON accelerated version. Co-developed-by: Nicolas Toromanoff Signed-off-by: Nicolas Toromanoff Signed-off-by: Maxime Méré --- drivers/crypto/stm32/stm32-cryp.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32-cryp.c index c6d76c81d60f..4480d0e52260 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -2291,7 +2291,7 @@ static struct skcipher_engine_alg crypto_algs[] = { .base = { .base.cra_name = "ecb(aes)", .base.cra_driver_name = "stm32-ecb-aes", - .base.cra_priority = 200, + .base.cra_priority = 300, .base.cra_flags = CRYPTO_ALG_ASYNC, .base.cra_blocksize = AES_BLOCK_SIZE, .base.cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2313,7 +2313,7 @@ static struct skcipher_engine_alg crypto_algs[] = { .base = { .base.cra_name = "cbc(aes)", .base.cra_driver_name = "stm32-cbc-aes", - .base.cra_priority = 200, + .base.cra_priority = 300, .base.cra_flags = CRYPTO_ALG_ASYNC, .base.cra_blocksize = AES_BLOCK_SIZE, .base.cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2336,7 +2336,7 @@ static struct skcipher_engine_alg crypto_algs[] = { .base = { .base.cra_name = "ctr(aes)", .base.cra_driver_name = "stm32-ctr-aes", - .base.cra_priority = 200, + .base.cra_priority = 300, .base.cra_flags = CRYPTO_ALG_ASYNC, .base.cra_blocksize = 1, .base.cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2359,7 +2359,7 @@ static struct skcipher_engine_alg crypto_algs[] = { .base = { .base.cra_name = "ecb(des)", .base.cra_driver_name = "stm32-ecb-des", - .base.cra_priority = 200, + .base.cra_priority = 300, .base.cra_flags = CRYPTO_ALG_ASYNC, .base.cra_blocksize = DES_BLOCK_SIZE, .base.cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2381,7 +2381,7 @@ static struct skcipher_engine_alg crypto_algs[] = { .base = { .base.cra_name = "cbc(des)", .base.cra_driver_name = "stm32-cbc-des", - .base.cra_priority = 200, + .base.cra_priority = 300, .base.cra_flags = CRYPTO_ALG_ASYNC, .base.cra_blocksize = DES_BLOCK_SIZE, .base.cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2404,7 +2404,7 @@ static struct skcipher_engine_alg crypto_algs[] = { .base = { .base.cra_name = "ecb(des3_ede)", .base.cra_driver_name = "stm32-ecb-des3", - .base.cra_priority = 200, + .base.cra_priority = 300, .base.cra_flags = CRYPTO_ALG_ASYNC, .base.cra_blocksize = DES_BLOCK_SIZE, .base.cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2426,7 +2426,7 @@ static struct skcipher_engine_alg crypto_algs[] = { .base = { .base.cra_name = "cbc(des3_ede)", .base.cra_driver_name = "stm32-cbc-des3", - .base.cra_priority = 200, + .base.cra_priority = 300, .base.cra_flags = CRYPTO_ALG_ASYNC, .base.cra_blocksize = DES_BLOCK_SIZE, .base.cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2460,7 +2460,7 @@ static struct aead_engine_alg aead_algs[] = { .base.base = { .cra_name = "gcm(aes)", .cra_driver_name = "stm32-gcm-aes", - .cra_priority = 200, + .cra_priority = 300, .cra_flags = CRYPTO_ALG_ASYNC, .cra_blocksize = 1, .cra_ctxsize = sizeof(struct stm32_cryp_ctx), @@ -2483,7 +2483,7 @@ static struct aead_engine_alg aead_algs[] = { .base.base = { .cra_name = "ccm(aes)", .cra_driver_name = "stm32-ccm-aes", - .cra_priority = 200, + .cra_priority = 300, .cra_flags = CRYPTO_ALG_ASYNC, .cra_blocksize = 1, .cra_ctxsize = sizeof(struct stm32_cryp_ctx), -- 2.25.1