From: Tanmay Vilas Kumar Jagdale <tanmay@marvell.com>
To: "mathieu.poirier@linaro.org" <mathieu.poirier@linaro.org>
Cc: Ganapatrao Kulkarni <gkulkarni@marvell.com>,
Tomasz Nowicki <tnowicki@marvell.com>,
"suzuki.poulose@arm.com" <suzuki.poulose@arm.com>,
Jayachandran Chandrasekharan Nair <jnair@marvell.com>,
Tanmay Vilas Kumar Jagdale <tanmay@marvell.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: coresight: ACPI hook for funnel on ThunderX2
Date: Thu, 15 Aug 2019 13:58:21 +0000 [thread overview]
Message-ID: <1565877479-1583-1-git-send-email-tanmay@marvell.com> (raw)
Coresight topology on Marvell's ThunderX2 Processor is as follows:
ETM0 _ _ TPIU
... \ Static Dynamic /
... --> FUNNEL0 --> FUNNEL1 --> ETF --> REPLICATOR --
ETM127_/ | \_ ETR
|
ETM128--|
/
Others--/
To support this topology add ACPI hook for Static Funnel0.
Signed-off-by: Tanmay Jagdale <tanmay@marvell.com>
---
drivers/hwtracing/coresight/coresight-funnel.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c
index fa97cb9ab4f9..315691fd6f4b 100644
--- a/drivers/hwtracing/coresight/coresight-funnel.c
+++ b/drivers/hwtracing/coresight/coresight-funnel.c
@@ -5,6 +5,7 @@
* Description: CoreSight Funnel driver
*/
+#include <linux/acpi.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
@@ -297,6 +298,11 @@ static int static_funnel_probe(struct platform_device *pdev)
return ret;
}
+static const struct acpi_device_id static_funnel_acpi_ids[] = {
+ { "CAV901A" },
+ {},
+};
+
static const struct of_device_id static_funnel_match[] = {
{.compatible = "arm,coresight-static-funnel"},
{}
@@ -306,6 +312,7 @@ static struct platform_driver static_funnel_driver = {
.probe = static_funnel_probe,
.driver = {
.name = "coresight-static-funnel",
+ .acpi_match_table = ACPI_PTR(static_funnel_acpi_ids),
.of_match_table = static_funnel_match,
.pm = &funnel_dev_pm_ops,
.suppress_bind_attrs = true,
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2019-08-15 13:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-15 13:58 Tanmay Vilas Kumar Jagdale [this message]
2019-08-19 20:06 ` coresight: ACPI hook for funnel on ThunderX2 Mathieu Poirier
2019-08-20 17:08 ` [EXT] " Tanmay Vilas Kumar Jagdale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1565877479-1583-1-git-send-email-tanmay@marvell.com \
--to=tanmay@marvell.com \
--cc=gkulkarni@marvell.com \
--cc=jnair@marvell.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mathieu.poirier@linaro.org \
--cc=suzuki.poulose@arm.com \
--cc=tnowicki@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).