From: Suzuki K Poulose <suzuki.poulose@arm.com>
To: Mathieu Poirier <mathieu.poirier@linaro.org>,
linux-arm-kernel@lists.infradead.org
Cc: alexander.shishkin@linux.intel.com, leo.yan@linaro.org,
coresight@lists.linaro.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] coresight: etm3x: Release CLAIM tag when operated from perf
Date: Thu, 8 Nov 2018 17:28:13 +0000 [thread overview]
Message-ID: <597b9fba-5c3f-1718-072a-c984d5709e68@arm.com> (raw)
In-Reply-To: <1541632132-1252-5-git-send-email-mathieu.poirier@linaro.org>
On 07/11/2018 23:08, Mathieu Poirier wrote:
> This patch deals with the release of the CLAIM tag when the ETM is
> operated from perf. Otherwise the tag is left asserted and subsequent
> requests to use the device fail.
>
> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
> ---
> drivers/hwtracing/coresight/coresight-etm3x.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c
> index 4f638d81a66a..d7f452e62193 100644
> --- a/drivers/hwtracing/coresight/coresight-etm3x.c
> +++ b/drivers/hwtracing/coresight/coresight-etm3x.c
> @@ -602,6 +602,7 @@ static void etm_disable_perf(struct coresight_device *csdev)
> * power down the tracer.
> */
> etm_set_pwrdwn(drvdata);
> + coresight_disclaim_device_unlocked(drvdata->base);
Thanks for fixing this. IIUC, I think we have a problem in general with
mixing perf vs sysfs. Once a perf session uses the etm3x, we overwrite
the drvdata->config with the perf event specific controls and the sysfs
user may not be aware of that. We may have to do something similar we do
for ETR buf for sysfs/perf sessions. And then we may be able to merge
the enable/disable routines.
For this patch:
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
prev parent reply other threads:[~2018-11-08 17:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-07 23:08 [PATCH v2 0/4] coresight: Fix miscellaneous problems with CLAIM tags Mathieu Poirier
2018-11-07 23:08 ` [PATCH v2 1/4] coresight: etb10: Add support for CLAIM tag Mathieu Poirier
2018-11-07 23:08 ` [PATCH v2 2/4] coresight: etf: Release CLAIM tag after disabling the HW Mathieu Poirier
2018-11-07 23:08 ` [PATCH v2 3/4] coresight: etm3x: Deal with CLAIM tag before and after accessing HW Mathieu Poirier
2018-11-08 17:13 ` Suzuki K Poulose
2018-11-09 17:59 ` Mathieu Poirier
2018-11-09 18:06 ` Suzuki K Poulose
2018-11-07 23:08 ` [PATCH v2 4/4] coresight: etm3x: Release CLAIM tag when operated from perf Mathieu Poirier
2018-11-08 17:28 ` Suzuki K Poulose [this message]
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=597b9fba-5c3f-1718-072a-c984d5709e68@arm.com \
--to=suzuki.poulose@arm.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=coresight@lists.linaro.org \
--cc=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
/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
all inboxes | Powered by JetHome®