Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp273650pxb; Tue, 12 Apr 2022 01:27:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFOSKS0mW8XPn8ncMkSYUM1OQ/vCEX2NA1+T3JgdDHfO5mJ8ySasjDSe6fqW5fb9AzFs7q X-Received: by 2002:a05:6a00:1908:b0:4f7:8813:b2cb with SMTP id y8-20020a056a00190800b004f78813b2cbmr36854939pfi.54.1649752058443; Tue, 12 Apr 2022 01:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649752058; cv=none; d=google.com; s=arc-20160816; b=Y9oirwZxiI5iRFKc24Y9AcRazJ+OSZ+Muo2JTvnieRyhvMhI//7VTXjr2KBM+cs21E qeTJ+OnLLusHWHDGptrsOWlkDSPZ1PTzV6gx8aMWgbT6L5V879FB8cqLdtcJZ+59s3Lu SvZTl84DyaZKY9TEWWChV0cMP889N4j8jGN0vABhJlyO8Yq+xiFmzoH5xVQ7uomFDRk9 p5NalUU0KK9jaOizZp3EMCZUapg4XvefWCGuVSrOOFV9GhxetITFXHP4QEBfZyzp2Spo QQGS054wsyWEE4bL+4ekPeInySs2yYWvPI9D+LLlPt4Oe1chRp8pnHbQmI0iwiZTPPG5 0FJQ== 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=Y8MYNF5mm4OUKGos8QCw+KdnbirQmkfvvnIyfv9sosw=; b=Akm06pe+vZp49PybLMSfQJzFPaLw8S2gSWgyaBe61zrKW1/k8tNW8vFzxJSBY5o75b NJNPo4FRPBscPbpqUvzMJjl6pjDyJZwPLlDAnam9gLUNjr75/QgExS6/GjLMi9iVt/io KTp6C4EGMj3JIAKU9Ug37/CBaoPsqEP6e+Tj1wmAYdoSZlVzPysx2N9dZhuoxoMWDDFb XJLx6qvY4q1lYqYxjL15apUl+i91idoCOnuENxjOCy9dwG9y6puDxsywJtnwZyMh4Lly 0DOtxABrPVJJ4MzzFpQg3KrxLmq+28p56eXg7KwZAkIYsy6Blfu7Iu+Ld9TQk5NTo5aS ZLnQ== 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 r21-20020a170902c7d500b00155d4e81304si8848508pla.143.2022.04.12.01.27.21; Tue, 12 Apr 2022 01:27:38 -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 S235615AbiDKOEg (ORCPT + 99 others); Mon, 11 Apr 2022 10:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243601AbiDKOEf (ORCPT ); Mon, 11 Apr 2022 10:04:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A488531DFC for ; Mon, 11 Apr 2022 07:02:21 -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 BFD71B815F3 for ; Mon, 11 Apr 2022 14:02:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAE8AC385A3; Mon, 11 Apr 2022 14:02:16 +0000 (UTC) Date: Mon, 11 Apr 2022 15:02:13 +0100 From: Catalin Marinas To: Hyeonggon Yoo <42.hyeyoo@gmail.com> 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 Subject: Re: [PATCH 01/10] mm/slab: Decouple ARCH_KMALLOC_MINALIGN from ARCH_DMA_MINALIGN Message-ID: References: <20220405135758.774016-1-catalin.marinas@arm.com> <20220405135758.774016-2-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=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Mon, Apr 11, 2022 at 07:37:01PM +0900, Hyeonggon Yoo wrote: > On Tue, Apr 05, 2022 at 02:57:49PM +0100, Catalin Marinas wrote: > > In preparation for supporting a dynamic kmalloc() minimum alignment, > > allow architectures to define ARCH_KMALLOC_MINALIGN independently of > > ARCH_DMA_MINALIGN. In addition, always define ARCH_DMA_MINALIGN even if > > an architecture does not override it. > > > > After this patch, ARCH_DMA_MINALIGN is expected to be used in static > > alignment annotations and defined by an architecture to be the maximum > > alignment for all supported configurations/SoCs in a single Image. > > ARCH_KMALLOC_MINALIGN, if different, is the minimum alignment guaranteed > > by kmalloc(). > > > > Signed-off-by: Catalin Marinas > > Cc: Andrew Morton [...] > Sorry for the noise I made due to misunderstanding :) > Now this patch looks good to me and I think it's worth adding. > > Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> > > and works fine with SLAB/SLOB/SLUB on my arm64 machine. > > Tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Thanks for the review and test. We still need to solve the potential crypto issues raised by Herbert before making the change. -- Catalin