From patchwork Thu Mar 24 12:52:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 8660481 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4BFBE9F44D for ; Thu, 24 Mar 2016 12:55:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67C79203AE for ; Thu, 24 Mar 2016 12:55:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 92C8C203B4 for ; Thu, 24 Mar 2016 12:55:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757180AbcCXMyu (ORCPT ); Thu, 24 Mar 2016 08:54:50 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:33971 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757445AbcCXMyf (ORCPT ); Thu, 24 Mar 2016 08:54:35 -0400 Received: by mail-lb0-f181.google.com with SMTP id k12so29635679lbb.1 for ; Thu, 24 Mar 2016 05:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1uocBWwHQxXc+lGHQqShm0XHYYisGFIadIi/YDVSLhU=; b=haT4T+Abd08janArLiSb7IsE5aJdssVu7+p3ixmbbIAnw686iMujRRJMd6XmLXYcH6 SS+JhzqvsNn2uOlQsgdZ351HhI8O+WpFj0Ts97SEVnksEsqvGsmKQgJH55WrIibVUaqj 8HCVd8yMuvITj3YNx/PGZoGLxgjDYFDI0yodM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1uocBWwHQxXc+lGHQqShm0XHYYisGFIadIi/YDVSLhU=; b=mZHiCZvhMrslfMACM9bllHd9O20OZEXhr+2+vX6QpL2Pw4ftn+j0+ohDx2nA+Xf9Mq 5Up0z0zuWp4W7vEEWkuCX5GKiLWdIPDw+B73iM3NwIV5UY63UUNylVTiFA3UFrKT+pwG to+QkEOo02ccvH5CRcnFC9qsJAMD4bVyfc0XcB8RzhcQ1xtKG0U2Yrdzh37eJ/R6oVKr vksRavlxugaj8q0XzSlq3dtRBdOAPLyijECYShRYibO2ArcNqIQnXWwzryLaTvfS08oU XvZEWO1pGpgunf0gTscG2ySbOVAbhCEwQszUHFYCK+L90mhuOlpKlprcAFZuWRRKwJqu r/0w== X-Gm-Message-State: AD7BkJIhhL37qhKdg9oG6VHJF4fMT9LQwipJ0Nf3RU00B6cavUSOC954UolfnHm8FeNudT/k X-Received: by 10.112.46.136 with SMTP id v8mr2744452lbm.38.1458824073735; Thu, 24 Mar 2016 05:54:33 -0700 (PDT) Received: from turnip.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id rh2sm1167378lbb.36.2016.03.24.05.54.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 05:54:32 -0700 (PDT) From: Aleksey Makarov To: Greg Kroah-Hartman , "Rafael J . Wysocki" , Len Brown Cc: linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Aleksey Makarov , Russell King , Leif Lindholm , Graeme Gregory , Al Stone , Christopher Covington , Yury Norov , Peter Hurley , "Zheng, Lv" , Catalin Marinas , Will Deacon Subject: [PATCH v6 4/5] ACPI: enable ACPI_SPCR_TABLE on ARM64 Date: Thu, 24 Mar 2016 15:52:02 +0300 Message-Id: <1458823925-19560-5-git-send-email-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1458823925-19560-1-git-send-email-aleksey.makarov@linaro.org> References: <1458823925-19560-1-git-send-email-aleksey.makarov@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64 Earlycon should be set up as early as possible. ACPI boot tables are mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() called from setup_arch() and that's where we parse SPCR. So it has to be opted-in per-arch. Signed-off-by: Aleksey Makarov --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/acpi.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07b6a16..c77b4b2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -3,6 +3,7 @@ config ARM64 select ACPI_CCA_REQUIRED if ACPI select ACPI_GENERIC_GSI if ACPI select ACPI_REDUCED_HARDWARE_ONLY if ACPI + select ACPI_SPCR_TABLE if ACPI select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE select ARCH_HAS_ELF_RANDOMIZE diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index d1ce8e2..046f095 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -189,7 +189,7 @@ void __init acpi_boot_table_init(void) */ if (param_acpi_off || (!param_acpi_force && of_scan_flat_dt(dt_scan_depth1_nodes, NULL))) - return; + goto done; /* * ACPI is disabled at this point. Enable it in order to parse @@ -209,6 +209,9 @@ void __init acpi_boot_table_init(void) if (!param_acpi_force) disable_acpi(); } + +done: + parse_spcr(); } #ifdef CONFIG_ACPI_APEI