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,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 01011C4BA18 for ; Wed, 26 Feb 2020 17:09:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF44824684 for ; Wed, 26 Feb 2020 17:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582736940; bh=/n2/MkaLEJqENbEATCaA6k1GQ7S2bKaktEOaKB2/ZkQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=lZbbf3gIhl+rxmZw2ASAtjh3uIwrm0jf2MOF/Z6uPXutUnLSOc2Hp869S9AxBHgcc 3N2rikJHZoz9HUSyEeMt8D2eRih3UXOvxrkb1nrWqAe40rHLJYV8nZkgEcMCCccjK+ UnbHje+TU3eKNHYiDJdSbJJs9F0iMn4Zkdf3/3E0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbgBZRI7 (ORCPT ); Wed, 26 Feb 2020 12:08:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:41396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727240AbgBZRI7 (ORCPT ); Wed, 26 Feb 2020 12:08:59 -0500 Received: from localhost (lfbn-ncy-1-985-231.w90-101.abo.wanadoo.fr [90.101.63.231]) (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 3E88B206E6; Wed, 26 Feb 2020 17:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582736938; bh=/n2/MkaLEJqENbEATCaA6k1GQ7S2bKaktEOaKB2/ZkQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=coH5Cug92vOoq73WhgUz1LZbPE3k9bIrDo2ZPZ+rLz6Sn6FpoLVY34WHAPLVrdtYd AFCwzICV7gh0JLNiM4NSF6e8uOAVA7Vuo5XkJKvjgq55eZYoQuC5ejoNa1UtS6VDv1 puBvQMeXGnoupKqApjg6sM5aiuiUFo2g5uPN95cU= Date: Wed, 26 Feb 2020 18:08:56 +0100 From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , x86@kernel.org, Steven Rostedt , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann , Josh Poimboeuf Subject: Re: [patch 05/10] x86/traps: Document do_spurious_interrupt_bug() Message-ID: <20200226170855.GB6075@lenoir> References: <20200225213636.689276920@linutronix.de> <20200225220216.624165786@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200225220216.624165786@linutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 10:36:41PM +0100, Thomas Gleixner wrote: > Add a comment which explains why this empty handler for a reserved vector > exists. > > Requested-by: Josh Poimboeuf > Signed-off-by: Thomas Gleixner > --- > arch/x86/kernel/traps.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > --- a/arch/x86/kernel/traps.c > +++ b/arch/x86/kernel/traps.c > @@ -862,6 +862,25 @@ do_simd_coprocessor_error(struct pt_regs > dotraplinkage void > do_spurious_interrupt_bug(struct pt_regs *regs, long error_code) > { > + /* > + * This addresses a 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. > + * > + * In theory this could be limited to 32bit, but the handler is not > + * hurting and who knows which other CPUs suffer from this. > + */ > } Nice to have! Reviewed-by: Frederic Weisbecker