Received: by 10.223.176.46 with SMTP id f43csp879407wra; Sat, 20 Jan 2018 06:36:23 -0800 (PST) X-Google-Smtp-Source: AH8x225nZWF/MPt6HpXZdEIfzizDYln1GcFwqpK9BOPjk9umYmLMXPCiEuG1z/Xz6lshM7NRTNrP X-Received: by 10.99.97.137 with SMTP id v131mr2149267pgb.243.1516458983266; Sat, 20 Jan 2018 06:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516458983; cv=none; d=google.com; s=arc-20160816; b=WaX3J7NGliYQjroSmn5EEe6diDMzjQyTgeU2EJfzL5UVcGwgfNjhRkSFZPny5TVJMf EVIqH+v5or/gGdXeKhdTtV7KiKf57VscFvJFG8G//dFVdqo8JljgEf9HmmlKLQteKEnN E2bnT4ff55lZ+7v6ldjd5odwOGV3FRrhBDkaXuHgjFx8kIBBEI3tdRJ5PUwUwTJD9j6R 1/7kShcV0MlPxA0MIvPkstBqVdhJgS+zeXi33y7AnoRKBFj1a2MzD/cJMISdqFkCKGHD C9Jcf5vqDotJCGq1BCWrK2brBDF4M/NhersLz7yfs8GzL5nbAH+bEbXAUI9p6bxJvnEP fWvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=epie+EvS8K42YMcffah72G5NCxiEDzyLMU/fKxqko20=; b=umnKU3KA30G4LoVcWyEwdcEX31BJeCd3eBVYlx60BDEhEa/RphugbxLLvXIaXMZ663 Y0EqESrkWTTjrnfK4VwdyJzHjCN6KOwNSRrwWHSoJa3TWjD4/BSmSKJeYNU9MjxVB7lH b7DUMFHs4SRrHrKM/K26oOyrIKiP8kEbUPDd7tLPgW9RB/Ojk76GuOeV/+xg9HbxWHK3 qwgPg6rdcEOEKtRJ0MOBtx96w4vHzXYxvh74V/jDjlWJm6d3yN5ryU45qh9rx45yM49h i+SGjR5hkuzRYAfLCtm/M9AHmwP5j5CqAur8ZqZ3SCYCnmdQsdWz2HH8SamvodaaDVKt Jc6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aqV17r3c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a81si11362862pfe.391.2018.01.20.06.36.08; Sat, 20 Jan 2018 06:36:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aqV17r3c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754742AbeATOeF (ORCPT + 99 others); Sat, 20 Jan 2018 09:34:05 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:44095 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbeATOd4 (ORCPT ); Sat, 20 Jan 2018 09:33:56 -0500 Received: by mail-wm0-f68.google.com with SMTP id t74so8479919wme.3; Sat, 20 Jan 2018 06:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=epie+EvS8K42YMcffah72G5NCxiEDzyLMU/fKxqko20=; b=aqV17r3cQN+rp7BbnvLfFTnFQXocRC54DFUDmlNvMOWvJQAmQxqZRTSEadxG7+ENMs b8JU4eXDIFVl3VBNqCNUClsVbKE1z9xYCuRMnV3WFTi5udTgqBAfnn8nAtXLSlyRreDe 9sQPVTjqoUNAnyMdOCjJaVYb/yeMb/872h84wD37sEaSLhie/ObGpTrJ+ZyIml8sezvD W7BWLhDbZN2Xp6Y6vXa0Aa4Nqat2RhHUtNjQxbqw46x9D8PCGif73n8dVxvEqc91JYwe eqcKgj97yVbDsDuGABhxeSDKXwkGWznZgYAbpfPR+fdGB0eijnwwHliTjXNOGFyt/RPj hr9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=epie+EvS8K42YMcffah72G5NCxiEDzyLMU/fKxqko20=; b=hbI9jWeusgKsT6XrA/8TZh072cloVbAOmDG4AONTR3tBZfIjAiB0apcOwkLp0pyjbM GnhCyfCQEs/qR8fgCupcc/ZkcmgLGZL3ROfSHPiCTDBFFYgMfNRQ8GHjh01pzdHbvLxO zH9qesw4RccIVU9Z1GRVoAWTIiXb9HXlIIyp5I/KutoBPzz/xLkbki/ysB7JsISxyjkp nbxAMcw+rKmRjbWhnCZpsDYssNyeaZBTj5Bl5bHARbIcEcqYMR1kWTG2ib+y/fYeH9Tk LrwemItVQ+CfA2uAOBbWbMoxYbvCUTC5zpU4Hvy4Y6MZ0Cek2uBdH2alYPML8QRFa1Fy 0XDw== X-Gm-Message-State: AKwxytczd4xmtoqmB3xpxaK75VYoUEKQjFjcgIrEmSpCLc4PG3P6AHrk sgm1qFWgo62jSGbJEpOkfgk= X-Received: by 10.28.216.149 with SMTP id p143mr1226209wmg.80.1516458834460; Sat, 20 Jan 2018 06:33:54 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id t65sm1688416wmt.39.2018.01.20.06.33.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Jan 2018 06:33:53 -0800 (PST) Date: Sat, 20 Jan 2018 15:33:51 +0100 From: Ingo Molnar To: Prarit Bhargava Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-serial@vger.kernel.org, Bhupesh Sharma , Lv Zheng , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Jonathan Corbet , Catalin Marinas , Will Deacon , Timur Tabi , graeme.gregory@linaro.org, mark.salter@redhat.com Subject: Re: [PATCH] acpi, spcr: Make SPCR available to x86 Message-ID: <20180120143351.gmjpnqczaa2zov4o@gmail.com> References: <20180118150951.28964-1-prarit@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180118150951.28964-1-prarit@redhat.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Prarit Bhargava wrote: > Note on testing: I've tested this on several ARM64 and x86 boxes (only > earlycon, console=ttyS0,115200, and with both options), verified that > functionality on ARM64 has not changed (ie, CONFIG_ACPI_SPCR_TABLE is > always =y), and verified functionality when !CONFIG_ACPI_SPCR_TABLE on > x86. > > P. > > ----8<---- > > SPCR is currently only enabled or ARM64 and x86 can use SPCR to setup an > early console. > > General fixes include updating Documentation & Kconfig (for x86), updating > comments, and changing parse_spcr() to acpi_parse_spcr(), and > earlycon_init_is_deferred to earlycon_acpi_spcr_enable to be more > descriptive. > > On x86, many systems have a valid SPCR table but the table version is not > 2 so the table version check must be a warning. > > On ARM64 when the kernel parameter earlycon is used both the early console > and console are enabled. On x86, only the earlycon should be enabled by > by default. Modify acpi_parse_spcr() to allow options for initializing > the early console and console separately. > > Signed-off-by: Prarit Bhargava > Cc: linux-acpi@vger.kernel.org > Cc: linux-doc@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-pm@vger.kernel.org > Cc: linux-serial@vger.kernel.org > Cc: Bhupesh Sharma > Cc: Lv Zheng > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x86@kernel.org > Cc: Jonathan Corbet > Cc: Catalin Marinas > Cc: Will Deacon > Cc: "Rafael J. Wysocki" Mrjw@rjwysocki.net> > Cc: Timur Tabi > Cc: graeme.gregory@linaro.org > Cc: mark.salter@redhat.com > --- > Documentation/admin-guide/kernel-parameters.txt | 9 +++++--- > arch/arm64/kernel/acpi.c | 4 ++-- > arch/x86/kernel/acpi/boot.c | 3 +++ > drivers/acpi/Kconfig | 7 +++++- > drivers/acpi/spcr.c | 29 +++++++++++++------------ > drivers/tty/serial/earlycon.c | 15 +++++-------- > include/linux/acpi.h | 7 ++++-- > include/linux/serial_core.h | 4 ++-- > 8 files changed, 44 insertions(+), 34 deletions(-) I'm fine with the x86 aspect of this: Acked-by: Ingo Molnar > earlycon= [KNL] Output early console device and options. > > - When used with no options, the early console is > - determined by the stdout-path property in device > - tree's chosen node. > + [ARM64] The early console is determined by the > + stdout-path property in device tree's chosen node, > + or determined by the ACPI SPCR table. s/in device tree's chosen node /in the device tree's chosen node Thanks, Ingo