From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Nowicki Subject: Re: [PATCH v8] acpi, apei, arm64: APEI initial support for aarch64. Date: Mon, 4 Apr 2016 10:32:37 +0200 Message-ID: <570226A5.4000304@semihalf.com> References: <1459237458-12352-1-git-send-email-fu.wei@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-lb0-f174.google.com ([209.85.217.174]:34441 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754750AbcDDIc4 (ORCPT ); Mon, 4 Apr 2016 04:32:56 -0400 Received: by mail-lb0-f174.google.com with SMTP id vo2so149481693lbb.1 for ; Mon, 04 Apr 2016 01:32:56 -0700 (PDT) In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Ard Biesheuvel , Fu Wei Cc: "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 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? Regards, Tomasz