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: 17729 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp476130wru; Wed, 9 Nov 2022 09:53:15 -0800 (PST) X-Google-Smtp-Source: AMsMyM7Zazs4xIXuj4fg2OXNFlJYsC3veJVe0EZN9evZtL2Mou7X92VixigyDMnLkD4PPztSLGEQ X-Received: by 2002:a17:906:1282:b0:7ad:f8df:5f98 with SMTP id k2-20020a170906128200b007adf8df5f98mr37471968ejb.627.1668016394978; Wed, 09 Nov 2022 09:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668016394; cv=none; d=google.com; s=arc-20160816; b=tPU+ut7Y/VBM9vGecbCtH9UHi1pRJ89856lqYi7k+4CS6pggkwlz/RlLr/0RZtlmn5 2SzmrmzlUQtiBVgkM2+alV7S/AgXdE4Nc6S3E4SuYfIyDv5C49mqMX29CwrtJKhrBxZa K/1Eoiu860sAekK/jZAdY8bX613RIim27Xd2ePvCEEV+XESMOVaiBVgCyfKrTbaP2hNc ERz9+iJ8xczdOXxEeztpKJlaljv6zpympleItPHp7rfN8wvrnywbm0wdOMPvfP74WZLM rafrcG93/zh3ipGvWxnp6mDvfqIlVc05KHpVqG2tqBm4uAMXgxMipCl/3R1n4z+l4rb+ EMYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Q+c3+b7sD2lr9W2XOO2bMnLUcOzAGV+CDtRXjWA83lU=; b=SbFPyL7ehwoDtfKPu9S2YGxCCnNX+mqSl3mhKNNTfvoFJYGYwISM4UlCavBnTtyq8H JQoOZBOXiVnVWXqOjWjqTCJxK1Ep8xfi/xPFNuFSL3KflxR4fIgEgiEDjd88Vka3v4Ok GYj5X+MiiHqpQ1fsew0rooxh0oj1DXfa72DKr4SgkNZQDY1jMzyzQkJQHVDmv9xJRA+C ja6a+r1Ht9Q85HwGomHXvla3MkIiVVdBF4/lQ/wB61QMrkwbQS0WltWsz5z6gK2KbE1l SFW+OMkHvmerrIyk5a81OYiUa48GLLVtp5wJ12H02R1Ip5Ep/W2NufJOXsfHvbFUeiIu iIvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht13-20020a170907608d00b007ae814af6aesi4627363ejc.443.2022.11.09.09.52.50; Wed, 09 Nov 2022 09:53:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbiKIRsE (ORCPT + 99 others); Wed, 9 Nov 2022 12:48:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbiKIRrr (ORCPT ); Wed, 9 Nov 2022 12:47:47 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D445E70; Wed, 9 Nov 2022 09:47:32 -0800 (PST) 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749041959594943233?= X-GMAIL-MSGID: =?utf-8?q?1749041959594943233?= 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