Message ID | 20230803055652.1322801-1-anshuman.khandual@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;cambridge8321@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <anshuman.khandual@arm.com> To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Sami Mujawar <sami.mujawar@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linaro.org>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, James Clark <james.clark@arm.com>, 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773187400051257511 X-GMAIL-MSGID: 1773187400051257511 |
Series |
coresight: trbe: Enable ACPI based devices
|
|
Message
Anshuman Khandual
Aug. 3, 2023, 5:56 a.m. UTC
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 <sami.mujawar@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: Mike Leach <mike.leach@linaro.org> Cc: Leo Yan <leo.yan@linaro.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: James Clark <james.clark@arm.com> 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(-)