Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2010069ybg; Thu, 24 Oct 2019 03:32:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUVSiYGirtPC1wtEUIOMsvRclKOyT7r7dsCGD4Fa+D7mkgmTixRmavTGeXNnY1cI4ek39u X-Received: by 2002:aa7:dc1a:: with SMTP id b26mr16953328edu.139.1571913177394; Thu, 24 Oct 2019 03:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571913177; cv=none; d=google.com; s=arc-20160816; b=AIE7WKkSIXpjwed19bCGETF6WY5wLe6QtrwuJC+reG8mghDMQM+1U0zdAEYEgUDgZS Mexk1vBmwrE30tCzxvZK0gsY88Yv2s+G4RFsiY4gJCA1lf4SrwQNpzbOKiOKnRWdFIhs A3wxuEOsTOoJZ+bDc4eglwqaxU0UK9ovSF6DKeEzimB4gBtILiTGzg3Wr238h59/fU7F oVKZnRzFrjnv3TDo7QIN9Y9p1wSyWIBr20GK98L6bQ/dkATMJKMLbEJXFg+3i8joAWhb DmzDDni2nDBCRLJzyPRuMiplHhD5dGTnsYsQVonxY94WspX772Pf4RqA1mC9Zgc/iV77 w7tg== 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=IDEaarJuRqx3qC+DnrBPGvP7Yc+dHQ+WQTxkS7ZQNJo=; b=yISV+C/FBsvIhqag1mLSwW2bhN+SfIgy3qt1NeiqZClvVExzVeoh1BXXiKg7hAHk3/ JLyNjeE0+Xybg83pITNvh+b6C0a48sEJsfBgRrdNkjOL7dLhRYmh7NQgupLSateMmDE2 mGQ1DX1ySPH0O3u4TQkIIS2vMpGC3j5pqkk966sfcCvfpNGR9XzDsJAwhm8aJcw95KVN tnnzGGqHO3iwXb+QGTtUzpzeVJUJ3q/5s4JERH9UZbrEGjGLD2cIAJ+hvtQm2LHDlRsf V8gaAmkuXrhd+Vwf7W3cmMBEGwshMbXwFKVN4PPJnjbpmGpfkEptoySxSg8Dr7PnGqQS 4aUw== 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 c36si7036996edf.165.2019.10.24.03.32.33; Thu, 24 Oct 2019 03:32:57 -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 S2407901AbfJWWfn (ORCPT + 99 others); Wed, 23 Oct 2019 18:35:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51240 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405970AbfJWWfn (ORCPT ); Wed, 23 Oct 2019 18:35:43 -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 1iNPE0-0002HD-Ee; Thu, 24 Oct 2019 00:35:29 +0200 Date: Thu, 24 Oct 2019 00:35:27 +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: <20191023213107.m7ishskghswktspp@treble> Message-ID: References: <20191023122705.198339581@linutronix.de> <20191023123117.871608831@linutronix.de> <20191023213107.m7ishskghswktspp@treble> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1616076872-1571870128=: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-1616076872-1571870128=:1852 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT 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. Thanks, tglx --8323329-1616076872-1571870128=:1852--