Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2446503ybg; Thu, 24 Oct 2019 09:47:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJUs1WspMIdphalXo4W9U+YtfUWIGV/l4PyPvYtO1uq9rERcpRvFfUv/bG8FlsT7irQPEZ X-Received: by 2002:aa7:cd11:: with SMTP id b17mr4061964edw.144.1571935630997; Thu, 24 Oct 2019 09:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571935630; cv=none; d=google.com; s=arc-20160816; b=oQ0eoDRup0fwIzapUidkevzabhruYO6EH2kLhQ/H1UIhg9AqufcIwqGTwc7udeGZK8 iXu12JPUH7l3h14SAxLDGpzmWCvHqJ6PFKJ1n5OekJCjUqLY8X/reWHYscCwvVGbv+X+ ZOf/WEgOYh7G7VP3SfOKWqi82mevkI3Tvzfxsesohzbnk8RqdCAV+SSj7AjtDGwzqjT4 2FzVZK7ScXcc2Ipss4cNKoTGe9fHrCzCJy5sRmGzXY/T9NosQtZABpOWvbxYIVNQOImt BIEWxz46yBzv6+RWDa84eokcyjTd+o/tD7ZNOXiJGgFTZ1LtXUTVh5rltUeqT4lLKWmO LwgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=61KitreG5jERnnG4I9pfBaoi2KxLtgnu21dyx8A8SC8=; b=xCzXelwINezLseWy+YKeWi2NMYniU/6LPNW6CbmzC/MKlkdNbAPp42MNgxaa7tvB+n dTpE/IwM9fHuwPDFd0vl3MsXhbQ37FsKKI0SoiCcmMqHqyyVD0BnAqGhWeYd6ellQR3u 1k/L1zHr2l9hAWlBzKOqyag9QpfjQ47tzl/FUc1TWGOCIYrHGjo91js+W2vLz8ZJriSm LGvK0i5alIF0Qghx1jbtgDx/WvXstsyJVMrbnoGCLX8uuIs1fii76byllJNxHPMvTzMP QZURlOJaC0iJUpEJlmBGomdyxU1Y46BzVWb8mmqHbMJWQ0QkRPiR4L8gSBlRNVPZKGrq /YxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16si15055209ejb.165.2019.10.24.09.46.47; Thu, 24 Oct 2019 09:47:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436959AbfJWXTD (ORCPT + 99 others); Wed, 23 Oct 2019 19:19:03 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51308 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406271AbfJWXTD (ORCPT ); Wed, 23 Oct 2019 19:19:03 -0400 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iNPu4-0002eQ-Mp; Thu, 24 Oct 2019 01:18:56 +0200 Date: Thu, 24 Oct 2019 01:18:55 +0200 (CEST) From: Thomas Gleixner To: Josh Poimboeuf cc: LKML , x86@kernel.org, Peter Zijlstra , Andy Lutomirski , Will Deacon , Paolo Bonzini , kvm@vger.kernel.org, linux-arch@vger.kernel.org, Mike Rapoport , Miroslav Benes Subject: Re: [patch V2 03/17] x86/traps: Remove pointless irq enable from do_spurious_interrupt_bug() In-Reply-To: <20191023224952.d73mataiisu3u4tg@treble> Message-ID: References: <20191023122705.198339581@linutronix.de> <20191023123117.871608831@linutronix.de> <20191023213107.m7ishskghswktspp@treble> <20191023224952.d73mataiisu3u4tg@treble> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-441767539-1571872736=:1852" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-441767539-1571872736=:1852 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Wed, 23 Oct 2019, Josh Poimboeuf wrote: > On Thu, Oct 24, 2019 at 12:35:27AM +0200, Thomas Gleixner wrote: > > On Wed, 23 Oct 2019, Josh Poimboeuf wrote: > > > > > On Wed, Oct 23, 2019 at 02:27:08PM +0200, Thomas Gleixner wrote: > > > > That function returns immediately after conditionally reenabling interrupts which > > > > is more than pointless and requires the ASM code to disable interrupts again. > > > > > > > > Signed-off-by: Thomas Gleixner > > > > --- > > > > arch/x86/kernel/traps.c | 1 - > > > > 1 file changed, 1 deletion(-) > > > > > > > > --- a/arch/x86/kernel/traps.c > > > > +++ b/arch/x86/kernel/traps.c > > > > @@ -871,7 +871,6 @@ do_simd_coprocessor_error(struct pt_regs > > > > dotraplinkage void > > > > do_spurious_interrupt_bug(struct pt_regs *regs, long error_code) > > > > { > > > > - cond_local_irq_enable(regs); > > > > } > > > > > > I think we can just remove this handler altogether. The Intel and AMD > > > manuals say vector 15 (X86_TRAP_SPURIOUS) is reserved. > > > > Right, but this has history. Pentium Pro Erratum: > > > > PROBLEM: If the APIC subsystem is configured in mixed mode with Virtual > > Wire mode implemented through the local APIC, an interrupt vector of 0Fh > > (Intel reserved encoding) may be generated by the local APIC (Int 15). > > This vector may be generated upon receipt of a spurious interrupt (an > > interrupt which is removed before the system receives the INTA sequence) > > instead of the programmed 8259 spurious interrupt vector. > > > > IMPLICATION: The spurious interrupt vector programmed in the 8259 is > > normally handled by an operating system’s spurious interrupt > > handler. However, a vector of 0Fh is unknown to some operating systems, > > which would crash if this erratum occurred. > > > > Initially (2.1.) there was a printk() in that handler, which later got > > ifdeffed out (2.1.54). > > > > So I rather keep that thing at least as long as we support PPro :) Even if > > we ditch that the handler is not really hurting anyone. > > Ah. I guess we could remove the idtentry for 64-bit then? Anyway the > above would be a good comment for the function. That doesn't buy much. Who knows how many other CPUs issue vector 15 occasionally and will then crash and burn. Better safe than sorry :) Thanks, tglx --8323329-441767539-1571872736=:1852--