Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1820240rwo; Wed, 2 Aug 2023 23:27:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4AneJ3Z5KVaSBr04Wx6KkFpOBdIo/Y5UPqCp6zHDHaERvaVtfuzte8/3tjdAU3ptTDTjE X-Received: by 2002:a05:6402:324:b0:522:595f:5a29 with SMTP id q4-20020a056402032400b00522595f5a29mr6987036edw.29.1691044049047; Wed, 02 Aug 2023 23:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691044049; cv=none; d=google.com; s=arc-20160816; b=T6+4IidKG4G45Xd5wyS+Kx8vYPprssE9K0MRQcwlSC7QAlkgjswh/7TZvxGH+NWe6d ATGZOq6wCvZdOngM8DhOyl+5TM7nTvxLLkeTBHKycjQMjdPA7KPDoKTDweotzT+lB4n2 BtiYgUQRDK+6jDjsumnW8AqffRrWp3DScIwJF88Kqj9gG+Y27UpWI2VeamjCZaf2qR4J Rbq61nLoqvxqUt4E3+JshBT/qXWpxZxdEsUSFdstxILJeCdZtBt7TZ9OmFBv3BE8QWjN K5XQjKMyAIDS2xnBZG2BCDYFYY3gxh4x0aJt9QkydbBcH3u3VPD8jtY2ChQQVWBgfqlq mN3Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020a056402515a00b0052255161ea1si11300301edd.45.2023.08.02.23.27.04; Wed, 02 Aug 2023 23:27:29 -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 S231179AbjHCF5K (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 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: 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 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(-) -- 2.25.1