From patchwork Thu Aug 3 05:56: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: 13043 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp941309vqx; Wed, 2 Aug 2023 23:14:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtD5Fzsfr9oOBrDRXjnp7M0S2mTHkJsEp27YPMCeNI5WopVlcsntLGmdUdpgckmr033A+N X-Received: by 2002:a05:6402:430b:b0:521:66b4:13b4 with SMTP id m11-20020a056402430b00b0052166b413b4mr14545643edc.0.1691043281532; Wed, 02 Aug 2023 23:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691043281; cv=none; d=google.com; s=arc-20160816; b=a3LrKxq6gWV5l4NuRJTvVVF/j279goDFbHcVtAYMk2u5ZOrvGnxNLLCk+MCOWkCdbm LWBZaU5kR46oyAZtLjvY+tCkl0QAlH0RfuQnFkNnbqIMpWYvJ48NU9rfA2huJeP+pmoX DE0JCLgnJYWkUatv2cy6uTaJkkcEKAO0X6M576BWDycrEWMFLfXulnFB6eeLh9sXNqkD sL02RZE6FK4HamT1giyQ6ELhg9suyoXqdxZGV8aqxjgrSipi3ao2nZ/jnZ2o0wf2G4Ya 9vaEkGWTXXNbOnzYPsLvCLIvhy/HmmAVAcsQisKsMbk1r9Adet0qK/Aq4GvYue392ujw GDeQ== 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=/+esdeqZAVImJYTwO2DIHvXonNyT7qqKREnlKkYX6Uw=; fh=PK7qZE2l3RufuWL/yvUO8bu8mrcIpscTWlY+prmDsuM=; b=pHHqPVO4qQO45s/pSniu0sjrFFSM1QXlfwYCGGsPce/TFJ32C1Q/++XxDVSTXkUM3a 5QNGXwarf7hDObfjyBXsN7ICktuklK5niempViPaeP6eNIpWGLBq1NmlCmPLXWLOwJDO 2fJGS8euw8R3tcDGGXaADypjvb1mUYQX5rPWmMTDKpo4uKQZygsjoqZRAs8G/tKU8VkP Ag5Jjrjgmq/NYrWFIjj1MHEy+ydx+hHsfxB1l2lh/4YlplEQlUK7UjEuzlOhjirGfQsN f8ojFeZZWbOn9pm3IUvl9gsq7L9Eg/3earsXLDyc89VCzwiG24gUkbLyx5xtLskrW9n+ JYnA== 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 d15-20020a056402516f00b005223c32fd2asi11064585ede.570.2023.08.02.23.14.18; Wed, 02 Aug 2023 23:14:41 -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 S232559AbjHCF5K (ORCPT + 99 others); Thu, 3 Aug 2023 01:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjHCF5J (ORCPT ); Thu, 3 Aug 2023 01:57:09 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 05E0D2D43 for ; Wed, 2 Aug 2023 22:57:06 -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 8F978113E; Wed, 2 Aug 2023 22:57:49 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [10.162.42.10]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4668D3F6C4; Wed, 2 Aug 2023 22:57:01 -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 V3 0/4] coresight: trbe: Enable ACPI based devices Date: Thu, 3 Aug 2023 11:26:48 +0530 Message-Id: <20230803055652.1322801-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.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,T_SCC_BODY_TEXT_LINE 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: 1773187400051257511 X-GMAIL-MSGID: 1773187400051257511 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 V3: - Changed ARMV8_TRBE_PDEV_NAME from "arm-trbe-acpi" into "arm,trbe" - Dropped local variable 'matched' - Replaced 'matched' with 'valid gsi' as being already matched once - Moved find_acpi_cpu_topology_hetero_id() outside conditional check Changes in V2: https://lore.kernel.org/all/20230801094052.750416-1-anshuman.khandual@arm.com/ - 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 | 142 +++++++++++++------ include/linux/perf/arm_pmu.h | 1 + 5 files changed, 119 insertions(+), 43 deletions(-)