Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5473580rwb; Tue, 1 Aug 2023 03:15:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRutSsURnSuhlULamF1HcIctglLcZ5ljTFlKWIbCPVKsjql0osvZ6B8tq0v0Il9yBvW6TD X-Received: by 2002:a05:6e02:100a:b0:346:8b4:34c with SMTP id n10-20020a056e02100a00b0034608b4034cmr11800027ilj.16.1690884937075; Tue, 01 Aug 2023 03:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690884937; cv=none; d=google.com; s=arc-20160816; b=ImTwtMk+vwVSgnXFpSbe/ZwMbJksiQCDWSzoxst0+S6N3QU1sIjbiMphtUrK8xrpig kQ13B1FkgYzdOExLkv9y5JE4aUq86vcEdynfuia/fLhapgov9sim6QC94iZoB5JRBWIi LbuFcYbjQhJQkfIAGtpm8XR3KU/lKKRqlqG2kz30OXW7rasTWOux5hHaLukELkI+nAHT E9irTms7FevvxuNcwkvYheVibXpoivYSfrJ5O1wXdOfrmoqOOhXEUXz4lGUi1QyiqOBW rD+Dd2nL4lqnjSxBbQ7uk0F1YH0rrwWUR42Gx/2SopdNnoyY8VPYNtAbq9TEA1fZ4l1B XptA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a17090aa00700b00263035570e1si8880854pjp.89.2023.08.01.03.15.24; Tue, 01 Aug 2023 03:15:37 -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 S233418AbjHAJnq (ORCPT + 99 others); Tue, 1 Aug 2023 05:43:46 -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 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.25.1