From: Suzuki K Poulose <suzuki.poulose@arm.com>
To: leo.yan@linaro.org, Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org,
alexander.shishkin@linux.intel.com, coresight@lists.linaro.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] coresight: etm3x: Release CLAIM tag when operated from perf
Date: Thu, 8 Nov 2018 09:49:28 +0000 [thread overview]
Message-ID: <054f82c1-451f-3c82-d5ab-e156c50e0c10@arm.com> (raw)
In-Reply-To: <20181107032350.GH3983@leoy-ThinkPad-X240s>
Leo,
On 07/11/2018 03:23, leo.yan@linaro.org wrote:
> Hi Mathieu,
>
> On Mon, Nov 05, 2018 at 03:26:30PM -0700, 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 | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c
>> index fd5c4cca7db5..000796394662 100644
>> --- a/drivers/hwtracing/coresight/coresight-etm3x.c
>> +++ b/drivers/hwtracing/coresight/coresight-etm3x.c
>> @@ -603,6 +603,8 @@ static void etm_disable_perf(struct coresight_device *csdev)
>> */
>> etm_set_pwrdwn(drvdata);
>>
>> + coresight_disclaim_device_unlocked(drvdata->base);
>> +
>
> Just remind, this isn't consistent with the sequency in function
> etm_disable_hw(), which has the reversed sequence between
> etm_set_pwrdwn() and coresight_disclaim_device_unlocked().
>
> Not sure which one sequence is more suitable, at the first glance,
> accessing register after pwrdwn related operation might have risk for
> deadlock?
Good point.
I assume that the CLAIMSET/CLR registers are in the same power domain as
the LAR (Software Lock Access register) accessed below. But I will
confirm this with the architect. Based on the response, we could
streamline both the sequences.
Suzuki
>
> Thanks,
> Leo Yan
>
>> CS_LOCK(drvdata->base);
>> }
>>
>> --
>> 2.7.4
>>
next prev parent reply other threads:[~2018-11-08 9:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 22:26 [PATCH 0/3] coresight: Fix miscellaneous problems with CLAIM tags Mathieu Poirier
2018-11-05 22:26 ` [PATCH 1/3] coresight: etb10: Add support for CLAIM tag Mathieu Poirier
2018-11-06 9:21 ` Suzuki K Poulose
2018-11-05 22:26 ` [PATCH 2/3] coresight: etf: Release CLAIM tag after disabling the HW Mathieu Poirier
2018-11-06 9:27 ` Suzuki K Poulose
2018-11-05 22:26 ` [PATCH 3/3] coresight: etm3x: Release CLAIM tag when operated from perf Mathieu Poirier
2018-11-07 3:23 ` leo.yan
2018-11-08 9:49 ` Suzuki K Poulose [this message]
2018-11-08 17:10 ` Mathieu Poirier
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=054f82c1-451f-3c82-d5ab-e156c50e0c10@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®