From: marcin.jabrzyk@gmail.com (Marcin Jabrzyk)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/11 v4] coresight: adding support for beagle and beagleXM
Date: Mon, 25 Aug 2014 23:01:10 +0200 [thread overview]
Message-ID: <53FBA416.7060406@gmail.com> (raw)
In-Reply-To: <CANLsYkxCdVm6cPtM9ub3Vwc24G9x6Vy9pt5pVMSPMxcksw6VHA@mail.gmail.com>
Hello,
W dniu 25.08.2014 o 16:02, Mathieu Poirier pisze:
> On 24 August 2014 15:38, Marcin Jabrzyk <marcin.jabrzyk@gmail.com> wrote:
>> Hi,
>>
>> W dniu 20.08.2014 o 19:03, mathieu.poirier at linaro.org pisze:
>>> From: Mathieu Poirier <mathieu.poirier@linaro.org>
>>>
>>> Currently supporting ETM and ETB. Support for TPIU
>>> and SDTI are yet to be added.
>> Did you tried running the drivers on board or are there any special
>> preparation needed?
>> I've BeagleBoard-xM Rev. C applied your patches and enabled the
>> functions the in menuconfig.
>> But on dmesg I see that:
>>
>> [ 0.685028] of_amba_device_create(): amba_device_add() failed (-19)
>> for /etb at 5401b000
>> [ 0.685119] of_amba_device_create(): amba_device_add() failed (-19)
>> for /etm at 54010000
>>
>> There are no nodes according coresight in /sys/kernel/debug/ .
> Right, that is because there is a problem in mainline with enabling
> "emu_src_ck". The call to "clk_prepare_enable()" returns without
> waiting for the clock to effectively be enabled, preventing the
> components from being discovered properly.
>
> The work around (non-upstreamable) is to have a driver getting a hold
> of the clock before AMBA devices are probed. I can send you that code
> (10 lines) if need be.
Ok I can confirm that this patch works fine for BeagleBoard-xM. After
applying workaround for that clock the devices are properly discovered
and visible through sysfs entries.
Thanks,
Marcin
>
>> Best regards,
>> Marcin
>>
>>> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
>>> ---
>>> arch/arm/boot/dts/omap3-beagle-xm.dts | 28 ++++++++++++++++++++++++++++
>>> arch/arm/boot/dts/omap3-beagle.dts | 28 ++++++++++++++++++++++++++++
>>> 2 files changed, 56 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/omap3-beagle-xm.dts b/arch/arm/boot/dts/omap3-beagle-xm.dts
>>> index 1becefc..eec73d8 100644
>>> --- a/arch/arm/boot/dts/omap3-beagle-xm.dts
>>> +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts
>>> @@ -145,6 +145,34 @@
>>> };
>>> };
>>> };
>>> +
>>> + etb at 5401b000 {
>>> + compatible = "arm,coresight-etb10", "arm,primecell";
>>> + reg = <0x5401b000 0x1000>;
>>> +
>>> + coresight-default-sink;
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etb_in: endpoint {
>>> + slave-mode;
>>> + remote-endpoint = <&etm_out>;
>>> + };
>>> + };
>>> + };
>>> +
>>> + etm at 54010000 {
>>> + compatible = "arm,coresight-etm3x", "arm,primecell";
>>> + reg = <0x54010000 0x1000>;
>>> +
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etm_out: endpoint {
>>> + remote-endpoint = <&etb_in>;
>>> + };
>>> + };
>>> + };
>>> };
>>>
>>> &omap3_pmx_wkup {
>>> diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/omap3-beagle.dts
>>> index 3c3e6da..a151daf 100644
>>> --- a/arch/arm/boot/dts/omap3-beagle.dts
>>> +++ b/arch/arm/boot/dts/omap3-beagle.dts
>>> @@ -140,6 +140,34 @@
>>> };
>>> };
>>> };
>>> +
>>> + etb at 540000000 {
>>> + compatible = "arm,coresight-etb10", "arm,primecell";
>>> + reg = <0x5401b000 0x1000>;
>>> +
>>> + coresight-default-sink;
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etb_in: endpoint {
>>> + slave-mode;
>>> + remote-endpoint = <&etm_out>;
>>> + };
>>> + };
>>> + };
>>> +
>>> + etm at 54010000 {
>>> + compatible = "arm,coresight-etm3x", "arm,primecell";
>>> + reg = <0x54010000 0x1000>;
>>> +
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etm_out: endpoint {
>>> + remote-endpoint = <&etb_in>;
>>> + };
>>> + };
>>> + };
>>> };
>>>
>>> &omap3_pmx_wkup {
WARNING: multiple messages have this Message-ID (diff)
From: Marcin Jabrzyk <marcin.jabrzyk@gmail.com>
To: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Will Deacon <will.deacon@arm.com>,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
00regkh@linuxfoundation.org,
Pratik Patel <pratikp@codeaurora.org>,
Vikas Varshney <varshney@ti.com>, Al Grant <Al.Grant@arm.com>,
Jonas Svennebring <jonas.svennebring@avagotech.com>,
James King <james.king@linaro.org>,
Panchaxari Prasannamurthy Tumkur
<panchaxari.prasannamurthy@linaro.org>,
Kaixu Xia <kaixu.xia@linaro.org>,
"r.sengupta@samsung.com" <r.sengupta@samsung.com>,
Robert Marklund <robbelibobban@gmail.com>,
Tony Armitstead <Tony.Armitstead@arm.com>,
Daniel Thompson <daniel.thompson@linaro.org>,
Patch Tracking <patches@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 09/11 v4] coresight: adding support for beagle and beagleXM
Date: Mon, 25 Aug 2014 23:01:10 +0200 [thread overview]
Message-ID: <53FBA416.7060406@gmail.com> (raw)
In-Reply-To: <CANLsYkxCdVm6cPtM9ub3Vwc24G9x6Vy9pt5pVMSPMxcksw6VHA@mail.gmail.com>
Hello,
W dniu 25.08.2014 o 16:02, Mathieu Poirier pisze:
> On 24 August 2014 15:38, Marcin Jabrzyk <marcin.jabrzyk@gmail.com> wrote:
>> Hi,
>>
>> W dniu 20.08.2014 o 19:03, mathieu.poirier@linaro.org pisze:
>>> From: Mathieu Poirier <mathieu.poirier@linaro.org>
>>>
>>> Currently supporting ETM and ETB. Support for TPIU
>>> and SDTI are yet to be added.
>> Did you tried running the drivers on board or are there any special
>> preparation needed?
>> I've BeagleBoard-xM Rev. C applied your patches and enabled the
>> functions the in menuconfig.
>> But on dmesg I see that:
>>
>> [ 0.685028] of_amba_device_create(): amba_device_add() failed (-19)
>> for /etb@5401b000
>> [ 0.685119] of_amba_device_create(): amba_device_add() failed (-19)
>> for /etm@54010000
>>
>> There are no nodes according coresight in /sys/kernel/debug/ .
> Right, that is because there is a problem in mainline with enabling
> "emu_src_ck". The call to "clk_prepare_enable()" returns without
> waiting for the clock to effectively be enabled, preventing the
> components from being discovered properly.
>
> The work around (non-upstreamable) is to have a driver getting a hold
> of the clock before AMBA devices are probed. I can send you that code
> (10 lines) if need be.
Ok I can confirm that this patch works fine for BeagleBoard-xM. After
applying workaround for that clock the devices are properly discovered
and visible through sysfs entries.
Thanks,
Marcin
>
>> Best regards,
>> Marcin
>>
>>> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
>>> ---
>>> arch/arm/boot/dts/omap3-beagle-xm.dts | 28 ++++++++++++++++++++++++++++
>>> arch/arm/boot/dts/omap3-beagle.dts | 28 ++++++++++++++++++++++++++++
>>> 2 files changed, 56 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/omap3-beagle-xm.dts b/arch/arm/boot/dts/omap3-beagle-xm.dts
>>> index 1becefc..eec73d8 100644
>>> --- a/arch/arm/boot/dts/omap3-beagle-xm.dts
>>> +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts
>>> @@ -145,6 +145,34 @@
>>> };
>>> };
>>> };
>>> +
>>> + etb@5401b000 {
>>> + compatible = "arm,coresight-etb10", "arm,primecell";
>>> + reg = <0x5401b000 0x1000>;
>>> +
>>> + coresight-default-sink;
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etb_in: endpoint {
>>> + slave-mode;
>>> + remote-endpoint = <&etm_out>;
>>> + };
>>> + };
>>> + };
>>> +
>>> + etm@54010000 {
>>> + compatible = "arm,coresight-etm3x", "arm,primecell";
>>> + reg = <0x54010000 0x1000>;
>>> +
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etm_out: endpoint {
>>> + remote-endpoint = <&etb_in>;
>>> + };
>>> + };
>>> + };
>>> };
>>>
>>> &omap3_pmx_wkup {
>>> diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/omap3-beagle.dts
>>> index 3c3e6da..a151daf 100644
>>> --- a/arch/arm/boot/dts/omap3-beagle.dts
>>> +++ b/arch/arm/boot/dts/omap3-beagle.dts
>>> @@ -140,6 +140,34 @@
>>> };
>>> };
>>> };
>>> +
>>> + etb@540000000 {
>>> + compatible = "arm,coresight-etb10", "arm,primecell";
>>> + reg = <0x5401b000 0x1000>;
>>> +
>>> + coresight-default-sink;
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etb_in: endpoint {
>>> + slave-mode;
>>> + remote-endpoint = <&etm_out>;
>>> + };
>>> + };
>>> + };
>>> +
>>> + etm@54010000 {
>>> + compatible = "arm,coresight-etm3x", "arm,primecell";
>>> + reg = <0x54010000 0x1000>;
>>> +
>>> + clocks = <&emu_src_ck>;
>>> + clock-names = "apb_pclk";
>>> + port {
>>> + etm_out: endpoint {
>>> + remote-endpoint = <&etb_in>;
>>> + };
>>> + };
>>> + };
>>> };
>>>
>>> &omap3_pmx_wkup {
next prev parent reply other threads:[~2014-08-25 21:01 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 17:03 [PATCH 00/11 v4] Coresight framework and drivers mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 01/11 v4] coresight: add CoreSight core layer framework mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-25 8:24 ` Thomas Petazzoni
2014-08-25 8:24 ` Thomas Petazzoni
2014-08-25 13:53 ` Mathieu Poirier
2014-08-25 13:53 ` Mathieu Poirier
2014-08-20 17:03 ` [PATCH 02/11 v4] coresight-tmc: add CoreSight TMC driver mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 03/11 v4] coresight-tpiu: add CoreSight TPIU driver mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 04/11 v4] coresight-etb: add CoreSight ETB driver mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 05/11 v4] coresight-funnel: add CoreSight Funnel driver mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 06/11 v4] coresight-replicator: add CoreSight Replicator driver mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 07/11 v4] coresight-etm: add CoreSight ETM/PTM driver mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 08/11 v4] coresight: adding documentation for coresight mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 09/11 v4] coresight: adding support for beagle and beagleXM mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-24 21:38 ` Marcin Jabrzyk
2014-08-24 21:38 ` Marcin Jabrzyk
2014-08-25 14:02 ` Mathieu Poirier
2014-08-25 14:02 ` Mathieu Poirier
2014-08-25 21:01 ` Marcin Jabrzyk [this message]
2014-08-25 21:01 ` Marcin Jabrzyk
2014-08-20 17:03 ` [PATCH 10/11 v4] coresight: adding basic support for Vexpress TC2 mathieu.poirier at linaro.org
2014-08-20 17:03 ` mathieu.poirier
2014-08-20 17:03 ` [PATCH 11/11 v4] ARM: removing support for etb/etm in "arch/arm/kernel/" mathieu.poirier at linaro.org
2014-08-20 17:03 ` 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=53FBA416.7060406@gmail.com \
--to=marcin.jabrzyk@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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.