From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout04.his.huawei.com (canpmsgout04.his.huawei.com [113.46.200.219]) (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 A96012C21FE; Wed, 20 May 2026 01:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.219 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779240176; cv=none; b=iadJ1+TTSw/Qe2eCAsxvRdLfR57/+I9QMPc49ClTiXb0i+qeFQa/ohfjF4hmGf1NiL5R3AF1Bo8AEN3kg5xoSnanWwiojNhg0tksemjnqUFHW7dSBDVJrMSb0dEmznfKqfgmI/t06j3qcCWEC8sUeSUn7kU0VwmQpGUlE+3msHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779240176; c=relaxed/simple; bh=J+PlFOk1ujs9QOqrnqXyHCkJW0H/k0w8NGEgXcwmjVo=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=H6OhXK1t+v//9Gqxeq6tgX8/QVyzldb/RemWHjmwLPQYbQ0oj1G8k8gVA5NUN4h6JFAiFzWeT+q8pzbPpkB7SZjAOO9dQufjcrWwGmcs3SGd6Gz/dnS9QN1u9mYuVKv3YFr4DIUqhVbOWGKnm66HbOJx7ubh487dXq8wSxA7oJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=JdkiExo5; arc=none smtp.client-ip=113.46.200.219 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="JdkiExo5" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=pZd1tC9dKsdYpmOGjvZUCRQTSExISFSEGWPSRDrvIv4=; b=JdkiExo5Qo4pnf3S6tHINSSScmvNuu8lE6ZRRXombmQrZPFoTNN04YYNPTqNwwp9dMy3saoqy rNpaTzuVk3uHtE6hxr9SjG7qCBDRPKU8KhC+xC5HIsyzrNxiJ/iGcYK6ccKTafWTuPzsi5J+fCm 2ieDoaWkPN6FNr6GHVMUTq0= Received: from mail.maildlp.com (unknown [172.19.163.0]) by canpmsgout04.his.huawei.com (SkyGuard) with ESMTPS id 4gKtrC0PlZz1prMy; Wed, 20 May 2026 09:15:07 +0800 (CST) Received: from dggpemf500015.china.huawei.com (unknown [7.185.36.143]) by mail.maildlp.com (Postfix) with ESMTPS id B842C40561; Wed, 20 May 2026 09:22:50 +0800 (CST) Received: from [10.67.121.110] (10.67.121.110) by dggpemf500015.china.huawei.com (7.185.36.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 20 May 2026 09:22:50 +0800 Subject: Re: [PATCH] crypto: hisilicon/sec2 - lower priority for hisilicon crypto implementations To: Chenghai Huang , , CC: , , , , References: <20260511004927.3469951-1-huangchenghai2@huawei.com> From: liulongfang Message-ID: Date: Wed, 20 May 2026 09:22:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20260511004927.3469951-1-huangchenghai2@huawei.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To dggpemf500015.china.huawei.com (7.185.36.143) On 2026/5/11 8:49, Chenghai Huang wrote: > From: lizhi > > Lower the priority of HiSilicon's crypto implementations to allow more > suitable alternatives to be selected. For example, certain kernel > use-cases do not benefit from HiSilicon's symmetric crypto algorithms. > This change ensures that more appropriate options are chosen first while > retaining HiSilicon's implementations as alternatives. > > Signed-off-by: lizhi > Signed-off-by: Chenghai Huang > --- > drivers/crypto/hisilicon/sec2/sec_crypto.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c > index 2471a4dd0b50..77e0e03cbcab 100644 > --- a/drivers/crypto/hisilicon/sec2/sec_crypto.c > +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c > @@ -20,7 +20,7 @@ > #include "sec.h" > #include "sec_crypto.h" > > -#define SEC_PRIORITY 4001 > +#define SEC_PRIORITY 80 > #define SEC_XTS_MIN_KEY_SIZE (2 * AES_MIN_KEY_SIZE) > #define SEC_XTS_MID_KEY_SIZE (3 * AES_MIN_KEY_SIZE) > #define SEC_XTS_MAX_KEY_SIZE (2 * AES_MAX_KEY_SIZE) > Reviewed-by: Longfang Liu Thanks Longfang.