Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3218339rdb; Tue, 29 Aug 2023 08:41:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpUmMg01kA515rsBjlSBUecp8PJwTon7NAQOmfa4pDOs9cRPAANhNO+Fap4QWZnPD0E5sL X-Received: by 2002:a05:6a00:2d29:b0:68c:3f2:6000 with SMTP id fa41-20020a056a002d2900b0068c03f26000mr14838934pfb.6.1693323661067; Tue, 29 Aug 2023 08:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693323661; cv=none; d=google.com; s=arc-20160816; b=EV7Se2YJLT+Pum65+nSwXJFhvtQvkFu6H2QZIOF6STQQnU08Dah41ZLFGf2VsHJtXF pd7c0KYap9LUSnP7OPx5qX2cxqU9zq0THm6ZRKorvDF6f4IVq+YOeYMXTTSWmxCDwfLn we6lLtvFwirgKC0cXI0AWiY9D7Ggb1+uNYBDvQ9jm0XqZQtC2SdaOH+y2aZcBHEXpX9b 4YhubKu7EJ1jJeksJidVYVZiStFpAr4n2Z8ZomTDQRc0GYpLD4tMddoZlpw2W5NYSGQ3 rCkERxKgzFA1/y0AqCz9xEB2a79KhxJMyrrguUhdcQ5s4kSGRVr6sCAGWwvPBvagxwa1 BU4A== 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=GEN3mWUlEi+Z1sMXSOOCI1zFH1HojSWLA6y9n9l0nJM=; fh=nx7r8oM+FJiNtM7lNejPGVh95QhaR336nb5n7xjUylU=; b=KNl7/f3sjKtDxGCRr6LQV+rwCwF5zPs+efuYfvqWRza1Sg33bEx6F0/GRunK1pvvtT LfAT+HuDSiy8oU8OUg8wGtZzVPIEd0HsPtMcp6mkCSHHOwa8j4BOgRz+6QdgbkqJNOzQ 2aiG8/ewd/uKLsE/4YahTxSeKYMAVpbDUbanQcVkbmuj8s0J4jprgEPcvOSvHwpQo85r AuJ3fLrus1tPmTASW/xlu1qoA0oS3jSOFlBbDkx/xOq0yMmg91bG7Jo3ghskR5V6OpWJ Lo1W+9yZtoSPgjSCVgLVyZrxSvB4u5VZuSt5GMAqSSY0Er4nZ2bHUNMixkQcuEJbSdiI HG+w== 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 cl10-20020a056a0032ca00b0067fea30cd05si9548147pfb.79.2023.08.29.08.40.44; Tue, 29 Aug 2023 08:41:01 -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 S236449AbjH2Nyc (ORCPT + 99 others); Tue, 29 Aug 2023 09:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236643AbjH2NyX (ORCPT ); Tue, 29 Aug 2023 09:54:23 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 488C11AD for ; Tue, 29 Aug 2023 06:54:18 -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 4C7982F4; Tue, 29 Aug 2023 06:54:57 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.57.89]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7821F3F64C; Tue, 29 Aug 2023 06:54:13 -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 V6 0/2] coresight: trbe: Enable ACPI based devices Date: Tue, 29 Aug 2023 19:24:03 +0530 Message-Id: <20230829135405.1159449-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 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 These are remaining coresight patches after fixing the merge conflict which applies on coresight/next coresight-next-v6.6. Changes in V6: - Fixed te merge conflict Changes in V5: https://lore.kernel.org/all/20230817055405.249630-1-anshuman.khandual@arm.com/ - Detected zeroed parsed GSI as a mismatch but handled all zero scenario - Changed condition check from 'if (ret < 0)' into a 'if (ret)' - Dropped pr_warn() message after platform_device_register() Changes in V4: https://lore.kernel.org/all/20230808082247.383405-1-anshuman.khandual@arm.com/ - 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 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 (2): coresight: trbe: Add a representative coresight_platform_data for TRBE coresight: trbe: Enable ACPI based TRBE devices drivers/hwtracing/coresight/coresight-trbe.c | 23 ++++++++++++++++++-- drivers/hwtracing/coresight/coresight-trbe.h | 2 ++ 2 files changed, 23 insertions(+), 2 deletions(-) -- 2.25.1