Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp67335pxh; Thu, 7 Apr 2022 14:10:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbrHIU9dnD3eMnleOyjpmPKprV56s0/ofJwDVR517UIYo+J05Rl9xUxcCbPBOoGkjL+Zlq X-Received: by 2002:a05:6a00:1802:b0:4fd:dee2:6374 with SMTP id y2-20020a056a00180200b004fddee26374mr16122794pfa.58.1649365855696; Thu, 07 Apr 2022 14:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365855; cv=none; d=google.com; s=arc-20160816; b=qHhf35XcoTp+yjYB1uwdkhlN2CWt2yfreuCvdEO/VMIuoP3co9i0fhSwyzjzIITxj7 Ed+wT67LLAXGPyTTS7mPsJzCShjcEIrgNFDGbfZ6bP1MvSXt40dUW5t3yBzl3EFtXBSv GEAEmxCg/oSaE/T5SkkMbmyAAR2qHE1Y10oA5iBI9kVP7k56voCwC43IJQs6ARzUo6il IrWAqFVFYnqQ6yraxPyeY6mVAQhda1ncSqmc79jRqu6V0eFEbWQg721WLFAJKEw2P161 uarrkpIpkNtL6CMb7HtQFuOsvl4jUNP8p+1Mra4Eg6cspzdWzmFsaRYVkU9Y0lhYv/j0 CCOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9N4jsdU05tKreDLVah25wg1i7nENvALZm4gukKaaig8=; b=I46tuXML0V2oJrC1ls7xcCqpP6RQXWWUJe7vH+tVjDYiQkKTi4iEvaPH+Z/nhmqq61 bYl1iouhb971/TrZfOMn+cfB4gczssrZxrxX2ZlaTNCNWJOkTIkXjPcVj08sCaiH1d7g NBZ7eDs+OsvhgfWb5iKEcdNT6CVhi3u+xLzTX5D4G7e9fk6H7dCBPfB8oOnAV33en0wy gNWVzS5pdwDzLbSu7206PHjWcE5qEPNuMWktL45xDf2T5E6esqse0R+YzJy7R28bchRO SH22yXjRrR+rhfISbox6HzsoWVJH5FH9V8CjxkgOS6Zgu468UIitkJ4/LMDeXvPZNa4M Fq5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=5jJ9+CMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t4-20020a63eb04000000b003816043efb5si19749952pgh.426.2022.04.07.14.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=5jJ9+CMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 55EBA432D57; Thu, 7 Apr 2022 13:03:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240942AbiDGGQ1 (ORCPT + 99 others); Thu, 7 Apr 2022 02:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233185AbiDGGQ0 (ORCPT ); Thu, 7 Apr 2022 02:16:26 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B64C11E4607 for ; Wed, 6 Apr 2022 23:14:26 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id s14-20020a17090a880e00b001caaf6d3dd1so7963954pjn.3 for ; Wed, 06 Apr 2022 23:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9N4jsdU05tKreDLVah25wg1i7nENvALZm4gukKaaig8=; b=5jJ9+CMbyb2iFD+qTV2tJtsDc/mOXZoAPjNuA5DLCisob818XbBaJxr3vFKSt1fNga QlKnt06xJWIstN/aGRxyIc8svaetKNtRKTL6gLA0c5Fp38Slz9CGVySEoc6s9zMZnBw9 Kd/3ynto8sG7mDU53YCTDV9lRMrO1EOl3Cx8nFvgpR03RWiPh6bb/Wf4CL5HPnbYSKzZ EYl9Cwo49fFCyCJBH/BXXneuEb+lAov/CRSdRhfQw8VxwCE1foKBVDR7M9LKqNB1dFz5 E6C4GgkfLUUl8CsuNnrWKRGJVkTqGPju9eTnWBw+XmVskOHJaNgv2pI+19SjxA9wYmDV cI4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9N4jsdU05tKreDLVah25wg1i7nENvALZm4gukKaaig8=; b=mDUE9NYKlam/dweZukMrKCOGjEcUsI5GP/iIYqPkN0lSyEbsCzMznk5iwA0K3zCtbp JY2G7vImYBBHMnKwsiQh+iWMojM4HAJ0kIfuqgQxem/nPUMYQIWSWJBwcMTJ37Pb4DgD sdcFtYuI9vs8Cohi3DB7QOWG4dxRGa7HPtDOkZHMgSgbZ14FR1zKRpUWKi4X2Lwa4owV y4qULZ+SQ7cAUP7X1RlN2BZbiH/HiOmbv+ePK0oatmp+afmUXfTpAln25srGZe/YZdpT QVPGbuFF4IegMGE7pYCXSKiW6PNGu4L/zoZSKQY/2RnFIje9MkaiLwPQMmOesmxwAl4j C5eQ== X-Gm-Message-State: AOAM531Ru/og8fbYvQizWDuB/xak76qAsRp75He15Cg/KZxFMj2TwRf/ eJdMhohbENukinWwL0OqZgv4ZQ== X-Received: by 2002:a17:90b:1a85:b0:1c9:d81b:33f1 with SMTP id ng5-20020a17090b1a8500b001c9d81b33f1mr14014349pjb.212.1649312066234; Wed, 06 Apr 2022 23:14:26 -0700 (PDT) Received: from localhost ([121.30.179.114]) by smtp.gmail.com with ESMTPSA id nn7-20020a17090b38c700b001c9ba103530sm7555309pjb.48.2022.04.06.23.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 23:14:25 -0700 (PDT) Date: Thu, 7 Apr 2022 14:14:15 +0800 From: Muchun Song To: Catalin Marinas Cc: Will Deacon , Marc Zyngier , Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Linus Torvalds , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Herbert Xu , "David S. Miller" Subject: Re: [PATCH 07/10] crypto: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Message-ID: References: <20220405135758.774016-1-catalin.marinas@arm.com> <20220405135758.774016-8-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220405135758.774016-8-catalin.marinas@arm.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Apr 05, 2022 at 02:57:55PM +0100, Catalin Marinas wrote: > ARCH_DMA_MINALIGN represents the minimum (static) alignment for safe DMA > operations while ARCH_KMALLOC_MINALIGN is the minimum kmalloc() objects > alignment. > > Signed-off-by: Catalin Marinas > Cc: Herbert Xu > Cc: "David S. Miller" > --- > include/linux/crypto.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/crypto.h b/include/linux/crypto.h > index 2324ab6f1846..654b9c355575 100644 > --- a/include/linux/crypto.h > +++ b/include/linux/crypto.h > @@ -167,7 +167,7 @@ > * maintenance for non-coherent DMA (cache invalidation in particular) does not > * affect data that may be accessed by the CPU concurrently. > */ > -#define CRYPTO_MINALIGN ARCH_KMALLOC_MINALIGN > +#define CRYPTO_MINALIGN ARCH_DMA_MINALIGN > I don't think this should be changed since ARCH_KMALLOC_MINALIGN is already aligned with the size what you need. Thanks.