From patchwork Tue Aug 1 09:40:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 12931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2557824vqg; Tue, 1 Aug 2023 02:57:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFoMBBsHo2Clv7NOlONaeh/rOKEmpqaPwWmDqGw68i4pC9Hht0ZZoGcuImN6B1XxCGJWPmY X-Received: by 2002:a05:6402:26ce:b0:522:3ad2:33f5 with SMTP id x14-20020a05640226ce00b005223ad233f5mr9720527edd.2.1690883856825; Tue, 01 Aug 2023 02:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690883856; cv=none; d=google.com; s=arc-20160816; b=hg7QZPsgTk245oijFNAmDFEYl2G14DRW4P7yEeXuXwtWxlSyyVY7bcuIiPSsfcyGxX x2KbKm7raOQO/nLOlJ4UZeZZv2hz3QGDce35ypKaNULQoA0j3hfJgznlD8Wa0uryszs7 iv0jU0YOImyxXjisDaeqoOxW4qMaq/O+7BVrNr2RCfWO3YAZwzJuBykdVm0vlBhSNn6s ESo+4GZCQaJQXQzWlcclATHuOF7BZRbSpOc8ma0t2VJ5n3a2ze09vlKK4FzTGTtlM/e7 sOZqngwuamAMU++NJFsxjKfOex+tESJHtaXlbi1TjV3PQN0gxiioSCim5karfxsWlsQl m+5Q== 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=759v0tcUuRP6/2j7DhCqL5AcWiotrZqtSDQIUGvpLys=; fh=PK7qZE2l3RufuWL/yvUO8bu8mrcIpscTWlY+prmDsuM=; b=u5tPDfdB15dCbys/aRBDDaPKKh7SnlYiVxb6Afr4rWXlctMHWCUTuJx5nfAZbFI8AU wBtQFYVQH7W7YHG/G0ETcZNlV/imlgLMcbGxXZAVRvIA5fk9za/wvPnq2GwA4xKKVX3E rQ7Jl+TRgVpeRGRSeQ2ylB4xJbM872vOht+br9yCsji9eSrpBP0L8aKTNRfLyU++vQXP ElZd5FXi55oz5+Q3tKhu3LTJx1Pi5J5TLuRPrZv8crLNmYIXBh6j/7cfQcq56idpmum8 u/60i6xulxciVIqafqwd++5WEQlJpaPvVd3bo8Z0xT1n6Ka8omARcatut8cAud9G1eZF qJxg== 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 n26-20020a056402515a00b0052255161ea1si7907931edd.45.2023.08.01.02.57.12; Tue, 01 Aug 2023 02:57:36 -0700 (PDT) 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 S233426AbjHAJnr (ORCPT + 99 others); Tue, 1 Aug 2023 05:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233404AbjHAJn0 (ORCPT ); Tue, 1 Aug 2023 05:43:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B5DD5FF0 for ; Tue, 1 Aug 2023 02:41:09 -0700 (PDT) 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 18643D75; Tue, 1 Aug 2023 02:41:49 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.53.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 16DC03F5A1; Tue, 1 Aug 2023 02:41:00 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Sami Mujawar , Catalin Marinas , Will Deacon , Mark Rutland , Mike Leach , Leo Yan , Alexander Shishkin , James Clark , coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/4] coresight: trbe: Enable ACPI based devices Date: Tue, 1 Aug 2023 15:10:48 +0530 Message-Id: <20230801094052.750416-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: INBOX X-GMAIL-THRID: 1773020230865828330 X-GMAIL-MSGID: 1773020230865828330 This series enables detection of ACPI based TRBE devices via a stand alone purpose built representative platform device. But as a pre-requisite this changes coresight_platform_data structure assignment for the TRBE device. This series is based on v6.5-rc4 kernel, is also dependent on the following EDK2 changes posted earlier by Sami. https://edk2.groups.io/g/devel/message/107239 https://edk2.groups.io/g/devel/message/107241 Changes in V2: - Refactored arm_spe_acpi_register_device() in a separate patch - Renamed trbe_acpi_resources as trbe_resources - Renamed trbe_acpi_dev as trbe_dev Changes in V1: https://lore.kernel.org/all/20230728112733.359620-1-anshuman.khandual@arm.com/ Cc: Sami Mujawar Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Suzuki K Poulose Cc: Mike Leach Cc: Leo Yan Cc: Alexander Shishkin Cc: James Clark Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Anshuman Khandual (4): arm_pmu: acpi: Refactor arm_spe_acpi_register_device() arm_pmu: acpi: Add a representative platform device for TRBE coresight: trbe: Add a representative coresight_platform_data for TRBE coresight: trbe: Enable ACPI based TRBE devices arch/arm64/include/asm/acpi.h | 3 + drivers/hwtracing/coresight/coresight-trbe.c | 15 +- drivers/hwtracing/coresight/coresight-trbe.h | 1 + drivers/perf/arm_pmu_acpi.c | 145 ++++++++++++++----- include/linux/perf/arm_pmu.h | 1 + 5 files changed, 122 insertions(+), 43 deletions(-)