From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85C22C433DF for ; Tue, 23 Jun 2020 09:03:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5074920768 for ; Tue, 23 Jun 2020 09:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592902985; bh=dwWcASt70MTuxccXh9SiyO0yx9YTgv4Fs1v9uGeJeog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=ufCfP+qMvDxPD2JOVXuhyWyBhKJM/tS1ouUVU7Z2V2Yrwzrc2aUDHsvVAXpHjsiQY 62YZrzPHHm/lFdCkYge8s6h6I4bQF183qIVOmBIAhnVQMFKdhA2kq9M16vIQ3Tj4NQ 8kK3oZbEZIOK7Mgx9sTnMuTJrQnjuTIyu3Ahd2kc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732125AbgFWJDD (ORCPT ); Tue, 23 Jun 2020 05:03:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:42890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731853AbgFWJDD (ORCPT ); Tue, 23 Jun 2020 05:03:03 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C77020723; Tue, 23 Jun 2020 09:03:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592902983; bh=dwWcASt70MTuxccXh9SiyO0yx9YTgv4Fs1v9uGeJeog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aIBArjKQcPyob07dgdMW1n0RPQYZmKhdnf7NDLJ9uG1vh48+wabjCoHwI6zYolY0m QysB5Pq1bMfO3l+UnqTrhM/Q+Xs0ksycC2hlHacWZPIYTvSxCNf3NknfQR0wETfDM4 /4nBQyW/f6EuIdcyG2e/KuC2gNBLzUs/O26ZmIAI= Date: Tue, 23 Jun 2020 10:02:57 +0100 From: Will Deacon To: Peter Zijlstra Cc: mingo@kernel.org, tglx@linutronix.de, x86@kernel.org, linux-kernel@vger.kernel.org, a.darwish@linutronix.de, rostedt@goodmis.org, bigeasy@linutronix.de, davem@davemloft.net, sparclinux@vger.kernel.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, heiko.carstens@de.ibm.com, linux-s390@vger.kernel.org, linux@armlinux.org.uk Subject: Re: [PATCH v4 6/8] arm: Break cyclic percpu include Message-ID: <20200623090257.GA3743@willie-the-truck> References: <20200623083645.277342609@infradead.org> <20200623083721.454517573@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623083721.454517573@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 10:36:51AM +0200, Peter Zijlstra wrote: > In order to use in irqflags.h, we need to make sure > asm/percpu.h does not itself depend on irqflags.h. > > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/arm/include/asm/percpu.h | 2 ++ > 1 file changed, 2 insertions(+) > > --- a/arch/arm/include/asm/percpu.h > +++ b/arch/arm/include/asm/percpu.h > @@ -10,6 +10,8 @@ > * in the TPIDRPRW. TPIDRPRW only exists on V6K and V7 > */ > #if defined(CONFIG_SMP) && !defined(CONFIG_CPU_V6) > +register unsigned long current_stack_pointer asm ("sp"); If you define this unconditionally, then we can probably get rid of the copy in asm/thread_info.h, rather than duplicate the same #define. Will From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Date: Tue, 23 Jun 2020 09:02:57 +0000 Subject: Re: [PATCH v4 6/8] arm: Break cyclic percpu include Message-Id: <20200623090257.GA3743@willie-the-truck> List-Id: References: <20200623083645.277342609@infradead.org> <20200623083721.454517573@infradead.org> In-Reply-To: <20200623083721.454517573@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Peter Zijlstra Cc: mingo@kernel.org, tglx@linutronix.de, x86@kernel.org, linux-kernel@vger.kernel.org, a.darwish@linutronix.de, rostedt@goodmis.org, bigeasy@linutronix.de, davem@davemloft.net, sparclinux@vger.kernel.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, heiko.carstens@de.ibm.com, linux-s390@vger.kernel.org, linux@armlinux.org.uk On Tue, Jun 23, 2020 at 10:36:51AM +0200, Peter Zijlstra wrote: > In order to use in irqflags.h, we need to make sure > asm/percpu.h does not itself depend on irqflags.h. > > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/arm/include/asm/percpu.h | 2 ++ > 1 file changed, 2 insertions(+) > > --- a/arch/arm/include/asm/percpu.h > +++ b/arch/arm/include/asm/percpu.h > @@ -10,6 +10,8 @@ > * in the TPIDRPRW. TPIDRPRW only exists on V6K and V7 > */ > #if defined(CONFIG_SMP) && !defined(CONFIG_CPU_V6) > +register unsigned long current_stack_pointer asm ("sp"); If you define this unconditionally, then we can probably get rid of the copy in asm/thread_info.h, rather than duplicate the same #define. Will From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D71EC433E0 for ; Tue, 23 Jun 2020 09:04:55 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B6A920723 for ; Tue, 23 Jun 2020 09:04:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="aIBArjKQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B6A920723 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49rgMm3zH7zDqHX for ; Tue, 23 Jun 2020 19:04:52 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=will@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=default header.b=aIBArjKQ; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49rgKj21LTzDqGS for ; Tue, 23 Jun 2020 19:03:05 +1000 (AEST) Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C77020723; Tue, 23 Jun 2020 09:03:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592902983; bh=dwWcASt70MTuxccXh9SiyO0yx9YTgv4Fs1v9uGeJeog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aIBArjKQcPyob07dgdMW1n0RPQYZmKhdnf7NDLJ9uG1vh48+wabjCoHwI6zYolY0m QysB5Pq1bMfO3l+UnqTrhM/Q+Xs0ksycC2hlHacWZPIYTvSxCNf3NknfQR0wETfDM4 /4nBQyW/f6EuIdcyG2e/KuC2gNBLzUs/O26ZmIAI= Date: Tue, 23 Jun 2020 10:02:57 +0100 From: Will Deacon To: Peter Zijlstra Subject: Re: [PATCH v4 6/8] arm: Break cyclic percpu include Message-ID: <20200623090257.GA3743@willie-the-truck> References: <20200623083645.277342609@infradead.org> <20200623083721.454517573@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623083721.454517573@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-s390@vger.kernel.org, bigeasy@linutronix.de, x86@kernel.org, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, davem@davemloft.net, a.darwish@linutronix.de, sparclinux@vger.kernel.org, linux@armlinux.org.uk, tglx@linutronix.de, linuxppc-dev@lists.ozlabs.org, mingo@kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Jun 23, 2020 at 10:36:51AM +0200, Peter Zijlstra wrote: > In order to use in irqflags.h, we need to make sure > asm/percpu.h does not itself depend on irqflags.h. > > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/arm/include/asm/percpu.h | 2 ++ > 1 file changed, 2 insertions(+) > > --- a/arch/arm/include/asm/percpu.h > +++ b/arch/arm/include/asm/percpu.h > @@ -10,6 +10,8 @@ > * in the TPIDRPRW. TPIDRPRW only exists on V6K and V7 > */ > #if defined(CONFIG_SMP) && !defined(CONFIG_CPU_V6) > +register unsigned long current_stack_pointer asm ("sp"); If you define this unconditionally, then we can probably get rid of the copy in asm/thread_info.h, rather than duplicate the same #define. Will