From: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
To: Mike Leach <mike.leach@linaro.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Stephen Boyd <swboyd@chromium.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-arm-msm@vger.kernel.org,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Russell King <linux@armlinux.org.uk>
Subject: Re: [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections
Date: Mon, 11 May 2020 20:04:24 +0530 [thread overview]
Message-ID: <ecc4ae11caa4017d813d959b29c0b6ef@codeaurora.org> (raw)
In-Reply-To: <47f6d51bfad0a0bf1553e101e6a2c8c9@codeaurora.org>
On 2020-05-11 19:46, Sai Prakash Ranjan wrote:
> Hi Mike,
>
> On 2020-05-11 16:44, Mike Leach wrote:
> [...]
>
>>>
>>> I checked with the debug team and there is a limitation with
>>> the replicator(swao_replicator) in the AOSS group where it
>>> loses the idfilter register context when the clock is disabled.
>>> This is not just in SC7180 SoC but also reported on some latest
>>> upcoming QCOM SoCs as well and will need to be taken care in
>>> order to enable coresight on these chipsets.
>>>
>>> Here's what's happening - After the replicator is initialized,
>>> the clock is disabled in amba_pm_runtime_suspend() as a part of
>>> pm runtime workqueue with the assumption that there will be no
>>> loss of context after the replicator is initialized. But it doesn't
>>> hold good with the replicators with these unfortunate limitation
>>> and the idfilter register context is lost.
>>>
>>> [ 5.889406] amba_pm_runtime_suspend devname=6b06000.replicator
>>> ret=0
>>> [ 5.914516] Workqueue: pm pm_runtime_work
>>> [ 5.918648] Call trace:
>>> [ 5.921185] dump_backtrace+0x0/0x1d0
>>> [ 5.924958] show_stack+0x2c/0x38
>>> [ 5.928382] dump_stack+0xc0/0x104
>>> [ 5.931896] amba_pm_runtime_suspend+0xd8/0xe0
>>> [ 5.936469] __rpm_callback+0xe0/0x140
>>> [ 5.940332] rpm_callback+0x38/0x98
>>> [ 5.943926] rpm_suspend+0xec/0x618
>>> [ 5.947522] rpm_idle+0x5c/0x3f8
>>> [ 5.950851] pm_runtime_work+0xa8/0xc0
>>> [ 5.954718] process_one_work+0x1f8/0x4c0
>>> [ 5.958848] worker_thread+0x50/0x468
>>> [ 5.962623] kthread+0x12c/0x158
>>> [ 5.965957] ret_from_fork+0x10/0x1c
>>>
>>> This is a platform/SoC specific replicator issue, so we can either
>>> introduce some DT property for replicators to identify which
>>> replicator
>>> has this limitation, check in replicator_enable() and reset the
>>> registers
>>> or have something like below diff to check the idfilter registers in
>>> replicator_enable() and then reset with clear comment specifying it’s
>>> the
>>> hardware limitation on some QCOM SoCs. Please let me know your
>>> thoughts
>>> on
>>> this?
>>>
>
> Sorry for hurrying up and sending the patch -
> https://lore.kernel.org/patchwork/patch/1239923/.
> I will send v2 based on further feedbacks here or there.
>
>>
>> 1) does this replicator part have a unique ID that differs from the
>> standard ARM designed replicators?
>> If so perhaps link the modification into this. (even if the part no in
>> PIDR0/1 is the same the UCI should be different for a different
>> implementation)
>>
>
> pid=0x2bb909 for both replicators. So part number is same.
> UCI will be different for different implementation(QCOM maybe
> different from ARM),
> but will it be different for different replicators under the same
> impl(i.e., on QCOM).
>
Here is the cid=0xb105900d for both replicators.
Thanks,
Sai
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member
of Code Aurora Forum, hosted by The Linux Foundation
WARNING: multiple messages have this Message-ID (diff)
From: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
To: Mike Leach <mike.leach@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
linux-arm-msm@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Stephen Boyd <swboyd@chromium.org>,
Russell King <linux@armlinux.org.uk>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections
Date: Mon, 11 May 2020 20:04:24 +0530 [thread overview]
Message-ID: <ecc4ae11caa4017d813d959b29c0b6ef@codeaurora.org> (raw)
In-Reply-To: <47f6d51bfad0a0bf1553e101e6a2c8c9@codeaurora.org>
On 2020-05-11 19:46, Sai Prakash Ranjan wrote:
> Hi Mike,
>
> On 2020-05-11 16:44, Mike Leach wrote:
> [...]
>
>>>
>>> I checked with the debug team and there is a limitation with
>>> the replicator(swao_replicator) in the AOSS group where it
>>> loses the idfilter register context when the clock is disabled.
>>> This is not just in SC7180 SoC but also reported on some latest
>>> upcoming QCOM SoCs as well and will need to be taken care in
>>> order to enable coresight on these chipsets.
>>>
>>> Here's what's happening - After the replicator is initialized,
>>> the clock is disabled in amba_pm_runtime_suspend() as a part of
>>> pm runtime workqueue with the assumption that there will be no
>>> loss of context after the replicator is initialized. But it doesn't
>>> hold good with the replicators with these unfortunate limitation
>>> and the idfilter register context is lost.
>>>
>>> [ 5.889406] amba_pm_runtime_suspend devname=6b06000.replicator
>>> ret=0
>>> [ 5.914516] Workqueue: pm pm_runtime_work
>>> [ 5.918648] Call trace:
>>> [ 5.921185] dump_backtrace+0x0/0x1d0
>>> [ 5.924958] show_stack+0x2c/0x38
>>> [ 5.928382] dump_stack+0xc0/0x104
>>> [ 5.931896] amba_pm_runtime_suspend+0xd8/0xe0
>>> [ 5.936469] __rpm_callback+0xe0/0x140
>>> [ 5.940332] rpm_callback+0x38/0x98
>>> [ 5.943926] rpm_suspend+0xec/0x618
>>> [ 5.947522] rpm_idle+0x5c/0x3f8
>>> [ 5.950851] pm_runtime_work+0xa8/0xc0
>>> [ 5.954718] process_one_work+0x1f8/0x4c0
>>> [ 5.958848] worker_thread+0x50/0x468
>>> [ 5.962623] kthread+0x12c/0x158
>>> [ 5.965957] ret_from_fork+0x10/0x1c
>>>
>>> This is a platform/SoC specific replicator issue, so we can either
>>> introduce some DT property for replicators to identify which
>>> replicator
>>> has this limitation, check in replicator_enable() and reset the
>>> registers
>>> or have something like below diff to check the idfilter registers in
>>> replicator_enable() and then reset with clear comment specifying it’s
>>> the
>>> hardware limitation on some QCOM SoCs. Please let me know your
>>> thoughts
>>> on
>>> this?
>>>
>
> Sorry for hurrying up and sending the patch -
> https://lore.kernel.org/patchwork/patch/1239923/.
> I will send v2 based on further feedbacks here or there.
>
>>
>> 1) does this replicator part have a unique ID that differs from the
>> standard ARM designed replicators?
>> If so perhaps link the modification into this. (even if the part no in
>> PIDR0/1 is the same the UCI should be different for a different
>> implementation)
>>
>
> pid=0x2bb909 for both replicators. So part number is same.
> UCI will be different for different implementation(QCOM maybe
> different from ARM),
> but will it be different for different replicators under the same
> impl(i.e., on QCOM).
>
Here is the cid=0xb105900d for both replicators.
Thanks,
Sai
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member
of Code Aurora Forum, hosted by The Linux Foundation
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-05-11 14:34 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-26 14:37 [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections Sai Prakash Ranjan
2020-04-26 14:37 ` Sai Prakash Ranjan
2020-04-27 9:20 ` Suzuki K Poulose
2020-04-27 9:20 ` Suzuki K Poulose
2020-04-27 9:45 ` Mike Leach
2020-04-27 9:45 ` Mike Leach
2020-04-27 13:53 ` Suzuki K Poulose
2020-04-27 13:53 ` Suzuki K Poulose
2020-04-28 12:23 ` Sai Prakash Ranjan
2020-04-28 12:23 ` Sai Prakash Ranjan
2020-04-29 11:47 ` Sai Prakash Ranjan
2020-04-29 11:47 ` Sai Prakash Ranjan
2020-04-29 13:49 ` Suzuki K Poulose
2020-04-29 13:49 ` Suzuki K Poulose
2020-04-29 13:59 ` Sai Prakash Ranjan
2020-04-29 13:59 ` Sai Prakash Ranjan
2020-04-29 14:27 ` Mike Leach
2020-04-29 14:27 ` Mike Leach
2020-04-29 14:48 ` Sai Prakash Ranjan
2020-04-29 14:48 ` Sai Prakash Ranjan
2020-04-29 16:58 ` Mike Leach
2020-04-29 16:58 ` Mike Leach
2020-04-29 17:11 ` Sai Prakash Ranjan
2020-04-29 17:11 ` Sai Prakash Ranjan
2020-05-06 7:35 ` Sai Prakash Ranjan
2020-05-06 7:35 ` Sai Prakash Ranjan
2020-05-08 8:53 ` Sai Prakash Ranjan
2020-05-08 8:53 ` Sai Prakash Ranjan
2020-05-11 11:14 ` Mike Leach
2020-05-11 11:14 ` Mike Leach
2020-05-11 14:16 ` Sai Prakash Ranjan
2020-05-11 14:16 ` Sai Prakash Ranjan
2020-05-11 14:30 ` Suzuki K Poulose
2020-05-11 14:30 ` Suzuki K Poulose
2020-05-11 14:41 ` Sai Prakash Ranjan
2020-05-11 14:41 ` Sai Prakash Ranjan
2020-05-12 11:49 ` Mike Leach
2020-05-12 11:49 ` Mike Leach
2020-05-12 17:45 ` Mathieu Poirier
2020-05-12 17:45 ` Mathieu Poirier
2020-05-12 17:46 ` Sai Prakash Ranjan
2020-05-12 17:46 ` Sai Prakash Ranjan
2020-05-12 21:52 ` Mike Leach
2020-05-12 21:52 ` Mike Leach
2020-05-13 1:49 ` Stephen Boyd
2020-05-13 1:49 ` Stephen Boyd
2020-05-13 15:45 ` Sai Prakash Ranjan
2020-05-13 15:45 ` Sai Prakash Ranjan
2020-05-13 15:33 ` Sai Prakash Ranjan
2020-05-13 15:33 ` Sai Prakash Ranjan
2020-05-16 10:04 ` Sai Prakash Ranjan
2020-05-16 10:04 ` Sai Prakash Ranjan
2020-05-19 9:04 ` Sai Prakash Ranjan
2020-05-19 9:04 ` Sai Prakash Ranjan
2020-05-11 14:34 ` Sai Prakash Ranjan [this message]
2020-05-11 14:34 ` Sai Prakash Ranjan
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=ecc4ae11caa4017d813d959b29c0b6ef@codeaurora.org \
--to=saiprakash.ranjan@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mathieu.poirier@linaro.org \
--cc=mike.leach@linaro.org \
--cc=suzuki.poulose@arm.com \
--cc=swboyd@chromium.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.