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: 64159 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1975794lbc; Tue, 22 Mar 2016 03:49:39 -0700 (PDT) X-Received: by 10.98.72.16 with SMTP id v16mr15558444pfa.5.1458643771510; Tue, 22 Mar 2016 03:49:31 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si1632889pfk.13.2016.03.22.03.49.31; Tue, 22 Mar 2016 03:49:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758960AbcCVKt3 (ORCPT + 5 others); 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 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(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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(); } }