Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312AbbLJT6P (ORCPT ); Thu, 10 Dec 2015 14:58:15 -0500 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:48386 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751940AbbLJT6N (ORCPT ); Thu, 10 Dec 2015 14:58:13 -0500 Date: Thu, 10 Dec 2015 19:57:40 +0000 From: One Thousand Gnomes To: John Stultz Cc: Tomas Winkler , Arnd Bergmann , Bjorn Andersson , lkml , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Vinay Simha BN , Haojian Zhuang , "devicetree@vger.kernel.org" , Android Kernel Team , Andy Gross , "linux-arm-msm@vger.kernel.org" , "Gross, Mark" , Samuel Ortiz , Darren Hart Subject: Re: [RFC][PATCH] misc: Introduce reboot_reason driver Message-ID: <20151210195740.42462e18@lxorguk.ukuu.org.uk> In-Reply-To: References: <1449610162-30543-1-git-send-email-john.stultz@linaro.org> <20151208220722.GG4000@usrtlx11787.corpusers.net> <27901180.P9mpafrzx5@wuerfel> Organization: Intel Corporation X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1807 Lines: 41 On Thu, 10 Dec 2015 11:04:03 -0800 John Stultz wrote: > On Thu, Dec 10, 2015 at 1:20 AM, Tomas Winkler wrote: > > Intel uses EFI variables for that on some AOS platforms. There is a > > need for persistent storage abstraction and generalize the reboot > > reasons strings. > > Yea. I've been told there isn't any sort of standardized method for > EFI here. But I have seen a few different implementations floating > around. > > One of the machines I want to support with this driver is actually > using a UEFI bootloader, but we don't have separate storage to use to > communicate back via the UEFI methods, so the ram based approach looks > like the best solution. > > > Second, I wonder why this is submitted under drivers/misc when it > > doesn't bind the misc API. > > Heh. Apologies. Its more of a "where do I put this?", misc rather then > "this should be part of the established misc infrastructure!" > Suggestions for alternative locations? Other than providing a reason (which could be via sysfs) I don't actually see what in the rest of it doesn't either live in the platform arch/ code or for standardised firmware in the EFI / ACPI or some other drivers. sysfs node provides the reason string, reboot notifiers get run before reboot, and it's up to the platform to decide if it wants to do anything with the reason string before it hits the switch. I don't see the need for anything but an extra /sys/power node in the core kernel ? The rest from a core kernel perspective is already there. Alan -- 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/