Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1458927rwd; Tue, 13 Jun 2023 09:20:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ720RJwt4NxVKMTH1dGjNlI0t6KjIZkH0yehYcr3/hMfiUMWSbjZwzaaJ1dNBp8+p8l4ddB X-Received: by 2002:a17:902:e543:b0:1af:d19a:a67b with SMTP id n3-20020a170902e54300b001afd19aa67bmr10833266plf.33.1686673258695; Tue, 13 Jun 2023 09:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686673258; cv=none; d=google.com; s=arc-20160816; b=j/4JCN7L3UBRR5i4IhAhfW9mCHSxW29w3gUUOm/XvHHi9hBiel6jZyTO2/mdVJA6NN N2RCVZV1OW8/IB9CSgiC269BIcKTxQAP2Vi7JhHNvI3vjcdUqGPfgJy34+Jg/Ddz29BA y+7mY9z7cSBof7/mRepOvwpazdX4LdOVWOzeFvYMPvLRRYhdx5R4JQQG6V1+OCKCkFp6 BeK3DYZbvvfNARtdpxfemQfvKPoeE6o+L7IaZ/GC3+J74XauHCmxHqwZpj9lAsCpmCTC t4KHd85q7M1Gssgl8oucuaaJy0r/K/tWRXR4kHkv9qjWSmBBrGOUl/N4wYU0Z1/PX92E F2VA== 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=81NDt8dw4EzCW62AHl3fXGEyf8ntVTqpFXRzB4WTurU=; b=y/shr7SGzpR8NUIC5lPCZUeD1Plt61i4sAI+3hhnlZwpTxoQQxkRGPSMBt6HbrBhZN qndIHsC8RcSlpjsQ/aXT+hgv8KFpkjhK7e0RnoRl437LipZ7rDHvFFAFqnb85jDzFj8Q VjKJ7V08U3cwn4RkbMTxbZW1cERwTSgT4/zH6vQ5oapCHeOGdhsELfo1Vh1J7OhaXMxg dC/yb14tc4xEQnJ68WFDPY5SVPVFJ6Jvyg6Hyp62s5Crb857VPHD0j6MPskfhbhK9Xhv DakdN0jTdbjFwNMwvROgbZg+062AU7b8G9k0ShaH01ugsQMWS0ZQB2n2QPtSpP2MvJpP qaGw== 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 b7-20020a170902d50700b001adc3a1b3fasi5519057plg.282.2023.06.13.09.20.45; Tue, 13 Jun 2023 09:20:58 -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 S240909AbjFMP6c (ORCPT + 99 others); Tue, 13 Jun 2023 11:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235140AbjFMP6b (ORCPT ); Tue, 13 Jun 2023 11:58:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEFF6E79; Tue, 13 Jun 2023 08:58:30 -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 54100629A6; Tue, 13 Jun 2023 15:58:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 710A6C433D9; Tue, 13 Jun 2023 15:58:28 +0000 (UTC) Date: Tue, 13 Jun 2023 16:58:25 +0100 From: Catalin Marinas To: Stephen Rothwell Cc: Andrew Morton , Linux Kernel Mailing List , Linux Next Mailing List , Michael Ellerman , PowerPC Subject: Re: linux-next: build failure after merge of the mm tree Message-ID: References: <20230613162119.4a7a7d3c@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230613162119.4a7a7d3c@canb.auug.org.au> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,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 Hi Stephen, On Tue, Jun 13, 2023 at 04:21:19PM +1000, Stephen Rothwell wrote: > After merging the mm tree, today's linux-next build (powerpc > ppc44x_defconfig) failed like this: > > In file included from arch/powerpc/include/asm/page.h:247, > from arch/powerpc/include/asm/thread_info.h:13, > from include/linux/thread_info.h:60, > from include/asm-generic/preempt.h:5, > from ./arch/powerpc/include/generated/asm/preempt.h:1, > from include/linux/preempt.h:78, > from include/linux/spinlock.h:56, > from include/linux/ipc.h:5, > from include/uapi/linux/sem.h:5, > from include/linux/sem.h:5, > from include/linux/compat.h:14, > from arch/powerpc/kernel/asm-offsets.c:12: > arch/powerpc/include/asm/page_32.h:16: warning: "ARCH_DMA_MINALIGN" redefined > 16 | #define ARCH_DMA_MINALIGN L1_CACHE_BYTES > | > In file included from include/linux/time.h:5, > from include/linux/compat.h:10: > include/linux/cache.h:104: note: this is the location of the previous definition > 104 | #define ARCH_DMA_MINALIGN __alignof__(unsigned long long) > | > > (lots of theses) > > Caused by commit > > cc7335787e73 ("mm/slab: decouple ARCH_KMALLOC_MINALIGN from ARCH_DMA_MINALIGN") > > I have applied the following hack for today - we need something better. I just posted this series fixing it for powerpc, microblaze and sh. I did not add the #ifndef __powerpc64__ line since CONFIG_NOT_COHERENT_CACHE should not be enabled for those builds. https://lore.kernel.org/r/20230613155245.1228274-1-catalin.marinas@arm.com > From: Stephen Rothwell > Date: Tue, 13 Jun 2023 16:07:16 +1000 > Subject: [PATCH] fix up for "mm/slab: decouple ARCH_KMALLOC_MINALIGN from ARCH_DMA_MINALIGN" > > Signed-off-by: Stephen Rothwell > --- > arch/powerpc/include/asm/cache.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/powerpc/include/asm/cache.h b/arch/powerpc/include/asm/cache.h > index ae0a68a838e8..e9be1396dfd1 100644 > --- a/arch/powerpc/include/asm/cache.h > +++ b/arch/powerpc/include/asm/cache.h > @@ -142,5 +142,14 @@ static inline void iccci(void *addr) > } > > #endif /* !__ASSEMBLY__ */ > + > +#ifndef __powerpc64__ > +#ifdef CONFIG_NOT_COHERENT_CACHE > +#ifndef ARCH_DMA_MINALIGN > +#define ARCH_DMA_MINALIGN L1_CACHE_BYTES > +#endif > +#endif > +#endif > + > #endif /* __KERNEL__ */ > #endif /* _ASM_POWERPC_CACHE_H */ I think it should also remove the ARCH_DMA_MINALIGN from asm/page.h (as I did in my series; sorry I did not cc you, only noticed now that you reported it as well). -- Catalin