Message ID | 20230808082247.383405-1-anshuman.khandual@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2366765vqr; Tue, 8 Aug 2023 13:06:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeuT1Wy8nZRd1XjTloRQeqCShbNx2U4JLaCWIisSlYULF/28WRhWKLzsDXpitf4mGbipYV X-Received: by 2002:a17:902:b589:b0:1b9:be2e:2b40 with SMTP id a9-20020a170902b58900b001b9be2e2b40mr648870pls.50.1691525207009; Tue, 08 Aug 2023 13:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691525206; cv=none; d=google.com; s=arc-20160816; b=xBNnxhhHnBKkh2BEPz/Gq4xqz7ByHDhnbIWlld+Qoun/hdClLyZ7StVHzsTCtyB6LG C0b21/eO3u1flP3WJjHGlnyILv0SnbTCqRJeN5/QMVQ6MfM/+RTHgKYe8ruV+eKp7lxY gMb4zHQuKdLwcl4ucQSFo0Idi7ppO9bBrYJ/yaRUdpC5lrKTb6oMhuRxXTkIxm8+Fr6E knDjM3iuANEosx3e1fsVOktIHS73Dgwg1sOUG2DWH9eQOk896sX5i1zY4oss7Vmvq7wM bUjHi8DWqmPoIrz6QHZmgPUCf2acnkWT7lepHpS485d2Nudj02uA5hiz0HftB5q5v1Fz kZtg== 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=g52uBn6krXKPZKtzrTiAZUcXnw0dO/GfxSpWyCAFTAc=; fh=Amix3fM17tr65VI1fISDYxtFdk/MRmRQCaXTbLjGJHs=; b=s+fcoEEfwU4YYN16ahvKmy8FB5McMGY+eXZfQfLMxnm7sMhukMTJC6JZAM7T5saeZZ 31yaloHv5Bqbp8NMP0iqKTzKCM/6MHVdMHrRHel5Sbw6AO60qrFxUx5mxzJHSzIrec4q Zf2rShAy8IErWcP/nYMf0fCXxKlNE4PB+sm0+MfcoT2uFOnKlk22wXjGXsa/qdIlni3z LaIZh+bZTOurbggKDsAXG94uYcMe9J6Wp+vsWY3QrZaQA2IGOxObe95c73RN3cnO/fLi fEcTAypsuGs4kE7BpjjWXrI9d3ZP7J61GlCMp+ffsoGInd+r+W+e5SopSmuEIL5XleH2 i3lw== 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 kv5-20020a17090328c500b001bbb8ebedddsi7693677plb.561.2023.08.08.13.06.20; Tue, 08 Aug 2023 13:06:46 -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 S235995AbjHHTS7 (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Tue, 8 Aug 2023 15:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235972AbjHHTSW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Aug 2023 15:18:22 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C5CF15B9B for <linux-kernel@vger.kernel.org>; Tue, 8 Aug 2023 09: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 2AA21139F; Tue, 8 Aug 2023 01:23:41 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [10.162.40.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9ED713F64C; Tue, 8 Aug 2023 01:22:54 -0700 (PDT) From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: yangyicong@huawei.com, 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 V4 0/4] coresight: trbe: Enable ACPI based devices Date: Tue, 8 Aug 2023 13:52:43 +0530 Message-Id: <20230808082247.383405-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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773692735368194324 X-GMAIL-MSGID: 1773692735368194324 |
Series |
coresight: trbe: Enable ACPI based devices
|
|
Message
Anshuman Khandual
Aug. 8, 2023, 8:22 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 V4: - Added in-code comment for arm_trbe_device_probe() - Reverted back using IS_ENABLED() for SPE PMU platform device - Replaced #ifdef with IS_ENABLED() for TRBE platform device - Protected arm_trbe_acpi_match with ACPI_PTR() - preventing a build failure when CONFIG_ACPI is not enabled - Added __maybe_unused for arm_acpi_register_pmu_device() and dropped config checks with IS_ENABLED() Changes in V3: https://lore.kernel.org/all/20230803055652.1322801-1-anshuman.khandual@arm.com/ - 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 | 26 +++- drivers/hwtracing/coresight/coresight-trbe.h | 2 + drivers/perf/arm_pmu_acpi.c | 138 +++++++++++++------ include/linux/perf/arm_pmu.h | 1 + 5 files changed, 128 insertions(+), 42 deletions(-)