From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932826AbcHJVXk (ORCPT ); Wed, 10 Aug 2016 17:23:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:38411 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932559AbcHJSDs (ORCPT ); Wed, 10 Aug 2016 14:03:48 -0400 Date: Wed, 10 Aug 2016 13:10:05 +0200 From: Borislav Petkov To: Fu Wei Cc: Tomasz Nowicki , "Rafael J. Wysocki" , len.brown@intel.com, pavel@ucw.cz, Hanjun Guo , Jonathan Zhang , Jon Masters , Catalin Marinas , Will Deacon , Mark Rutland , Marc Zyngier , Lorenzo Pieralisi , Thomas Gleixner , mingo@redhat.com, hpa@zytor.com, matt.fleming@intel.com, Tony Luck , Linux Kernel Mailing List , ACPI Devel Maling List , x86@kernel.org, Linaro ACPI Mailman List , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v12] acpi, apei, arm64: APEI initial support for aarch64. Message-ID: <20160810111005.GD16664@nazgul.tnic> References: <1469782664-12611-1-git-send-email-fu.wei@linaro.org> <20160804094838.GB8093@nazgul.tnic> <20160810104513.GB16664@nazgul.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 10, 2016 at 07:01:05PM +0800, Fu Wei wrote: > - if (!acpi_disable_cmcff) > - apei_hest_parse(hest_parse_cmc, NULL); > + rc =apei_hest_parse(hest_parse_cmc, NULL); > + if (rc) > + goto err; > > if (!ghes_disable) { > rc = apei_hest_parse(hest_parse_ghes_count, &ghes_count); > > Do you have other suggestion? then I can post v14 to fix it :-) Nah, looks good :) Let's keep it simple and add more involved handling when it is really needed. Thanks! Btw, that comment: +/* + * acpi_disable_cmcff is used in drivers/acpi/apei/hest.c for disabling + * IA-32 Architecture Corrected Machine Checkx(cmc) FIRMWARE_FIRST mode by + * boot parameter(acpi=nocmcff). But we don't have this IA-32 specific + * feature on ARM64, this definition is only for compatibility. + */ +#define acpi_disable_cmcff 1 looks ok, except the small typo: Architecture Corrected Machine Checkx(cmc) ^ Make that "IA-32 Architecture Corrected Machine Check (CMC) Firmware-First mode" Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --