Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3267110rdb; Tue, 29 Aug 2023 10:03:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEq4Cqtg17jzB+I1j300U81W/frSO6htKjPXz1ilGaomoN2TVHOVLc4lAsEP2zT8FlW3c7Y X-Received: by 2002:a17:907:784b:b0:9a5:c4ae:9fd4 with SMTP id lb11-20020a170907784b00b009a5c4ae9fd4mr2878763ejc.59.1693328621246; Tue, 29 Aug 2023 10:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693328621; cv=none; d=google.com; s=arc-20160816; b=al/mmQi34V1BJfIFpBk1+76imsVJqU5v7D0MHBfA5ISOX/BxrAv8dxjVyL3o2FVqzK fHxz7Afs2S8dP/Klrc1im+Ch66Km3BDPohZ8574j2lVss5mbyALVvwVcpienDQm1hcYI JYVexGoHwHc/hJzXQwWpDN7+gAgB4o0H/ovSHnCWLIk3XaztjWjUvXwG+3li2PI165pG CcBHkkk+foQ1sQPnNK2JcnkLpuzYGpTh0UAON+ZtOrGJuW+dF5vJvedldSn0yVs5YnEI 5bstQpYK0w1DYaILj/tUU2LrbgyoMYfBD1e4dNlSkPQbndOcaHFTR3v2YSJIuPsuMPX2 MJvw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZW90oPlsOBQCXsPop7CWvH2DgVqTu/sws/W3HuOhyg8=; fh=nx7r8oM+FJiNtM7lNejPGVh95QhaR336nb5n7xjUylU=; b=BJmKNXBP4XAV02pPdXzwl5zezeyGdD0WIeEvWRrOg3GAF1UKw7ukgg7yoveAn/qNaA dJdpbc9MRqQuph93mfbqcpceKfXMH5yd1f7/juJFiFjoijGl5zM7LOxLHAHBuIHosUV4 zceb+IhDNn78X+bS1Cmh/H0WhpP/cRxVGKQwdpRTBqy3pZva2JIwgNlgd7BH2mTdmH1v HsHRCl6KNdFdBdaiVwssoMOQw3FwF69kuFnS7EX3aLfqB3kK4mkffPWbLO67cjCNQgp8 iQFbN+27eep1l+wLVq0cfSfHNNmenSWOFobsESqaV7DU9gXv3adZcA4oDZqjaiRWwC/J UwCQ== 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 bs21-20020a170906d1d500b00991f9e2a81asi6480987ejb.238.2023.08.29.10.02.59; Tue, 29 Aug 2023 10:03: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 S236507AbjH2NzH (ORCPT + 99 others); Tue, 29 Aug 2023 09:55:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234782AbjH2Nyb (ORCPT ); Tue, 29 Aug 2023 09:54:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 333CEB5 for ; Tue, 29 Aug 2023 06:54:29 -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 5B6F02F4; Tue, 29 Aug 2023 06:55:08 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.57.89]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2323D3F64C; Tue, 29 Aug 2023 06:54:23 -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 2/2] coresight: trbe: Enable ACPI based TRBE devices Date: Tue, 29 Aug 2023 19:24:05 +0530 Message-Id: <20230829135405.1159449-3-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230829135405.1159449-1-anshuman.khandual@arm.com> References: <20230829135405.1159449-1-anshuman.khandual@arm.com> 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 This detects and enables ACPI based TRBE devices via the dummy platform device created earlier for this purpose. Cc: Suzuki K Poulose Cc: Mike Leach Cc: Leo Yan Cc: Alexander Shishkin Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- drivers/hwtracing/coresight/coresight-trbe.c | 9 +++++++++ drivers/hwtracing/coresight/coresight-trbe.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c index 97b9e72965e6..a3954be7b1f3 100644 --- a/drivers/hwtracing/coresight/coresight-trbe.c +++ b/drivers/hwtracing/coresight/coresight-trbe.c @@ -1546,7 +1546,16 @@ static const struct of_device_id arm_trbe_of_match[] = { }; MODULE_DEVICE_TABLE(of, arm_trbe_of_match); +#ifdef CONFIG_ACPI +static const struct platform_device_id arm_trbe_acpi_match[] = { + { ARMV8_TRBE_PDEV_NAME, 0 }, + { } +}; +MODULE_DEVICE_TABLE(platform, arm_trbe_acpi_match); +#endif + static struct platform_driver arm_trbe_driver = { + .id_table = ACPI_PTR(arm_trbe_acpi_match), .driver = { .name = DRVNAME, .of_match_table = of_match_ptr(arm_trbe_of_match), diff --git a/drivers/hwtracing/coresight/coresight-trbe.h b/drivers/hwtracing/coresight/coresight-trbe.h index e915e749be55..45202c48acce 100644 --- a/drivers/hwtracing/coresight/coresight-trbe.h +++ b/drivers/hwtracing/coresight/coresight-trbe.h @@ -7,11 +7,13 @@ * * Author: Anshuman Khandual */ +#include #include #include #include #include #include +#include #include #include -- 2.25.1