From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hanjun Guo Subject: Re: [Linaro-acpi] [RFC] ACPI on arm64 TODO List Date: Thu, 15 Jan 2015 12:07:45 +0800 Message-ID: <54B73D11.2020905@linaro.org> References: <548F9668.6080900@linaro.org> <1636716.eAYJb6Z2AV@wuerfel> <1421113529.giGjG4IzLy@wuerfel> <54B5B7B9.6090101@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-pd0-f182.google.com ([209.85.192.182]:54451 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbbAOEHw (ORCPT ); Wed, 14 Jan 2015 23:07:52 -0500 Received: by mail-pd0-f182.google.com with SMTP id y10so2517617pdj.13 for ; Wed, 14 Jan 2015 20:07:51 -0800 (PST) In-Reply-To: <54B5B7B9.6090101@redhat.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Al Stone , Grant Likely , Arnd Bergmann Cc: linaro-acpi , Catalin Marinas , "Rafael J. Wysocki" , ACPI Devel Mailing List , Olof Johansson , "linux-arm-kernel@lists.infradead.org" On 2015=E5=B9=B401=E6=9C=8814=E6=97=A5 08:26, Al Stone wrote: > On 01/13/2015 10:22 AM, Grant Likely wrote: >> On Mon, Jan 12, 2015 at 7:40 PM, Arnd Bergmann wrote= : >>> On Monday 12 January 2015 12:00:31 Grant Likely wrote: >>>> On Mon, Jan 12, 2015 at 10:21 AM, Arnd Bergmann wr= ote: >>>>> On Saturday 10 January 2015 14:44:02 Grant Likely wrote: >>>>>> On Wed, Dec 17, 2014 at 10:26 PM, Grant Likely wrote: >>>>> This seems like a great fit for AML indeed, but I wonder what exa= ctly >>>>> we want to hotplug here, since everything I can think of wouldn't= need >>>>> AML support for the specific use case of SBSA compliant servers: >>>> >>>> [...] >>>> >>>> I've trimmed the specific examples here because I think that misse= s >>>> the point. The point is that regardless of interface (either ACPI = or >>>> DT) there are always going to be cases where the data needs to cha= nge >>>> at runtime. Not all platforms will need to change the CPU data, bu= t >>>> some will (say for a machine that detects a failed CPU and removes >>>> it). Some PCI add-in boards will carry along with them additional = data >>>> that needs to be inserted into the ACPI namespace or DT. Some >>>> platforms will have system level component (ie. non-PCI) that may = not >>>> always be accessible. >>> >>> Just to be sure I get this right: do you mean runtime or boot-time >>> (re-)configuration for those? >> >> Both are important. >> >>>> ACPI has an interface baked in already for tying data changes to >>>> events. DT currently needs platform specific support (which we can >>>> improve on). I'm not even trying to argue for ACPI over DT in this >>>> section, but I included it this document because it is one of the >>>> reasons often given for choosing ACPI and I felt it required a mor= e >>>> nuanced discussion. >>> >>> I can definitely see the need for an architected interface for >>> dynamic reconfiguration in cases like this, and I think the ACPI >>> model actually does this better than the IBM Power hypervisor >>> model, I just didn't see the need on servers as opposed to somethin= g >>> like a laptop docking station to give a more obvious example I know >>> from x86. > > I know of at least one server product (non-ARM) that uses the > hot-plugging of CPUs and memory as a key feature, using the > ACPI OSPM model. Essentially, the customer buys a system with > a number of slots and pays for filling one or more of them up > front. As the need for capacity increases, CPUs and/or RAM gets > enabled; i.e., you have spare capacity that you buy as you need > it. If you use up all the CPUs and RAM you have, you buy more > cards, fill the additional slots, and turn on what you need. This > is very akin to the virtual machine model, but done with real hardwar= e > instead. There is another important user case for RAS, systems running critical missions such as bank billing system, system like that need high reliability that the machine can't be stopped. So when error happened on hardware including CPU/memory DIMM on such machines, we need to replace them at run-time. > > Whether or not this product is still being sold, I do not know. I > have not worked for that company for eight years, and they were just > coming out as I left. Regardless, this sort of hot-plug does make > sense in the server world, and has been used in shipping products. I think it still will be, Linux developers put lots of effort to enable memory hotplug and computer node hotplug in the kernel [1], and the code already merged into mainline. [1]: http://events.linuxfoundation.org/sites/events/files/lcjp13_chen.pdf Thanks Hanjun -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html