Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2966389rwb; Mon, 5 Sep 2022 04:33:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR4sME0QlFlMtg236DvfSg+BNc58Gj6F4pSyevjHjtvWBuOIiTny/KSKDS616BJg/vyh36u4 X-Received: by 2002:a05:6402:40d1:b0:448:7247:4994 with SMTP id z17-20020a05640240d100b0044872474994mr30498414edb.319.1662377619319; Mon, 05 Sep 2022 04:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662377619; cv=none; d=google.com; s=arc-20160816; b=yc/drDbeAF9LJ0+dGFIQ0ooOdX7jaypd8FRUp1w51c2RA7sK7px0PKerIlQs9UVpdc ATRkZ/FbFPEccaWnx9Gz6HAz0JRIinhEAtPKsZ/go+i3P5pSAQXmxt/aM7T4zmRWsZD1 /BWpCQnObJwBlEslTQ0VNAHg+hoagc+AomAfJAyhWtRgFjP/9QLn1PCfx4ese2d5X2a7 GD+ew66LJu+ZEOi2qwB6SPMSOMUFGRXQQNCI1mP62TJHDCMbZ66HYj+jYP/w0cUZTtS1 RerK2DISvzt0Lat8+fUR+mU0gtm5P9ckjukXsaWsrcmtNZul3poFNHNprrBMk2IdrbX1 kDXg== 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:dkim-signature; bh=39ctGYtpjBvqxaxhX+JGoXm7WH3Dsu7ZcN8472gz0/Y=; b=uMf8GmoD/OlKxxIIihhURFJutI4EiK5vkEv9W07/kXxxLjkm5+yZ/wkASTdTWxMfLC n5HkJHJHn02uhStY6T3uemZbzKibWqqg5q1jhueUqPTos4P1ddRvTqpUTm04A35SFKEJ I7y3Lolgm+L9B3CQRnyX5G+zxD9NvN8gzfGFewepWcg2XYzgnNtmCTspd7h2j6JoTnJv vAxN0a+eGUDNaLEb4y+KJ2qf4sOjnRLv3WxCt7UPl8cEYXGBPiUSXIbd+R2T0NPUF8+r sGR7pR7YGSgji7x3JaN9jcWsNRy3KhPgNJquibTYmdf3bwd4Wsl6peQLwAGC7xXwl+OQ 5/7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="kjYVFGZ/"; 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 bq13-20020a056402214d00b00448af09b67asi6079421edb.366.2022.09.05.04.33.13; Mon, 05 Sep 2022 04:33:39 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="kjYVFGZ/"; 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 S238158AbiIELEM (ORCPT + 99 others); Mon, 5 Sep 2022 07:04:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238161AbiIELDi (ORCPT ); Mon, 5 Sep 2022 07:03:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 855D521E25 for ; Mon, 5 Sep 2022 04:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=39ctGYtpjBvqxaxhX+JGoXm7WH3Dsu7ZcN8472gz0/Y=; b=kjYVFGZ/kFVziLBYIGoMoHKrZ8 P8Yol8ya84cXbFssvqZLTBK5UFChRXQvqh1ydfF9KGPzaqdvcdATm+bk90oHlc625sSQYeKzINQhq n0JG+MVXe6gdwqHdjAiKiZeBghmJl4FAPZ4HpsEpGKi8W2bfIL9fzjrqhc9TbOrauOKD+1ObM7CpW EdwVMCYhcVeLC+cBbCnKQzVu0Wc0Pn2mFvTDgPtXFYhX4klx9uueqfklaup10hkR2DX1Rd3GXXG+i IIs0cZztNlAxZIEcQgJ5E7qKRTCPH2345lUUopqdHN9fG0QL0WJ17QYjt3NC4BI0Hotp+F2/g+P1O 9DZ8lhCg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oV9sw-009Ptv-VR; Mon, 05 Sep 2022 11:03:23 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 31FB83002A3; Mon, 5 Sep 2022 13:03:21 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 22D42209EC608; Mon, 5 Sep 2022 13:03:21 +0200 (CEST) Date: Mon, 5 Sep 2022 13:03:21 +0200 From: Peter Zijlstra To: Sathvika Vasireddy Cc: linuxppc-dev@lists.ozlabs.org, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, aik@ozlabs.ru, mpe@ellerman.id.au, mingo@redhat.com, christophe.leroy@csgroup.eu, rostedt@goodmis.org, mbenes@suse.cz, npiggin@gmail.com, chenzhongjin@huawei.com, naveen.n.rao@linux.vnet.ibm.com Subject: Re: [PATCH v2 02/16] powerpc: override __ALIGN() and __ALIGN_STR() macros Message-ID: References: <20220829055223.24767-1-sv@linux.ibm.com> <20220829055223.24767-3-sv@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220829055223.24767-3-sv@linux.ibm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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, Aug 29, 2022 at 11:22:09AM +0530, Sathvika Vasireddy wrote: > Powerpc instructions must be word-aligned. Currently, > there is an alignment of 16 bytes (by default), and it is > much more than what is required for powerpc (4 bytes). > > The default expansion of __ALIGN() macro is: > #define __ALIGN .align 4,0x90 > > Since Powerpc Linux does not require a 16 byte alignment, > override __ALIGN() and __ALIGN_STR() macros to use required > 4 byte alignment. > > Signed-off-by: Sathvika Vasireddy > --- > arch/powerpc/include/asm/linkage.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/powerpc/include/asm/linkage.h b/arch/powerpc/include/asm/linkage.h > index b71b9582e754..8df88fe61438 100644 > --- a/arch/powerpc/include/asm/linkage.h > +++ b/arch/powerpc/include/asm/linkage.h > @@ -2,8 +2,12 @@ > #ifndef _ASM_POWERPC_LINKAGE_H > #define _ASM_POWERPC_LINKAGE_H > > +#include > #include > > +#define __ALIGN .align 2 > +#define __ALIGN_STR __stringify(__ALIGN) Related thread: https://lkml.kernel.org/r/YxXJswK9QjhCGmPN@hirez.programming.kicks-ass.net