Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752060AbaAMPDo (ORCPT ); Mon, 13 Jan 2014 10:03:44 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:52331 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751546AbaAMPDj (ORCPT ); Mon, 13 Jan 2014 10:03:39 -0500 From: Arnd Bergmann To: Feng Kan Subject: Re: [PATCH V2 5/6] power: reset: change xgene reboot driver to use both acpi and dts resource for reboot. Date: Mon, 13 Jan 2014 16:03:30 +0100 User-Agent: KMail/1.12.2 (Linux/3.8.0-22-generic; KDE/4.3.2; x86_64; ; ) Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org References: <1389135041-16062-1-git-send-email-fkan@apm.com> <201401082243.01694.arnd@arndb.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201401131603.31205.arnd@arndb.de> X-Provags-ID: V02:K0:tjTLpu9s6wrRqCGIMk/f0uoT9zuGK3/NALodB0YAO5X ROWnHtJTQUW1jzZsF3xmrotNg88VQxfhMaxKjwpjmcp53ZhZzD pnL4E/0UtevOtSxaQRkg/5BlD+F3JaGXYv9EjypokXPit7euuA fjPJUKuC/qia+F1xnnY1pWK1wN+9CyOh44svZb8jNWNS9matkj jo85wJX8o96RlHcfNfsc4svsY4hX2eWcWYBjeVwOy0LiL0n/9Z qpp6ZOHMye6eWEFqe3U97OCIHchCjxQgbHpv6tr9REJ+bgtoeY /ycj/BKL6xmrfvl+PJt1OWDK3tcDDGtg+1ImhnM5P0GPBp85U3 B6F838M7bX3m1qQy3XLc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 09 January 2014, Feng Kan wrote: > On Wed, Jan 8, 2014 at 1:43 PM, Arnd Bergmann wrote: > > On Tuesday 07 January 2014, Feng Kan wrote: > >> Enable the X-Gene reboot driver to use either the ACPI or the DTS > >> resource using the platform driver method. > >> > >> Signed-off-by: Feng Kan > >> --- > >> drivers/power/reset/xgene-reboot.c | 33 ++++++++++++++++++++++++++++----- > >> 1 files changed, 28 insertions(+), 5 deletions(-) > >> > > > > Shouldn't an ACPI based system always be able to reboot through the > > UEFI reset_system call? I really don't think we want to support > > ACPI on non-UEFI systems. > > > > Arnd > Thanks Arnd, I will retract the ACPI support for now. We are still > trying to figure out how best to support ACPI. Ok, that makes sense. > The larger problem seems to be the fact that > UEFI and ACPI were originally made for x86 and is ill suited for the > arm64. I will see if I can find a better path for this patch. I would strongly recommend to implement the standard UEFI reset mechanism on arm64-linux and then ensure your firmware provides the appropriate methods. Note that any proper arm64 system that you want a standard Linux distro to run on will likely need to implement UEFI anyway. Regarding ACPI, I'm well aware of the problems you are facing, but they have less to do with the intruction set (x86 vs arm64) and much more with the lack of a standard hardware platform. There is work underway to support a standardized subset of arm64 servers with ACPI, but X-Gene is rather unlikely to fit into that subset because of how it's just a collection of homegrown hardware blocks that are attached in seemingly random ways without a clear structure and certainly not following any standard. This is not unusual for ARM SoCs, and we can have learned to deal with it, but as we have no intention of supporting multiple incompatible ACPI implementations in Linux, you should not spend too much time thinking about ACPI on your platform. Arnd -- 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/