From patchwork Tue Mar 22 10:46:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 8639731 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 25210C0553 for ; Tue, 22 Mar 2016 10:49:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 49BE72038A for ; Tue, 22 Mar 2016 10:49:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1DA4720398 for ; Tue, 22 Mar 2016 10:49:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758960AbcCVKt3 (ORCPT ); Tue, 22 Mar 2016 06:49:29 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:34584 "EHLO mail-lb0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759177AbcCVKs7 (ORCPT ); Tue, 22 Mar 2016 06:48:59 -0400 Received: by mail-lb0-f169.google.com with SMTP id k12so155411932lbb.1 for ; Tue, 22 Mar 2016 03:48:57 -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=PgeCyb8ycJlLy3qh6DpHTY3qd0tz55JxqAP8EREoIPk=; b=hQgzsA19DyGEwkU2oXON65Hna1rRjGK2D1soeTG8kIg0EdF0AexWUjsfLjXP/q73rg 6zRnpqzla1KXD8YjP1yUvF8MXqjERepJIFQDEJu2j3blmL405dKO+VEGCI872/DB4uOk 91+9/zQLVAkgymoIcqnc+myvPRTGrBprYOdlk= 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=PgeCyb8ycJlLy3qh6DpHTY3qd0tz55JxqAP8EREoIPk=; b=ebRqBpbF8xMU/GxDHv9xn8PH12+Sj6D94ceOj2SYZHU0Uve9OOfhekD6vMCRuXHDbT D7jI4mrr/UVgKu4/zfDg2eaybU2oL/ApX0fSZT/4CAbycELeoBPfUMZbWOUfmeZOwSEc lmyaJ4LE66N/mq7WNS+ACizNonzRcuEv6C68RSJXe3GmZqzLQBE/RWR8vOZagcnOj4uU ivWAR9DVmqrvIVAxLPdIpIhApJO1+WJ2MT4BydhKabGInQ9sa4zR+3NQvkZaCZmFPw3q bDLVgiwsN5Fo8IdGYEn7wI2aZIJFrjP+Hdin99o7mToX8NIbuthZrgpF9fu3o0c8DflF TYtA== X-Gm-Message-State: AD7BkJLhGS1HRioiTRK+cUBzoBkhGDL9s6R0mbOXdi8is+SaND1VAMsiWPgvBOMGZHhDzORH X-Received: by 10.25.18.98 with SMTP id h95mr1868077lfi.113.1458643736745; Tue, 22 Mar 2016 03:48:56 -0700 (PDT) Received: from turnip.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id l5sm5022910lfd.22.2016.03.22.03.48.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Mar 2016 03:48:56 -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 v5 4/6] ACPI: enable ACPI_SPCR_TABLE on ARM64 Date: Tue, 22 Mar 2016 13:46:31 +0300 Message-Id: <1458643595-14719-5-git-send-email-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1458643595-14719-1-git-send-email-aleksey.makarov@linaro.org> References: <1458643595-14719-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 | 2 ++ 2 files changed, 3 insertions(+) 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..36d6f70 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -208,6 +208,8 @@ void __init acpi_boot_table_init(void) pr_err("Failed to init ACPI tables\n"); if (!param_acpi_force) disable_acpi(); + } else { + parse_spcr(); } }