Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3632705imw; Mon, 18 Jul 2022 11:35:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s+TlwHnwHTWhsWValVZiPtieNd5FUTYubiG2b6cHYU6jnScLfKo+GV6fRA/YjQYxUwro5X X-Received: by 2002:a17:90b:1808:b0:1f0:5e5a:f6e7 with SMTP id lw8-20020a17090b180800b001f05e5af6e7mr41081752pjb.193.1658169328677; Mon, 18 Jul 2022 11:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658169328; cv=none; d=google.com; s=arc-20160816; b=ZJq7o/ngO/7NyeqhO75DPilmM4PPZC9HplwhuRiY8RBQTMysMAaq0ziETrzLakniEN jD1EifU8vv99bsN2cZgdksI1zUfSNHGve2kA6kFyfBoNQZWDt38MP4UVh+F2ZorzdzUs RH6VIg8l0uTdNyf/PEH5ZfByk+LfNfzmx8T7SZ8ZeNrgLFE8y4FYHOQrxcDYYFmu8rdU Q7Fsznq2bCkGjjbRVl3TvMovn1I2PX10QHNt56YznTIxNFqC4EbGxpX3WmGVA4WOf2qP xdI/E/XJtCbtLiI4YQSXlfkk2GBjpj2cy2Uiz+sp0HxoQquUGBA20FFlGSk97pwwBIgg KaKA== 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=cpHBMw54SzMoVs52kZsAki3jjPfIE4TrjHjivVUOmCM=; b=c/ktJ2G9Kov6UB5Qgb9PMnODK+8dHQDCAJzeAMh2kxoatfehpx3/WlyyV8BMSF1KhW LzSQNL7067cd3aw/IVvJvGll6sacexbjqfLNEw2ZNGst8clgkOZ6fvmJve2O13qUHqGR IwY1BupFvCo6mnM5rosZy5wR3gHN1FnpXaVUKi/1arnepHd4tBqrp2LpaqxIIhguZAIp nrh8ffsP4czdaQFGcBb6qS3j3SCRP/63Y95O1S7Zc6evoU633A4sPLkSE3eh6V3hPAyb vgE0YTmXROj/ms1Oc4CcT+rs2lN7UcyVJyAABxwfMDellz4ZNdOq8w7AqJbExrkygpmJ U2Kg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a63b146000000b004168c4186b2si14559442pgp.694.2022.07.18.11.35.13; Mon, 18 Jul 2022 11:35:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234006AbiGRRxy (ORCPT + 99 others); Mon, 18 Jul 2022 13:53:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233552AbiGRRxx (ORCPT ); Mon, 18 Jul 2022 13:53:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DA681B4 for ; Mon, 18 Jul 2022 10:53:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CD894B816D9 for ; Mon, 18 Jul 2022 17:53:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7CC5C341CA; Mon, 18 Jul 2022 17:53:46 +0000 (UTC) Date: Mon, 18 Jul 2022 18:53:43 +0100 From: Catalin Marinas To: Herbert Xu Cc: Isaac Manjarres , Ard Biesheuvel , Will Deacon , Marc Zyngier , Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Linus Torvalds , Linux Memory Management List , Linux ARM , Linux Kernel Mailing List , "David S. Miller" , Saravana Kannan , kernel-team@android.com Subject: Re: [PATCH 07/10] crypto: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,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-kernel@vger.kernel.org On Sat, Jul 16, 2022 at 11:25:35AM +0800, Herbert Xu wrote: > On Fri, Jul 15, 2022 at 03:23:25PM -0700, Isaac Manjarres wrote: > > isn't present. So, the current behavior that crypto is relying on > > wouldn't change, so I agree with Catalin that we wouldn't be lying to > > the compiler if we move forward with getting rid of kmalloc-192. > > There is no guarantee that crypto will always be allocating > structures > 128 bytes. > > But thanks for the reminder, I do need to push the patches along. So do I but holidays get in the way ;). I plan to refresh my kmalloc minalign series at the end of August. One significant change I have though is that now ARCH_KMALLOC_MINALIGN now goes down all the way to 8 and using swiotlb bounce buffering if the DMA mapping size is small. -- Catalin