Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11342396rwl; Mon, 2 Jan 2023 19:40:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXvL/gcSVVGRxRlaoYKWPU2ULLTwiq293Vj3zp1F7PBfIDoa+L0ZxKGPBMRVjnwiXtJcPhOf X-Received: by 2002:a17:906:68e:b0:7e2:ca68:6715 with SMTP id u14-20020a170906068e00b007e2ca686715mr36343391ejb.63.1672717212284; Mon, 02 Jan 2023 19:40:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672717212; cv=pass; d=google.com; s=arc-20160816; b=e/IQFPKUe/Wb8koqkS4fenmZTFcvjg+CSBIloFn521RecgFECrVuF4FR8I7xq74nfO Y7QfNSC2WZvVRE4U0RSUxKVtIpvwICTAfhYY+XZ7aqmaaxlVcqoONoWJmXIh06O9mPtu YLCoT4XHtH8Y37nOSVHFFOy7Wr4OZiOLabmnSOzwNw9WfoKuE4uCz7Jwn2KgSdctn/Sa u2Viq8Rh54l3PpBz9ViPolirIAFt5Iesj4DlwuX+M5DI7h1xmVypExl3+FZ1vXd8SAvY 8FSa8OUoJi10mVbMM6k+Hr09L+zRXpWaCGN2V+KcSkWeJOsUR0LQDAsv7sCVpTbUf2V7 IyRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=s+91SXb8PrY8K/2IWgJo9vDKxQSTSQz9Flc2s+Ap9R4=; b=bXmc3L8ChfTGCORMvGzqtTc8WLH2JME60iU3z3/fOlVEGTgrXK4xMkE0ycUTdaQfMe hN0eqU9tgdg1Zwq6NLuWXdbb+8xmplPTlgFmcVFfbmoJGeo8yU1xH1NUuRdxG9sS2ETQ qthQOAM7igo4K1ZtKNur8EhirF9GnKSLypLOjg9ja1bEXZdCkcAgJlhOS9heBVGXb1tz pk/CIHCjLfA/Jf2k6S3WvkhNM1Y2Zt05K0dQFMIjogVTlmKd67wFFFhsTYgjChrS+F85 /DuaKoYu4o/RmdD1w7vEdqFzpd5q4rkWPSl5bPFYgUHM08NcnQJNNQZ/I2leHBYL1n5i rcpA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@aspeedtech.com header.s=selector1 header.b=U1AC8OB+; arc=pass (i=1 spf=pass spfdomain=aspeedtech.com dkim=pass dkdomain=aspeedtech.com dmarc=pass fromdomain=aspeedtech.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l22-20020a170906795600b0078d459a1ce9si28396345ejo.693.2023.01.02.19.39.38; Mon, 02 Jan 2023 19:40:12 -0800 (PST) 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; dkim=pass header.i=@aspeedtech.com header.s=selector1 header.b=U1AC8OB+; arc=pass (i=1 spf=pass spfdomain=aspeedtech.com dkim=pass dkdomain=aspeedtech.com dmarc=pass fromdomain=aspeedtech.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236694AbjACDiO (ORCPT + 99 others); Mon, 2 Jan 2023 22:38:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236810AbjACDh7 (ORCPT ); Mon, 2 Jan 2023 22:37:59 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2138.outbound.protection.outlook.com [40.107.255.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FA24D2C4; Mon, 2 Jan 2023 19:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cr3EtS5+aMLDASFU2soxLC78JoT7PRjZKW0tOdWl7z7ByzFChi0Q0iCsrtr50Oh6u1P3BKPxkbqJ9rx/jfpbNyXyp9Z17h4CScoJFf6F6ID7SSOLwxenSf/kFC78ij/mJQL0zH5x2sR7FE6qDfLAKwqFjTZXAJmXdtcNTXIZ21o4PJHihpOLsWOVclwnK4L16iyfZt9mQSR7mgEUVZ0zwRP1U/vG8iqxByU7NCerDoQPeJdYkixyVhsa/Lo6QYbcl35mVWg/2f11rJkkuxdRI4XjLox/CF71pQTv+B/j02+W5Fy3T96PBT6NFJl/omsSqn4F2+JZl/Kp7sRqWHeuRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s+91SXb8PrY8K/2IWgJo9vDKxQSTSQz9Flc2s+Ap9R4=; b=JKFvCYNVUsShL4chdYlybIzlBeUQykpqXi9fZnDnNFSb9CuFW10x17jgwSNJIKeEjO2W07z6wFe3VFoEs0b/dIDn5+aoV8yZOw1EnUdfDzGALTYy6EN3Hn43bz8h1ugIW18o/5ZZxcvKiIu0+9NdGMMKL8g29mp8tsqjE9a7bKZYBn4S/dt7AROrMs8E4x3lJbmU86sgwppp7SFOHwDOtnUPBdGCE/TdYr3KesI5IFa9OGqnVEj0EmZ+v+1z/sRMroU0x3Zvj8kAruyqQ+8Jo1lj1l8CmLA/48BAbkfoE1AN2ShaJKOBIDZUab+3mhM1REhaR5wkBV5R75hMEPk7wA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s+91SXb8PrY8K/2IWgJo9vDKxQSTSQz9Flc2s+Ap9R4=; b=U1AC8OB+4TURjLbKb1hjqoOYDKQXTT1Sv/c7EY+LVMot7nHEZ0wTevDdMyX1QjbLyWd8GPEiI65SG+CaLCIM1vqttFto2JQCEepBB61hgstG2jX5Amji82xxE/TDmRyZPbkZw9ewFsYqoym5HNURJdw+J/tJV59FGcJP6xCnxCnG/8EPkHD5k+J/JKcOBiixXJHvc73+NXMl/aIGbqy4nIAG2gAde5/WpwxBRuRvmsCIaZ8ZPtXl/+tFddsgGderCXxTz0Yq3so1YPgbpoXpdV+l5ytYXTPeyP2XKq+c7FC83kPD+1vmHjC03zGWmWphG3AbtO6P3aL4abEby19gaw== Received: from TY2PR06MB3213.apcprd06.prod.outlook.com (2603:1096:404:97::16) by TYZPR06MB5782.apcprd06.prod.outlook.com (2603:1096:400:26a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 03:37:48 +0000 Received: from TY2PR06MB3213.apcprd06.prod.outlook.com ([fe80::abee:6367:ef03:e60b]) by TY2PR06MB3213.apcprd06.prod.outlook.com ([fe80::abee:6367:ef03:e60b%7]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 03:37:48 +0000 From: Neal Liu To: Herbert Xu CC: Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , "David S . Miller" , ChiaWei Wang , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" , Christoph Hellwig Subject: RE: [PATCH v4 1/4] crypto: aspeed: Add ACRY RSA driver Thread-Topic: [PATCH v4 1/4] crypto: aspeed: Add ACRY RSA driver Thread-Index: AQHZD4nhuBerx3rD8U+/oUEvaZ6riq6GMoiAgAX3k6A= Date: Tue, 3 Jan 2023 03:37:48 +0000 Message-ID: References: <20221214070114.3966155-1-neal_liu@aspeedtech.com> <20221214070114.3966155-2-neal_liu@aspeedtech.com> In-Reply-To: Accept-Language: en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aspeedtech.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TY2PR06MB3213:EE_|TYZPR06MB5782:EE_ x-ms-office365-filtering-correlation-id: cf9276da-77c0-4956-6b9b-08daed3be2a4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Zi2Oa2GCIH2gjTrk53ZuHmFelc94b4tKrHB1g9C5ClWt+VAgx3FV4Btp6n/f1MqSq8F1Qvw7y/Pi6J3AIb5QBMdVsLzfM9CuRRcJ0i92jSrEQwSOQsizkxQI3JGBXBOlsezFZe95Fzmg2aTh32O+QhO7fMF7+AqttNCGxZoP78/q3w/ntlJpzs9kgUCFjapppLRiMcBCSzD9VrFi0KEf1VZiRUx/cM+FKgJAHIMtWx3h9PPGj9ZU9jCPEJyRQ7oodqZ94FZf5DqH6aBPjS4ZjIqPeV9Jh1BzO301tiQXQzxHKFYy7prLafzRYPNzd+UaqzJw+u9XIzp7voxLg+QT39OjU7EmuJ8HE4cusd3iwDWYwiEX6y2K3HbIA1ARpugBlP8wu8zag/sRPtWOxnuOYUHMeu7RQJ6QibE76TYsZNCJQTfX5sHHPqH51XhKQNwiR8Tef/lVFRceQp65k4VxQNUtJHvFuIIa3gHmuuYSEpOWhyXcUAAylGlgAN4QK9alXFBZNa2gY/R8+y1rHezdh7vFqNMQQ0dJEmMSdVQeDnsYq4WuANOUNLcoD4khBuL+WLTOlpOxhsp9f8Zw1iAkxa2nIlhd8ulM+z3qCTgWjXT3mWIisKLrjIViVe91S+r7oFcnCv5AJYcg6FIQD9gQgZrbfl6jtkE9q0OsfqSlhokfda5bcKD4XWiXuBjygAg9qfGQcSipfXsf+5g4UqYDNaK0n9X20hgVHPQ7nVEYo9HwLJ5spcH9mmWCjBXGFwgq x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY2PR06MB3213.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(366004)(376002)(39830400003)(136003)(396003)(451199015)(52536014)(5660300002)(4744005)(76116006)(7416002)(316002)(41300700001)(54906003)(6916009)(2906002)(66556008)(66446008)(4326008)(66476007)(8676002)(64756008)(66946007)(8936002)(71200400001)(478600001)(53546011)(6506007)(26005)(33656002)(186003)(9686003)(83380400001)(7696005)(966005)(55016003)(86362001)(122000001)(38100700002)(38070700005)(22166006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?V2LJcRbkxuESCOlwGE6P8fm6ijioCT31TTQ6qjtR7wSXgo/ZBjYFi6qwbAl/?= =?us-ascii?Q?LQElNRJVtiRB4eRRtdRTY/dQuMIdmhChjnTlNchELUaZwhEYLXUOgCYBGcZh?= =?us-ascii?Q?luZj29aAX9l9y0KlMlOs2UZxYLRSjBzeP81zlu5y44iaVcZHYQhmN2JdgBB2?= =?us-ascii?Q?sHzdynE7CLK2rDCIApJH9m9d2BDPeke3EY0+JcuyBdx5gcED1A7zcl9HI1zP?= =?us-ascii?Q?ZckbyrBSH8jc51QaL/ggDi4SLphX2WVXiHheLzPxdLNCE/uN8l4WS/ooTDEZ?= =?us-ascii?Q?/uo5m5j1ZGX7EL1VsiG557YgFcnjKK9CAUbtj1lzdWYhsXHkVuCFZIxzlo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4q069evBVnzUkbQZlgxPc2gyNe54PSgc?= =?us-ascii?Q?Zq1Euyd9SbtqM8AreX4DTYdv7UqbrVe50aEJdvsl9wskInWNSIJX6XV84b3b?= =?us-ascii?Q?5wHcNyaRa29rObuYoeX6brpQfCN8kwEUOiHqujNdVAGVnDCzUcFSAsbaQRCL?= =?us-ascii?Q?nyy5P4CNFufNowcEfbymOw9D+ujT1ZZKCpFgWyg3iGCCM7iumWzN0amW60hd?= =?us-ascii?Q?z7WV6qU471CdLof+9hjIEFdCQf3DzlgnOrQQjxZX8YFrWJuOxleqYmvvZ7Q5?= =?us-ascii?Q?6sNPnusMORe2glYDx31eTqk4i5c9moCaVTV6mRqd/IdvJaNOtw9XbSQu2sEg?= =?us-ascii?Q?N/wLvozqCIGFCAgh0iiwrIBdohGBYMhoPk5u78qw?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TY2PR06MB3213.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf9276da-77c0-4956-6b9b-08daed3be2a4 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2023 03:37:48.7313 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5/1snHlQmiE/eDcnWAyb72/2kmd9FjWvjShmYNCKv/51SsbM/18Aa3rogIAlPmFapM6Ml6STU5LyeCpbVKV+ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5782 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 > -----Original Message----- > From: Herbert Xu > Sent: Friday, December 30, 2022 4:29 PM > To: Neal Liu > Cc: Rob Herring ; Krzysztof Kozlowski > ; Joel Stanley ; Andre= w > Jeffery ; David S . Miller ; > ChiaWei Wang ; > devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > linux-aspeed@lists.ozlabs.org; linux-kernel@vger.kernel.org; > linux-crypto@vger.kernel.org; Christoph Hellwig > Subject: Re: [PATCH v4 1/4] crypto: aspeed: Add ACRY RSA driver >=20 > On Wed, Dec 14, 2022 at 03:01:11PM +0800, Neal Liu wrote: > > > > +static u8 *aspeed_rsa_key_copy(u8 *src, size_t len) { > > + return kmemdup(src, len, GFP_DMA | GFP_KERNEL); >=20 > Please explain why you are using GFP_DMA. Looks like it's unnecessary. I'll remove it. Thanks. > Thanks, > -- > Email: Herbert Xu Home Page: > http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt