From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hanjun Guo Subject: Re: [PATCH v8 11/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init Date: Thu, 05 Feb 2015 17:48:37 +0800 Message-ID: <54D33C75.8030405@linaro.org> References: <1422881149-8177-1-git-send-email-hanjun.guo@linaro.org> <1422881149-8177-12-git-send-email-hanjun.guo@linaro.org> <20150204164328.GF22035@red-moon> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-pa0-f45.google.com ([209.85.220.45]:48590 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756808AbbBEJsr (ORCPT ); Thu, 5 Feb 2015 04:48:47 -0500 Received: by mail-pa0-f45.google.com with SMTP id et14so9019468pad.4 for ; Thu, 05 Feb 2015 01:48:47 -0800 (PST) In-Reply-To: <20150204164328.GF22035@red-moon> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Lorenzo Pieralisi Cc: Catalin Marinas , "Rafael J. Wysocki" , Olof Johansson , Arnd Bergmann , Mark Rutland , "grant.likely@linaro.org" , Will Deacon , "graeme.gregory@linaro.org" , Sudeep Holla , "jcm@redhat.com" , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Daniel Lezcano , Mark Brown , Rob Herring , Robert Richter , Randy Dunlap , Charles Garcia-Tobin , "phoenix.liyi@huawei.com" , Timur Tabi , Ashwin Chaugule On 2015=E5=B9=B402=E6=9C=8805=E6=97=A5 00:43, Lorenzo Pieralisi wrote: > On Mon, Feb 02, 2015 at 12:45:39PM +0000, Hanjun Guo wrote: >> From: Graeme Gregory >> >> There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, >> the former signals to the OS that the firmware is PSCI compliant. >> The latter selects the appropriate conduit for PSCI calls by >> toggling between Hypervisor Calls (HVC) and Secure Monitor Calls >> (SMC). >> >> FADT table contains such information in ACPI 5.1, FADT table was >> parsed in ACPI table init and copy to struct acpi_gbl_FADT, so >> use the flags in struct acpi_gbl_FADT for PSCI init. > > So you do rely on a global FADT being available, if you use it for PS= CI > detection you can use it for ACPI revision detection too, right ? Yes, I think so. > > Point is, either we should not use the global FADT table, or we use > it consistently, or there is something I am unaware of that prevents > you from using in some code paths and I would like to understand > why. global FADT table is initialized when parsing the tables from RSDP in ACPICA core, and it should be work on ARM64 too. 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