Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f23ff8b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight: add support to enable remote processor etm tracing on boot"

parents a73c494b 58626dd0
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
@@ -179,6 +179,15 @@ config CORESIGHT_AUDIO_ETM
	  on audio processor via sysfs by configuring the required CoreSight
	  components.

config CORESIGHT_AUDIO_ETM_DEFAULT_ENABLE
	bool "Turn on audio processor ETM tracing by default"
	help
	  Turns on CoreSight audio processor ETM tracing by default. Otherwise,
	  tracing is disabled by default but can be enabled via sysfs.

	  If unsure, say 'N' here to avoid potential power and performance
	  penalty.

config CORESIGHT_MODEM_ETM
	bool "Modem processor ETM trace support"
	help
@@ -187,6 +196,15 @@ config CORESIGHT_MODEM_ETM
	  on modem processor via sysfs by configuring the required CoreSight
	  components.

config CORESIGHT_MODEM_ETM_DEFAULT_ENABLE
	bool "Turn on modem processor ETM tracing by default"
	help
	  Turns on CoreSight modem processor ETM tracing by default. Otherwise,
	  tracing is disabled by default but can be enabled via sysfs.

	  If unsure, say 'N' here to avoid potential power and performance
	  penalty.

config CORESIGHT_WCN_ETM
	bool "Wireless subsystem processor ETM trace support"
	help
@@ -195,6 +213,16 @@ config CORESIGHT_WCN_ETM
	  turning on ETM tracing on wireless subsystem via sysfs by configuring
	  the required CoreSight components.

config CORESIGHT_WCN_ETM_DEFAULT_ENABLE
	bool "Turn on wireless subsystem processor ETM tracing by default"
	help
	  Turns on CoreSight wireless subsystem processor ETM tracing by
	  default. Otherwise, tracing is disabled by default but can be enabled
	  via sysfs.

	  If unsure, say 'N' here to avoid potential power and performance
	  penalty.

config CORESIGHT_RPM_ETM
	bool "RPM processor ETM trace support"
	help
@@ -203,6 +231,15 @@ config CORESIGHT_RPM_ETM
	  tracing on RPM processor via sysfs by configuring the required
	  CoreSight components.

config CORESIGHT_RPM_ETM_DEFAULT_ENABLE
	bool "Turn on RPM processor ETM tracing by default"
	help
	  Turns on CoreSight RPM processor ETM tracing by default. Otherwise,
	  tracing is disabled by default but can be enabled via sysfs.

	  If unsure, say 'N' here to avoid potential power and performance
	  penalty.

endif

config CORESIGHT_QPDI
+12 −0
Original line number Diff line number Diff line
@@ -24,6 +24,15 @@
#include <linux/coresight.h>
#include "coresight-qmi.h"

#ifdef CONFIG_CORESIGHT_AUDIO_ETM_DEFAULT_ENABLE
static int boot_enable = 1;
#else
static int boot_enable;
#endif
module_param_named(
	boot_enable, boot_enable, int, S_IRUGO
);

struct audio_etm_drvdata {
	struct device			*dev;
	struct coresight_device		*csdev;
@@ -292,6 +301,9 @@ static int audio_etm_probe(struct platform_device *pdev)
		goto err1;
	}
	dev_info(dev, "Audio ETM initialized\n");

	if (boot_enable)
		coresight_enable(drvdata->csdev);
	return 0;
err1:
	qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID,
+12 −0
Original line number Diff line number Diff line
@@ -24,6 +24,15 @@
#include <linux/coresight.h>
#include "coresight-qmi.h"

#ifdef CONFIG_CORESIGHT_MODEM_ETM_DEFAULT_ENABLE
static int boot_enable = 1;
#else
static int boot_enable;
#endif
module_param_named(
	boot_enable, boot_enable, int, S_IRUGO
);

struct modem_etm_drvdata {
	struct device			*dev;
	struct coresight_device		*csdev;
@@ -292,6 +301,9 @@ static int modem_etm_probe(struct platform_device *pdev)
		goto err1;
	}
	dev_info(dev, "Modem ETM initialized\n");

	if (boot_enable)
		coresight_enable(drvdata->csdev);
	return 0;
err1:
	qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID,
+13 −0
Original line number Diff line number Diff line
@@ -24,6 +24,15 @@
#include <linux/coresight.h>
#include "coresight-qmi.h"

#ifdef CONFIG_CORESIGHT_RPM_ETM_DEFAULT_ENABLE
static int boot_enable = 1;
#else
static int boot_enable;
#endif
module_param_named(
	boot_enable, boot_enable, int, S_IRUGO
);

struct rpm_etm_drvdata {
	struct device			*dev;
	struct coresight_device		*csdev;
@@ -292,6 +301,10 @@ static int rpm_etm_probe(struct platform_device *pdev)
		goto err1;
	}
	dev_info(dev, "RPM ETM initialized\n");

	if (boot_enable)
		coresight_enable(drvdata->csdev);

	return 0;
err1:
	qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID,
+12 −0
Original line number Diff line number Diff line
@@ -24,6 +24,15 @@
#include <linux/coresight.h>
#include "coresight-qmi.h"

#ifdef CONFIG_CORESIGHT_WCN_ETM_DEFAULT_ENABLE
static int boot_enable = 1;
#else
static int boot_enable;
#endif
module_param_named(
	boot_enable, boot_enable, int, S_IRUGO
);

struct wcn_etm_drvdata {
	struct device			*dev;
	struct coresight_device		*csdev;
@@ -292,6 +301,9 @@ static int wcn_etm_probe(struct platform_device *pdev)
		goto err1;
	}
	dev_info(dev, "Wireless ETM initialized\n");

	if (boot_enable)
		coresight_enable(drvdata->csdev);
	return 0;
err1:
	qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID,