Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759100AbcDENt4 (ORCPT ); Tue, 5 Apr 2016 09:49:56 -0400 Received: from mail-oi0-f51.google.com ([209.85.218.51]:33810 "EHLO mail-oi0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759081AbcDENtx (ORCPT ); Tue, 5 Apr 2016 09:49:53 -0400 MIME-Version: 1.0 In-Reply-To: <570226A5.4000304@semihalf.com> References: <1459237458-12352-1-git-send-email-fu.wei@linaro.org> <570226A5.4000304@semihalf.com> Date: Tue, 5 Apr 2016 21:49:52 +0800 Message-ID: Subject: Re: [PATCH v8] acpi, apei, arm64: APEI initial support for aarch64. From: Fu Wei To: Tomasz Nowicki Cc: Ard Biesheuvel , "Rafael J. Wysocki" , len.brown@intel.com, pavel@ucw.cz, Catalin Marinas , Will Deacon , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , Mark Rutland , Linaro ACPI Mailman List , "Baicar, Tyler" , Richard Ruigrok , Lorenzo Pieralisi , Al Stone , "x86@kernel.org" , "Abdulhamid, Harb" , "linux-acpi@vger.kernel.org" , Mark Salter , Grant Likely , linux-pm@vger.kernel.org, Marc Zyngier , Jon Masters , Tomasz Nowicki , Robert Richter , "linux-arm-kernel@lists.infradead.org" , G Gregory , "linux-kernel@vger.kernel.org" , jarkko.nikula@linux.intel.com, Hanjun Guo , Jonathan Zhang Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1728 Lines: 60 Hi Tomasz, On 4 April 2016 at 16:32, Tomasz Nowicki wrote: > On 30.03.2016 09:05, Ard Biesheuvel wrote: >> >> On 29 March 2016 at 09:44, wrote: >>> >>> From: Tomasz Nowicki >>> >>> This commit provides APEI arch-specific bits for aarch64 >>> >>> Meanwhile, >>> (1)add a new subfunction "hest_ia32_init" for >>> "acpi_disable_cmcff" which is used by IA-32 Architecture >>> Corrected Machine Check (CMC). >>> (2)move HEST type (ACPI_HEST_TYPE_IA32_CORRECTED_CHECK) checking to >>> a generic place. >>> (3)select EFI when ACPI_APEI is set on ARM64, >>> because arch_apei_get_mem_attribute is using efi_mem_attributes on ARM64. >> >> >> I think selecting 'EFI' is not the right approach here, especially >> since EFI is implied by ACPI on that architecture. But selecting a >> user configurable option like this is typically not recommended. Why >> doesn't ACPI_APEI depend on ACPI? > > > It does, ACPI_APEI is subsection of the main ACPI menu option, but I don't > see that ACPI implies EFI in Kconfig. > > Also, I agree with Ard, EFI should not be selected conditionally for ARM64 > for ACPI_APEI. > > We need EFI only for ARM64 so how about: > + select HAVE_ACPI_APEI if (ACPI && EFI) > in arch/arm64/Kconfig and leave ACPI_APEI as is? I also agree with Ard, and I like "select HAVE_ACPI_APEI if (ACPI && EFI)" Thanks for your suggestion !! :-) > > Regards, > Tomasz > > -- Best regards, Fu Wei Software Engineer Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch Ph: +86 21 61221326(direct) Ph: +86 186 2020 4684 (mobile) Room 1512, Regus One Corporate Avenue,Level 15, One Corporate Avenue,222 Hubin Road,Huangpu District, Shanghai,China 200021