From patchwork Wed Nov 9 17:47:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 13037832 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B841C433FE for ; Wed, 9 Nov 2022 17:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rpNvsdsIufWuo5HtmoGvxhMCgDlLFmOvvEjx7ZCNLR4=; b=Whsk829IPInGIB eqt4i/M2hhXXT8xWY+jV5nI1Y3RAdZFgYZNiRxLhyBKyKpafyEq+amEvFj3xetNAjJBGad2LTLNnP LqeSRE6Mr/KVbv51n5ZW3Scy3+jEFW/Gx0TBJy45Fi/nqOXJz6gPaAyElGtVYwCjYyrE34Phs4tmj mhlYjIgv1H3zK33gXiDKJ5I7DrjjDRnta5v7n4NEQYgSKn4WBkS7BEypUOtYBvYpe1toYo3mVzc5q uz3CQCAUyAWYIscm8VIZ8pELn0+rJKfC2MI+EYihYpwPpW/oUpuL6JURcKd4i0Ti5+Lt3HHDbN/PY 80wJCzRJo9B+LDVHSMtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ospAx-00FkqB-G4; Wed, 09 Nov 2022 17:47:47 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ospAr-00Fkfw-58 for linux-arm-kernel@lists.infradead.org; Wed, 09 Nov 2022 17:47:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 98B911FB; Wed, 9 Nov 2022 09:47:36 -0800 (PST) Received: from u200856.usa.arm.com (U203867.austin.arm.com [10.118.30.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C25BD3F703; Wed, 9 Nov 2022 09:47:26 -0800 (PST) From: Jeremy Linton To: linux-acpi@vger.kernel.org Cc: catalin.marinas@arm.com, will@kernel.org, corbet@lwn.net, rafael@kernel.org, lenb@kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jeremy Linton Subject: [PATCH] ACPI: Enable FPDT on arm64 Date: Wed, 9 Nov 2022 11:47:20 -0600 Message-Id: <20221109174720.203723-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221109_094741_388972_EF9C05CA X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org FPDT provides some boot timing records useful for analyzing parts of the UEFI boot stack. Given the existing code works on arm64, and allows reading the values without utilizing /dev/mem it seems like a good idea to turn it on. Signed-off-by: Jeremy Linton Acked-by: Sudeep Holla --- Documentation/arm64/acpi_object_usage.rst | 2 +- drivers/acpi/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/arm64/acpi_object_usage.rst b/Documentation/arm64/acpi_object_usage.rst index 0609da73970b..484ef9676653 100644 --- a/Documentation/arm64/acpi_object_usage.rst +++ b/Documentation/arm64/acpi_object_usage.rst @@ -163,7 +163,7 @@ FPDT Section 5.2.23 (signature == "FPDT") **Firmware Performance Data Table** - Optional, not currently supported. + Optional, useful for boot performance profiling. GTDT Section 5.2.24 (signature == "GTDT") diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 473241b5193f..1cc11d2a2a88 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -90,7 +90,7 @@ config ACPI_SPCR_TABLE config ACPI_FPDT bool "ACPI Firmware Performance Data Table (FPDT) support" - depends on X86_64 + depends on X86_64 || ARM64 help Enable support for the Firmware Performance Data Table (FPDT). This table provides information on the timing of the system