Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4040263rwb; Fri, 30 Sep 2022 11:54:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5EuF7gnHS99moyoraVoQMPhjWvqrruA5TAHrPPreWahK6omxWKc2tl//06cArdpM/xGbJ0 X-Received: by 2002:a17:907:75dc:b0:783:9c71:5e20 with SMTP id jl28-20020a17090775dc00b007839c715e20mr7486559ejc.125.1664564049709; Fri, 30 Sep 2022 11:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664564049; cv=none; d=google.com; s=arc-20160816; b=aLz0qmS3VH5SMnwnnXv6PVO6I991gYj7iAx+YZTi/RXadV1pWpA+Z4OojETtKJ+MNE bFUds473BOw+EG4afay88pvJU/7e0WUUUTi72jedz8MMCBXtTSPFyzc0Yc1TrE8vEF2i PVqY6Z0nnilD51u0TSyYeNUI2fGfiX7quwYavjQIO5nZkA10Ir8qasLgTRJDpsLBcGJk xwlhPxDOJtObXbDaBp28RYzlaNoibacTqD7/UZKSzn+KgEIaKAZ/U6aCTkY1tMwJbP4M hy5XgbXYfkTNLa0kIRkPlgqDedqSyYCTgjHzuigTWgP2E7Jd0b8mpd5La9Lf5MoBqil2 6fwQ== 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=k/0Nxdz9tGB0iLdXsLdMt7rMNWjVsO88a2oNDTiuuHo=; b=c5nMUjhtlQ4+V9/fJbqQE1E+Gm75alKyupHpztjaP/FxOSRbiTJtP/EpL2KoU9xpzF Hk+pwaVBkGz4aDmoJFmUAPGwxN2bQav5Gu4U6HP35eDndRfu2VcS58Po43BsMgQy3+ZW FwvJDSdr60J7ZdbAEQcZKFo/fxbMhfgTAchkTn1ADkDgftcEttPctFmH8b59dJyPFLXz o0HTdrhN3Hj4EWKhMthpJtvdNwn6uVTQvZ9QqRIMG1cVpzKjt6nz34Fa/876f85zizZF evEtqxPy+X+iv+bCE3RhsYySJ9bKnx0Yu0xRekVCJ2nqDb+wN1t/bd55oahtY9vlGJtW hWJg== 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 hg2-20020a1709072cc200b00782539a0286si2262168ejc.142.2022.09.30.11.53.44; Fri, 30 Sep 2022 11:54:09 -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 S231668AbiI3SdF (ORCPT + 99 others); Fri, 30 Sep 2022 14:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232268AbiI3Sc6 (ORCPT ); Fri, 30 Sep 2022 14:32:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D31E41B7D95 for ; Fri, 30 Sep 2022 11:32:57 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 77706623FE for ; Fri, 30 Sep 2022 18:32:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E60BAC433D6; Fri, 30 Sep 2022 18:32:53 +0000 (UTC) Date: Fri, 30 Sep 2022 19:32:50 +0100 From: Catalin Marinas To: Isaac Manjarres Cc: Herbert Xu , 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 Tue, Sep 20, 2022 at 05:47:33PM -0700, Isaac Manjarres wrote: > On Mon, Jul 18, 2022 at 06:53:43PM +0100, Catalin Marinas wrote: > > 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. > > This sounds like a good idea for optimizing kmalloc's memory usage > beyond what this series originally achieved. I'm sure a few other things > have come up in the meantime, but I was curious to know if you had a > chance to get back to this? I started refreshing the series but I got stuck on having to do bouncing for small buffers even if when they go through the iommu (and I don't have the set up to test it yet). I hope to post something when the merging window closes. In the meantime, I pushed my work-in-progress patches to: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux devel/kmalloc-minalign-v2-wip Apart from the iommu think, I still need to figure out whether with an ARCH_DMA_MINALIGN of 128 we need to disable the kmalloc-192 cache (so far I don't think it's needed). There are no additional changes to the crypto code from the last series, I still set CRYPTO_MINALIGN to ARCH_DMA_MINALIGN (without any other patches, crypto DMA will break; so I need to see how it interacts with Herbert's series). Anyway, I hope for more discussions once 6.1-rc1 is out. -- Catalin