From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753166AbaCARXH (ORCPT ); Sat, 1 Mar 2014 12:23:07 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:33029 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752655AbaCARXF (ORCPT ); Sat, 1 Mar 2014 12:23:05 -0500 Date: Sat, 1 Mar 2014 17:22:56 +0000 From: Matthew Garrett To: "Li, Aubrey" Cc: "H. Peter Anvin" , "alan@linux.intel.com" , linux-kernel@vger.kernel.org, Len.Brown@intel.com, Adam Williamson Subject: Re: [patch] x86: Introduce BOOT_EFI and BOOT_CF9 into the reboot sequence loop Message-ID: <20140301172256.GA29417@srcf.ucam.org> References: <531027BE.2010807@linux.intel.com> <20140228061254.GA2226@srcf.ucam.org> <53102AB9.40600@linux.intel.com> <20140228062325.GA3246@srcf.ucam.org> <53102F3C.4020806@linux.intel.com> <20140228064413.GA4900@srcf.ucam.org> <531032A0.8090903@linux.intel.com> <5310CBB7.4030407@linux.intel.com> <53110977.8080907@linux.intel.com> <53121496.8060603@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53121496.8060603@linux.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 On Sun, Mar 02, 2014 at 01:10:46AM +0800, Li, Aubrey wrote: > Peter - Can you please clarify writing to cf9 caused some system hang. > If CF9 is the last way to try, that means ACPI, KBD takes no effect, > then if no CF9, the system hangs there in infinite for() loop. If CF9 > is there, that means CF9 takes no effect as well, CF9 does *NOT* cause > system hang, right? If the answer is no, can you please point me which > system hangs by CF9. I'd like to investigate what the ACPI reboot > vectors look like on these systems. I think I'm fine with cf9 being in there as long as it comes after the ACPI calls and as long as we're using either conf1 or conf2 access. > I know, cf9 is not an architectural way, twice ACPI call has no spec > (1) ACPI > (2) keyboard > (3) ACPI > (4) keyboard > (5) FADT sleep register as long as it's valid(!=0) > (6) FADT sleep registers once again(since we try ACPI twice) ACPI is the FADT sleep register - there's no separate ACPI reboot call. Do you mean try this again even if the valid bit isn't set? > (7) EFI (interesting, I found it's eventually CF9 on some my > investigated systems. No need to wait Matt's patch, it gives a chance to > reboot 32bit kernel on 32bit EFI today) No. The EFI reboot call jumps into the firmware and executes code. We don't want to do that until we ensure that there's an appropriate mapping in place because the consequences could be unpleasent. There is code to do this, let's just wait until it's merged. > Also, we should add if a new method is emerged, instead of keeping > adding those freak/endless reboot dmidecode table. Those quirks were not > supposed to be in the kernel. We should remove them. Hey I am absolutely fine with removing DMI lists under almost all circumstances. -- Matthew Garrett | mjg59@srcf.ucam.org