Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753394Ab1FOMRT (ORCPT ); Wed, 15 Jun 2011 08:17:19 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:44354 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028Ab1FOMRS (ORCPT ); Wed, 15 Jun 2011 08:17:18 -0400 Date: Wed, 15 Jun 2011 13:17:03 +0100 From: Matthew Garrett To: Huang Ying Cc: Len Brown , "linux-kernel@vger.kernel.org" , Andi Kleen , "Luck, Tony" , "linux-acpi@vger.kernel.org" Subject: Re: [PATCH] ACPI, APEI, Add APEI _OSC support Message-ID: <20110615121703.GA8638@srcf.ucam.org> References: <1306303538-30524-1-git-send-email-ying.huang@intel.com> <20110614145246.GA17469@srcf.ucam.org> <4DF82CBC.5070400@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DF82CBC.5070400@intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1966 Lines: 44 On Wed, Jun 15, 2011 at 11:53:32AM +0800, Huang Ying wrote: > Hi, Matthew, > On 06/14/2011 10:52 PM, Matthew Garrett wrote: > > And then tear down GHES. This seems wrong. A platform could predicate > > APEI functionality on the ACPI spec APEI indication (which we currently > > don't pass) without implementing WHEA, but with this patch we'd refuse > > to enable GHES support? We should probably try both the standard method > > and the WHEA method and only disable GHES if both fail. > > You means the "APEI Support" bit for standard UUID? Do you know which > machine uses this bit? I can write the code, but I have no machine to > test it. I have access to a Dell system that uses this. > BTW, it is better for us to enable APEI firmware first mode (that is, > what is enabled by evaluating the WHEA UUID) after GHES reporting is > ready (that is, after GHES module is successfully loaded). That is > later than current ACPI _OSC evaluation with standard UUID. Is it > possible to evaluate _OSC with standard UUID twice? So that we can > enable APEI firmware first mode later. Urgh. One machine I've looked at enables APEI if the WHEA _OSC call is made, and then clears a flag if any other _OSC call is made. In that specific case it doesn't seem to matter (the flag never actually gets checked in any of the other codepaths), but it seems that the intention is for the generic call to be made and the WHEA one to be made after that. > > (Also, are there any other sideeffects of indicating that we support > > WHEA?) > > After evaluating _OSC with this UUID, firmware will produce error record > to OS, otherwise only unknown NMI. Ok, that sounds fine. -- Matthew Garrett | mjg59@srcf.ucam.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/