Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp371011pxb; Thu, 7 Apr 2022 07:49:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKd60R5ud6RS6hA+blhMytBBONMK23x6/tXiF3SipH5UsySOYGZFEwJJuaAv8mYV9sAp6x X-Received: by 2002:a63:1758:0:b0:381:effc:b48f with SMTP id 24-20020a631758000000b00381effcb48fmr11691586pgx.124.1649342948334; Thu, 07 Apr 2022 07:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649342948; cv=none; d=google.com; s=arc-20160816; b=LlpMI5W/uoGIFSXd+/IIvqWC+NGSRYvKgoC3747PF3D8BtyiJ+4uT/xWgKNvKLsOBn degS17pu6MLNMNhPpXpeyxQZWixNuE1NMlmqmpReNHC0Y/kjDhnH9yC6YBz5L+5UgD95 M+AMiNArExH3S1Sw4AJWG4pyvgsiLz65D0QoQe/0LRwIDz032sz77Uemd3h+jXIXrKkF ytoNwDtijAHyF3rd2YQO9RRaZVpRQdNUSNMJRmJCSbyIp2sipRSR3Z5aY4j/0MzdEbWc 2/ix6I6zcQIM6qDfLGCIQ/Eq1EItpJnmi38Drz4YMZ3j95qymI4IWBsSUWRRe0jppnIY Yn1w== 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; bh=RFNaws05wOAqic4HMtLPv/kRZkEA65Jd/nhAJL0r2ZY=; b=u4pmu2wAsQaDvONesVDi+H8W+F9zoPQFdfvO+7NT1M1cyhcs64XkN+wQ0n3w9cUH9C 27VMprCRFGF0YLXWaXH3LX8qRLr4YOf3WQqwhX+PYGxuYw9zZtbCZUL7/qowsIHfg9m7 pP677dyx7GGJdJfe1bmTmlXweM+mmN0vwpjIbFZgb9Ww/DaqnbeKrzv1MPTf7B5P1UxL mhbapELwNx1NgJ0e1QZgFQIdmzIvAcB6ty3Fq6aWAM8uQpng/B+WS1NdBsfE7JROyP/x dwZFMI2aplkT//bUv/NYwNAKpZzliWU9mBdxmzIb5hzskuReraaLqkAbGnSH16I6PA9L N0mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 z16-20020a170903019000b001542e8f27d0si21211058plg.530.2022.04.07.07.48.49; Thu, 07 Apr 2022 07:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238973AbiDGEdY (ORCPT + 99 others); Thu, 7 Apr 2022 00:33:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238432AbiDGEdW (ORCPT ); Thu, 7 Apr 2022 00:33:22 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9141C5924 for ; Wed, 6 Apr 2022 21:31:22 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1ncJnK-001Y2A-7U; Thu, 07 Apr 2022 14:30:55 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 07 Apr 2022 14:30:54 +1000 Date: Thu, 7 Apr 2022 14:30:54 +1000 From: Herbert Xu To: Catalin Marinas Cc: Ard Biesheuvel , 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, "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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-kernel@vger.kernel.org On Wed, Apr 06, 2022 at 09:49:42AM +0100, Catalin Marinas wrote: > > Since ARCH_KMALLOC_MINALIGN on arm64 prior to this series is 128, there > is any change to the crypto code. But the crypto API assumes that memory returned by kmalloc is automatically aligned to CRYPTO_MINALIGN, would this still be the case if you change it to ARCH_DMA_MINALIGN? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt