Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1116864pxb; Tue, 9 Feb 2021 23:54:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3GYlU+yPKPbAlWpPbbDoCIIXkJEi2YkN1F0gCAr/RW4Uu2TglL2Y5MCw7RAyhzQn5NHma X-Received: by 2002:aa7:da55:: with SMTP id w21mr2074182eds.138.1612943651904; Tue, 09 Feb 2021 23:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612943651; cv=none; d=google.com; s=arc-20160816; b=BO2u0K4+EmM1OR4eT5jtIvD6BBCkN9zIqSwPaKH4ZqHG5VhyyqAmSYsJk89bjrFQG9 SvIL1C9p1XXx6yUanL9q+VwEZE1M7R6YBN8E27uBsK3Yzm7h9QyXKtcfo6I0y/BorEPP SlmtiGJKjYqb7HuB+RqjfqPZ5ZoLzPxwO2i3eM/UwrotoDdmi9HDcSifN758t70Hr8iK 815Ust8yeYBICgD9wgr6phFYtPKM0/LyIa9pM+9RctGBKvHbhs3bHf1pKQoUoFfB8mxL MXPtSfcAZHWKt1H9DLwM+agk4bO7zNI4njWQoep0qdhZDgRxwibYbpe/k6x8iGWFGyW+ wP6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=vaU6hgPCKTfYtvujtzWo6YPy+BMiRpxfX8q5cY2xfZE=; b=p0m/TZvDglyRflxrlMZ5vZf0aZ7rITqX8oEjQqtZV4vbOw7T+36dOJeJEVGb0yrDgn BtTl5pFg7EkZ3kUT9udSUCvAF1pb0H2hQKWIJknz9njyGGBcc9nKn/i4N9qSsZEWt9UM k49vKNfRmzUHRUQjwtjNyRB6L9mNKJN29z/ml5ZmYeREBXyzlcTbKi8YeGMD/6UNcXjr EEEValn19YOowq4Pf8jHxTpEW7wlGrpWiQB0TM1YiP6LKgvuZ20DDBuEPXimUOCL+UMN gaW6tysezAoNUQgGZif1SeciYiJF4dl/yUx0NFnYpPBHpX9Wh/8CPQnq5D6v5X7gLjqh tzRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FmSXK1w0; dkim=neutral (no key) header.i=@linutronix.de header.b="deMmx/JD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si1193847edc.353.2021.02.09.23.53.48; Tue, 09 Feb 2021 23:54:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FmSXK1w0; dkim=neutral (no key) header.i=@linutronix.de header.b="deMmx/JD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233366AbhBIU3J (ORCPT + 99 others); Tue, 9 Feb 2021 15:29:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233452AbhBIS1k (ORCPT ); Tue, 9 Feb 2021 13:27:40 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1407BC061223 for ; Tue, 9 Feb 2021 10:15:50 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1612894445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vaU6hgPCKTfYtvujtzWo6YPy+BMiRpxfX8q5cY2xfZE=; b=FmSXK1w0nKRP/hdlx9uxHl6IjoEwME4nK41CcufJh1P+I34q8PgomZVyd8RMpDC19uCaZ7 73jO6Mbj6yaTVdNkYbiSLGCvuRDbZ8OO8CsVPaW7ptsWnGgu/aJnyiaEWp2bAlp84TBF+N BDQHAvSLfVG3hap4wQp8ZSXk3oBN0kUJVaH9Sd03Wwq77Ps30vcCjUPsF3mlEnlaxj81Q6 Pa2K5rg/r1S6F/teZ4RbnKnDgymd/u4Twb6bNGx+sPnAegQZsGWemWv4wmJzrovupHi3j7 Iu3G6FuYt7q4r6+v1iH2ootuLjRRZ3ztjm7ondPcYHqRdmLBX6lyJ0f/TuQYnw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1612894445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vaU6hgPCKTfYtvujtzWo6YPy+BMiRpxfX8q5cY2xfZE=; b=deMmx/JDGvM0wD/8NioXYymsnQsumTrJo1WEWvCSIU0IS2ol0c2xa1yOkR3V4k/5rhP17a U02KFRtneJtFOZAg== To: Josh Poimboeuf Cc: LKML , x86@kernel.org, Kees Cook Subject: Re: [patch 05/12] x86/irq: Provide macro for inlining irq stack switching In-Reply-To: <20210209162214.twr35rrb2qwvlx3f@treble> References: <20210204204903.350275743@linutronix.de> <20210204211154.618389756@linutronix.de> <20210208204209.yccd76j7sp2zbv37@treble> <87zh0db7ha.fsf@nanos.tec.linutronix.de> <20210209162214.twr35rrb2qwvlx3f@treble> Date: Tue, 09 Feb 2021 19:14:05 +0100 Message-ID: <87wnvhaz2q.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09 2021 at 10:22, Josh Poimboeuf wrote: > On Tue, Feb 09, 2021 at 04:12:33PM +0100, Thomas Gleixner wrote: >> On Mon, Feb 08 2021 at 14:42, Josh Poimboeuf wrote: >> > On Thu, Feb 04, 2021 at 09:49:08PM +0100, Thomas Gleixner wrote: >> >> #ifdef CONFIG_X86_64 >> >> + >> >> +#ifdef CONFIG_UNWINDER_FRAME_POINTER >> >> +# define IRQSTACK_CALL_CONSTRAINT , ASM_CALL_CONSTRAINT >> >> +#else >> >> +# define IRQSTACK_CALL_CONSTRAINT >> >> +#endif >> > >> > Is this really needed? i.e. does ASM_CALL_CONSTRAINT actually affect >> > code generation with !FRAME_POINTER? >> >> The problem is that if the asm inline is the first operation in a >> function some compilers insert the asm inline before setting up the >> frame pointer. >> >> That's actualy irrelevant here as the compiler cannot reorder against >> the C code leading to the asm inline. So we can probably replace it with >> a big fat comment. > > Actually, I think keeping ASM_CALL_CONSTRAINT is a good idea. > > What I meant was, is the #ifdef needed? My previous understanding was > that ASM_CALL_CONSTRAINT has no effect for !FRAME_POINTER (i.e., ORC). > > So is there any reason to *not* have ASM_CALL_CONSTRAINT with ORC? You're right. No idea how I ended up with that ifdef. Thanks, tglx