* [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on @ 2017-02-28 15:19 Peter De Schrijver 2017-03-02 17:56 ` Jon Hunter 2017-03-20 14:18 ` Thierry Reding 0 siblings, 2 replies; 17+ messages in thread From: Peter De Schrijver @ 2017-02-28 15:19 UTC (permalink / raw) To: Peter De Schrijver, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel This is needed to make the JTAG debugging interface work. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> --- drivers/clk/tegra/clk-tegra210.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c index 9a2512a..708f5f1 100644 --- a/drivers/clk/tegra/clk-tegra210.c +++ b/drivers/clk/tegra/clk-tegra210.c @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, -- 1.9.1 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-02-28 15:19 [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on Peter De Schrijver @ 2017-03-02 17:56 ` Jon Hunter [not found] ` <4cf40c25-2ce9-737c-9ccb-06bc2cdb61d7-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2017-03-20 14:18 ` Thierry Reding 1 sibling, 1 reply; 17+ messages in thread From: Jon Hunter @ 2017-03-02 17:56 UTC (permalink / raw) To: Peter De Schrijver, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel On 28/02/17 15:19, Peter De Schrijver wrote: > This is needed to make the JTAG debugging interface work. > > Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> > --- > drivers/clk/tegra/clk-tegra210.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c > index 9a2512a..708f5f1 100644 > --- a/drivers/clk/tegra/clk-tegra210.c > +++ b/drivers/clk/tegra/clk-tegra210.c > @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) > { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, > { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, > { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, > + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, > { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, > { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, > { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not sure we always want this on for all cases. Cheers Jon -- nvpublic ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <4cf40c25-2ce9-737c-9ccb-06bc2cdb61d7-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on [not found] ` <4cf40c25-2ce9-737c-9ccb-06bc2cdb61d7-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2017-03-06 8:38 ` Peter De Schrijver 2017-03-06 9:58 ` Jon Hunter 0 siblings, 1 reply; 17+ messages in thread From: Peter De Schrijver @ 2017-03-06 8:38 UTC (permalink / raw) To: Jon Hunter Cc: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: > > On 28/02/17 15:19, Peter De Schrijver wrote: > > This is needed to make the JTAG debugging interface work. > > > > Signed-off-by: Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > --- > > drivers/clk/tegra/clk-tegra210.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c > > index 9a2512a..708f5f1 100644 > > --- a/drivers/clk/tegra/clk-tegra210.c > > +++ b/drivers/clk/tegra/clk-tegra210.c > > @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) > > { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, > > { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, > > { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, > > + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, > > { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, > > { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, > > { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, > > Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not > sure we always want this on for all cases. Why would you not want it to be always on? Cheers, Peter. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-06 8:38 ` Peter De Schrijver @ 2017-03-06 9:58 ` Jon Hunter 2017-03-06 14:28 ` Peter De Schrijver 0 siblings, 1 reply; 17+ messages in thread From: Jon Hunter @ 2017-03-06 9:58 UTC (permalink / raw) To: Peter De Schrijver Cc: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel On 06/03/17 08:38, Peter De Schrijver wrote: > On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: >> >> On 28/02/17 15:19, Peter De Schrijver wrote: >>> This is needed to make the JTAG debugging interface work. >>> >>> Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> >>> --- >>> drivers/clk/tegra/clk-tegra210.c | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c >>> index 9a2512a..708f5f1 100644 >>> --- a/drivers/clk/tegra/clk-tegra210.c >>> +++ b/drivers/clk/tegra/clk-tegra210.c >>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) >>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, >>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, >>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, >> >> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not >> sure we always want this on for all cases. > > Why would you not want it to be always on? Purely for power reasons. I do not know how much power keeping this clock running consumes, but I don't like the idea of clocks running all the time when they are not needed. Jon -- nvpublic ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-06 9:58 ` Jon Hunter @ 2017-03-06 14:28 ` Peter De Schrijver [not found] ` <20170306142850.GJ26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Peter De Schrijver @ 2017-03-06 14:28 UTC (permalink / raw) To: Jon Hunter Cc: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel On Mon, Mar 06, 2017 at 09:58:29AM +0000, Jon Hunter wrote: > > On 06/03/17 08:38, Peter De Schrijver wrote: > > On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: > >> > >> On 28/02/17 15:19, Peter De Schrijver wrote: > >>> This is needed to make the JTAG debugging interface work. > >>> > >>> Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> > >>> --- > >>> drivers/clk/tegra/clk-tegra210.c | 1 + > >>> 1 file changed, 1 insertion(+) > >>> > >>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c > >>> index 9a2512a..708f5f1 100644 > >>> --- a/drivers/clk/tegra/clk-tegra210.c > >>> +++ b/drivers/clk/tegra/clk-tegra210.c > >>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) > >>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, > >>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, > >>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, > >> > >> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not > >> sure we always want this on for all cases. > > > > Why would you not want it to be always on? > > Purely for power reasons. I do not know how much power keeping this I don't expect it to be significant but I don't have any numbers. > clock running consumes, but I don't like the idea of clocks running all > the time when they are not needed. > Problem is that in this case there is no easy way to determine if the clock needs to be on. Peter. ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <20170306142850.GJ26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on [not found] ` <20170306142850.GJ26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> @ 2017-03-06 15:46 ` Jon Hunter 2017-03-06 15:53 ` Geert Uytterhoeven 1 sibling, 0 replies; 17+ messages in thread From: Jon Hunter @ 2017-03-06 15:46 UTC (permalink / raw) To: Peter De Schrijver Cc: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA On 06/03/17 14:28, Peter De Schrijver wrote: > On Mon, Mar 06, 2017 at 09:58:29AM +0000, Jon Hunter wrote: >> >> On 06/03/17 08:38, Peter De Schrijver wrote: >>> On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: >>>> >>>> On 28/02/17 15:19, Peter De Schrijver wrote: >>>>> This is needed to make the JTAG debugging interface work. >>>>> >>>>> Signed-off-by: Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> >>>>> --- >>>>> drivers/clk/tegra/clk-tegra210.c | 1 + >>>>> 1 file changed, 1 insertion(+) >>>>> >>>>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c >>>>> index 9a2512a..708f5f1 100644 >>>>> --- a/drivers/clk/tegra/clk-tegra210.c >>>>> +++ b/drivers/clk/tegra/clk-tegra210.c >>>>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) >>>>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, >>>>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, >>>>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, >>>> >>>> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not >>>> sure we always want this on for all cases. >>> >>> Why would you not want it to be always on? >> >> Purely for power reasons. I do not know how much power keeping this > > I don't expect it to be significant but I don't have any numbers. > >> clock running consumes, but I don't like the idea of clocks running all >> the time when they are not needed. >> > > Problem is that in this case there is no easy way to determine if the clock > needs to be on. Yes I understand, but if we just enable it, people may assume that this clock always needs to be on without knowing that it is optional and it is safe to disable if you are not using JTAG. So at a minimum we should have a comment about this. What about adding a CONFIG_TEGRA_ENABLE_JTAG option? I would be ok with the default being enabled. Cheers Jon -- nvpublic ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on [not found] ` <20170306142850.GJ26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> 2017-03-06 15:46 ` Jon Hunter @ 2017-03-06 15:53 ` Geert Uytterhoeven 2017-03-07 20:27 ` Jon Hunter ` (2 more replies) 1 sibling, 3 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2017-03-06 15:53 UTC (permalink / raw) To: Peter De Schrijver Cc: Jon Hunter, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Peter, On Mon, Mar 6, 2017 at 3:28 PM, Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> wrote: > On Mon, Mar 06, 2017 at 09:58:29AM +0000, Jon Hunter wrote: >> On 06/03/17 08:38, Peter De Schrijver wrote: >> > On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: >> >> On 28/02/17 15:19, Peter De Schrijver wrote: >> >>> This is needed to make the JTAG debugging interface work. >> >>> >> >>> Signed-off-by: Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> >> >>> --- >> >>> drivers/clk/tegra/clk-tegra210.c | 1 + >> >>> 1 file changed, 1 insertion(+) >> >>> >> >>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c >> >>> index 9a2512a..708f5f1 100644 >> >>> --- a/drivers/clk/tegra/clk-tegra210.c >> >>> +++ b/drivers/clk/tegra/clk-tegra210.c >> >>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) >> >>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, >> >>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, >> >>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, >> >>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, >> >>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, >> >>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, >> >>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, >> >> >> >> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not >> >> sure we always want this on for all cases. >> > >> > Why would you not want it to be always on? >> >> Purely for power reasons. I do not know how much power keeping this > > I don't expect it to be significant but I don't have any numbers. > >> clock running consumes, but I don't like the idea of clocks running all >> the time when they are not needed. > > Problem is that in this case there is no easy way to determine if the clock > needs to be on. I had a similar issue with SH-Mobile AG5, where the power domain containing the JTAG interface is powered down. [DEBUG] ARM: dts: sh73a0: Add minimal device node for Coresight-ETM https://patchwork.kernel.org/patch/8151511/ Want to debug? Apply patch. I know it's not ideal... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-06 15:53 ` Geert Uytterhoeven @ 2017-03-07 20:27 ` Jon Hunter [not found] ` <598a2a7d-6e01-8884-e839-c758b731605a-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2017-03-08 10:13 ` Jon Hunter 2017-03-13 10:47 ` Peter De Schrijver 2 siblings, 1 reply; 17+ messages in thread From: Jon Hunter @ 2017-03-07 20:27 UTC (permalink / raw) To: Geert Uytterhoeven, Peter De Schrijver Cc: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel@vger.kernel.org Hi Geert, On 06/03/17 15:53, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Mar 6, 2017 at 3:28 PM, Peter De Schrijver > <pdeschrijver@nvidia.com> wrote: >> On Mon, Mar 06, 2017 at 09:58:29AM +0000, Jon Hunter wrote: >>> On 06/03/17 08:38, Peter De Schrijver wrote: >>>> On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: >>>>> On 28/02/17 15:19, Peter De Schrijver wrote: >>>>>> This is needed to make the JTAG debugging interface work. >>>>>> >>>>>> Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> >>>>>> --- >>>>>> drivers/clk/tegra/clk-tegra210.c | 1 + >>>>>> 1 file changed, 1 insertion(+) >>>>>> >>>>>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c >>>>>> index 9a2512a..708f5f1 100644 >>>>>> --- a/drivers/clk/tegra/clk-tegra210.c >>>>>> +++ b/drivers/clk/tegra/clk-tegra210.c >>>>>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) >>>>>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, >>>>>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, >>>>>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, >>>>> >>>>> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not >>>>> sure we always want this on for all cases. >>>> >>>> Why would you not want it to be always on? >>> >>> Purely for power reasons. I do not know how much power keeping this >> >> I don't expect it to be significant but I don't have any numbers. >> >>> clock running consumes, but I don't like the idea of clocks running all >>> the time when they are not needed. >> >> Problem is that in this case there is no easy way to determine if the clock >> needs to be on. > > I had a similar issue with SH-Mobile AG5, where the power domain containing > the JTAG interface is powered down. > > [DEBUG] ARM: dts: sh73a0: Add minimal device node for Coresight-ETM > https://patchwork.kernel.org/patch/8151511/ > > Want to debug? Apply patch. I know it's not ideal... Why don't you apply the patch and just keep the node disabled by default? Cheers Jon -- nvpublic ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <598a2a7d-6e01-8884-e839-c758b731605a-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on [not found] ` <598a2a7d-6e01-8884-e839-c758b731605a-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2017-03-08 8:23 ` Geert Uytterhoeven 0 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2017-03-08 8:23 UTC (permalink / raw) To: Jon Hunter Cc: Peter De Schrijver, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Jon, On Tue, Mar 7, 2017 at 9:27 PM, Jon Hunter <jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> wrote: > On 06/03/17 15:53, Geert Uytterhoeven wrote: >> On Mon, Mar 6, 2017 at 3:28 PM, Peter De Schrijver >> <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> wrote: >>> On Mon, Mar 06, 2017 at 09:58:29AM +0000, Jon Hunter wrote: >>>> On 06/03/17 08:38, Peter De Schrijver wrote: >>>>> On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: >>>>>> On 28/02/17 15:19, Peter De Schrijver wrote: >>>>>>> This is needed to make the JTAG debugging interface work. >>>>>>> >>>>>>> Signed-off-by: Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> >>>>>>> --- >>>>>>> drivers/clk/tegra/clk-tegra210.c | 1 + >>>>>>> 1 file changed, 1 insertion(+) >>>>>>> >>>>>>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c >>>>>>> index 9a2512a..708f5f1 100644 >>>>>>> --- a/drivers/clk/tegra/clk-tegra210.c >>>>>>> +++ b/drivers/clk/tegra/clk-tegra210.c >>>>>>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) >>>>>>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, >>>>>>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, >>>>>>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, >>>>>> >>>>>> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not >>>>>> sure we always want this on for all cases. >>>>> >>>>> Why would you not want it to be always on? >>>> >>>> Purely for power reasons. I do not know how much power keeping this >>> >>> I don't expect it to be significant but I don't have any numbers. >>> >>>> clock running consumes, but I don't like the idea of clocks running all >>>> the time when they are not needed. >>> >>> Problem is that in this case there is no easy way to determine if the clock >>> needs to be on. >> >> I had a similar issue with SH-Mobile AG5, where the power domain containing >> the JTAG interface is powered down. >> >> [DEBUG] ARM: dts: sh73a0: Add minimal device node for Coresight-ETM >> https://patchwork.kernel.org/patch/8151511/ >> >> Want to debug? Apply patch. I know it's not ideal... > > Why don't you apply the patch and just keep the node disabled by default? Thanks, good idea! Then I first have to make get_special_pds() skip disabled nodes... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-06 15:53 ` Geert Uytterhoeven 2017-03-07 20:27 ` Jon Hunter @ 2017-03-08 10:13 ` Jon Hunter 2017-03-08 11:38 ` Geert Uytterhoeven 2017-03-13 10:47 ` Peter De Schrijver 2 siblings, 1 reply; 17+ messages in thread From: Jon Hunter @ 2017-03-08 10:13 UTC (permalink / raw) To: Geert Uytterhoeven, Peter De Schrijver Cc: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel@vger.kernel.org Hi Peter, On 06/03/17 15:53, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Mar 6, 2017 at 3:28 PM, Peter De Schrijver > <pdeschrijver@nvidia.com> wrote: >> On Mon, Mar 06, 2017 at 09:58:29AM +0000, Jon Hunter wrote: >>> On 06/03/17 08:38, Peter De Schrijver wrote: >>>> On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: >>>>> On 28/02/17 15:19, Peter De Schrijver wrote: >>>>>> This is needed to make the JTAG debugging interface work. >>>>>> >>>>>> Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> >>>>>> --- >>>>>> drivers/clk/tegra/clk-tegra210.c | 1 + >>>>>> 1 file changed, 1 insertion(+) >>>>>> >>>>>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c >>>>>> index 9a2512a..708f5f1 100644 >>>>>> --- a/drivers/clk/tegra/clk-tegra210.c >>>>>> +++ b/drivers/clk/tegra/clk-tegra210.c >>>>>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) >>>>>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, >>>>>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, >>>>>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, >>>>>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, >>>>> >>>>> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not >>>>> sure we always want this on for all cases. >>>> >>>> Why would you not want it to be always on? >>> >>> Purely for power reasons. I do not know how much power keeping this >> >> I don't expect it to be significant but I don't have any numbers. >> >>> clock running consumes, but I don't like the idea of clocks running all >>> the time when they are not needed. >> >> Problem is that in this case there is no easy way to determine if the clock >> needs to be on. > > I had a similar issue with SH-Mobile AG5, where the power domain containing > the JTAG interface is powered down. This reminds me, does your patch assume that the DFD power domain is enabled? I am guessing that it needs to be for JTAG to work. Cheers Jon -- nvpublic ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-08 10:13 ` Jon Hunter @ 2017-03-08 11:38 ` Geert Uytterhoeven 2017-03-08 11:48 ` Jon Hunter 0 siblings, 1 reply; 17+ messages in thread From: Geert Uytterhoeven @ 2017-03-08 11:38 UTC (permalink / raw) To: Jon Hunter Cc: Peter De Schrijver, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel@vger.kernel.org Hi Jon, On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter <jonathanh@nvidia.com> wrote: >> I had a similar issue with SH-Mobile AG5, where the power domain containing >> the JTAG interface is powered down. > > This reminds me, does your patch assume that the DFD power domain is > enabled? I am guessing that it needs to be for JTAG to work. Yes. The pm-rmobile driver looks for "arm,coresight-etm3x" devices, and marks the corresponding PM Domain as always-on, as long as the Coresight code doesn't handle runtime PM. For R-Mobile A1 and APE6 I already have added such device nodes, as any access to a debug register hangs when the debug power domain is powered down. For SH-Mobile AG5, I hadn't, as the debug power domain needs to be powered for JTAG functionality only. For the latter, perhaps we also need a command line parameter to change a device status from "disabled" to "enabled"? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-08 11:38 ` Geert Uytterhoeven @ 2017-03-08 11:48 ` Jon Hunter 2017-03-13 10:45 ` Peter De Schrijver 0 siblings, 1 reply; 17+ messages in thread From: Jon Hunter @ 2017-03-08 11:48 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Peter De Schrijver, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel@vger.kernel.org On 08/03/17 11:38, Geert Uytterhoeven wrote: > Hi Jon, > > On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter <jonathanh@nvidia.com> wrote: >>> I had a similar issue with SH-Mobile AG5, where the power domain containing >>> the JTAG interface is powered down. >> >> This reminds me, does your patch assume that the DFD power domain is >> enabled? I am guessing that it needs to be for JTAG to work. > > Yes. The pm-rmobile driver looks for "arm,coresight-etm3x" devices, and > marks the corresponding PM Domain as always-on, as long as the > Coresight code doesn't handle runtime PM. Sorry Geert, but I was asking Peter specifically about the power-domain on Tegra as I have a feeling we may have the same scenario ;-) Jon -- nvpublic ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-08 11:48 ` Jon Hunter @ 2017-03-13 10:45 ` Peter De Schrijver [not found] ` <20170313104532.GT26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Peter De Schrijver @ 2017-03-13 10:45 UTC (permalink / raw) To: Jon Hunter Cc: Geert Uytterhoeven, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel@vger.kernel.org On Wed, Mar 08, 2017 at 11:48:21AM +0000, Jon Hunter wrote: > > On 08/03/17 11:38, Geert Uytterhoeven wrote: > > Hi Jon, > > > > On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter <jonathanh@nvidia.com> wrote: > >>> I had a similar issue with SH-Mobile AG5, where the power domain containing > >>> the JTAG interface is powered down. > >> > >> This reminds me, does your patch assume that the DFD power domain is > >> enabled? I am guessing that it needs to be for JTAG to work. > > > > Yes. The pm-rmobile driver looks for "arm,coresight-etm3x" devices, and > > marks the corresponding PM Domain as always-on, as long as the > > Coresight code doesn't handle runtime PM. > > Sorry Geert, but I was asking Peter specifically about the power-domain > on Tegra as I have a feeling we may have the same scenario ;-) We don't have a specific power domain for DFD on Tegra210. It's part of the non-powergateable core domain. Cheers, Peter. ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <20170313104532.GT26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on [not found] ` <20170313104532.GT26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> @ 2017-03-13 11:03 ` Jon Hunter [not found] ` <9e81c653-b6bb-a47c-8891-d7c7d42a7650-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 17+ messages in thread From: Jon Hunter @ 2017-03-13 11:03 UTC (permalink / raw) To: Peter De Schrijver Cc: Geert Uytterhoeven, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 13/03/17 10:45, Peter De Schrijver wrote: > On Wed, Mar 08, 2017 at 11:48:21AM +0000, Jon Hunter wrote: >> >> On 08/03/17 11:38, Geert Uytterhoeven wrote: >>> Hi Jon, >>> >>> On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter <jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> wrote: >>>>> I had a similar issue with SH-Mobile AG5, where the power domain containing >>>>> the JTAG interface is powered down. >>>> >>>> This reminds me, does your patch assume that the DFD power domain is >>>> enabled? I am guessing that it needs to be for JTAG to work. >>> >>> Yes. The pm-rmobile driver looks for "arm,coresight-etm3x" devices, and >>> marks the corresponding PM Domain as always-on, as long as the >>> Coresight code doesn't handle runtime PM. >> >> Sorry Geert, but I was asking Peter specifically about the power-domain >> on Tegra as I have a feeling we may have the same scenario ;-) > > We don't have a specific power domain for DFD on Tegra210. It's part of the > non-powergateable core domain. Either we are getting our wires crossed or the TRM is wrong :-( static const char * const tegra210_powergates[] = { [TEGRA_POWERGATE_CPU] = "crail", [TEGRA_POWERGATE_3D] = "3d", [TEGRA_POWERGATE_VENC] = "venc", [TEGRA_POWERGATE_PCIE] = "pcie", [TEGRA_POWERGATE_MPE] = "mpe", [TEGRA_POWERGATE_SATA] = "sata", [TEGRA_POWERGATE_CPU1] = "cpu1", [TEGRA_POWERGATE_CPU2] = "cpu2", [TEGRA_POWERGATE_CPU3] = "cpu3", [TEGRA_POWERGATE_CPU0] = "cpu0", [TEGRA_POWERGATE_C0NC] = "c0nc", [TEGRA_POWERGATE_SOR] = "sor", [TEGRA_POWERGATE_DIS] = "dis", [TEGRA_POWERGATE_DISB] = "disb", [TEGRA_POWERGATE_XUSBA] = "xusba", [TEGRA_POWERGATE_XUSBB] = "xusbb", [TEGRA_POWERGATE_XUSBC] = "xusbc", [TEGRA_POWERGATE_VIC] = "vic", [TEGRA_POWERGATE_IRAM] = "iram", [TEGRA_POWERGATE_NVDEC] = "nvdec", [TEGRA_POWERGATE_NVJPG] = "nvjpg", [TEGRA_POWERGATE_AUD] = "aud", [TEGRA_POWERGATE_DFD] = "dfd", [TEGRA_POWERGATE_VE2] = "ve2", }; Jon -- nvpublic ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <9e81c653-b6bb-a47c-8891-d7c7d42a7650-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on [not found] ` <9e81c653-b6bb-a47c-8891-d7c7d42a7650-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2017-03-13 14:18 ` Peter De Schrijver 0 siblings, 0 replies; 17+ messages in thread From: Peter De Schrijver @ 2017-03-13 14:18 UTC (permalink / raw) To: Jon Hunter Cc: Geert Uytterhoeven, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Mon, Mar 13, 2017 at 11:03:27AM +0000, Jon Hunter wrote: > > On 13/03/17 10:45, Peter De Schrijver wrote: > > On Wed, Mar 08, 2017 at 11:48:21AM +0000, Jon Hunter wrote: > >> > >> On 08/03/17 11:38, Geert Uytterhoeven wrote: > >>> Hi Jon, > >>> > >>> On Wed, Mar 8, 2017 at 11:13 AM, Jon Hunter <jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> wrote: > >>>>> I had a similar issue with SH-Mobile AG5, where the power domain containing > >>>>> the JTAG interface is powered down. > >>>> > >>>> This reminds me, does your patch assume that the DFD power domain is > >>>> enabled? I am guessing that it needs to be for JTAG to work. > >>> > >>> Yes. The pm-rmobile driver looks for "arm,coresight-etm3x" devices, and > >>> marks the corresponding PM Domain as always-on, as long as the > >>> Coresight code doesn't handle runtime PM. > >> > >> Sorry Geert, but I was asking Peter specifically about the power-domain > >> on Tegra as I have a feeling we may have the same scenario ;-) > > > > We don't have a specific power domain for DFD on Tegra210. It's part of the > > non-powergateable core domain. > > Either we are getting our wires crossed or the TRM is wrong :-( > > static const char * const tegra210_powergates[] = { > [TEGRA_POWERGATE_CPU] = "crail", > [TEGRA_POWERGATE_3D] = "3d", > [TEGRA_POWERGATE_VENC] = "venc", > [TEGRA_POWERGATE_PCIE] = "pcie", > [TEGRA_POWERGATE_MPE] = "mpe", > [TEGRA_POWERGATE_SATA] = "sata", > [TEGRA_POWERGATE_CPU1] = "cpu1", > [TEGRA_POWERGATE_CPU2] = "cpu2", > [TEGRA_POWERGATE_CPU3] = "cpu3", > [TEGRA_POWERGATE_CPU0] = "cpu0", > [TEGRA_POWERGATE_C0NC] = "c0nc", > [TEGRA_POWERGATE_SOR] = "sor", > [TEGRA_POWERGATE_DIS] = "dis", > [TEGRA_POWERGATE_DISB] = "disb", > [TEGRA_POWERGATE_XUSBA] = "xusba", > [TEGRA_POWERGATE_XUSBB] = "xusbb", > [TEGRA_POWERGATE_XUSBC] = "xusbc", > [TEGRA_POWERGATE_VIC] = "vic", > [TEGRA_POWERGATE_IRAM] = "iram", > [TEGRA_POWERGATE_NVDEC] = "nvdec", > [TEGRA_POWERGATE_NVJPG] = "nvjpg", > [TEGRA_POWERGATE_AUD] = "aud", > [TEGRA_POWERGATE_DFD] = "dfd", > [TEGRA_POWERGATE_VE2] = "ve2", > }; > This seems to exist indeed. However downstream has never used it, so I wonder how well powergating this domain has been tested. Peter. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-03-06 15:53 ` Geert Uytterhoeven 2017-03-07 20:27 ` Jon Hunter 2017-03-08 10:13 ` Jon Hunter @ 2017-03-13 10:47 ` Peter De Schrijver 2 siblings, 0 replies; 17+ messages in thread From: Peter De Schrijver @ 2017-03-13 10:47 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Jon Hunter, Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel@vger.kernel.org On Mon, Mar 06, 2017 at 04:53:48PM +0100, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Mar 6, 2017 at 3:28 PM, Peter De Schrijver > <pdeschrijver@nvidia.com> wrote: > > On Mon, Mar 06, 2017 at 09:58:29AM +0000, Jon Hunter wrote: > >> On 06/03/17 08:38, Peter De Schrijver wrote: > >> > On Thu, Mar 02, 2017 at 05:56:49PM +0000, Jon Hunter wrote: > >> >> On 28/02/17 15:19, Peter De Schrijver wrote: > >> >>> This is needed to make the JTAG debugging interface work. > >> >>> > >> >>> Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> > >> >>> --- > >> >>> drivers/clk/tegra/clk-tegra210.c | 1 + > >> >>> 1 file changed, 1 insertion(+) > >> >>> > >> >>> diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c > >> >>> index 9a2512a..708f5f1 100644 > >> >>> --- a/drivers/clk/tegra/clk-tegra210.c > >> >>> +++ b/drivers/clk/tegra/clk-tegra210.c > >> >>> @@ -2680,6 +2680,7 @@ static void tegra210_cpu_clock_resume(void) > >> >>> { TEGRA210_CLK_EMC, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >> >>> { TEGRA210_CLK_MSELECT, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >> >>> { TEGRA210_CLK_CSITE, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >> >>> + { TEGRA210_CLK_DBGAPB, TEGRA210_CLK_CLK_MAX, 0, 1 }, > >> >>> { TEGRA210_CLK_TSENSOR, TEGRA210_CLK_CLK_M, 400000, 0 }, > >> >>> { TEGRA210_CLK_I2C1, TEGRA210_CLK_PLL_P, 0, 0 }, > >> >>> { TEGRA210_CLK_I2C2, TEGRA210_CLK_PLL_P, 0, 0 }, > >> >> > >> >> Should there be some dependency on say CONFIG_DEBUG_KERNEL? I am not > >> >> sure we always want this on for all cases. > >> > > >> > Why would you not want it to be always on? > >> > >> Purely for power reasons. I do not know how much power keeping this > > > > I don't expect it to be significant but I don't have any numbers. > > > >> clock running consumes, but I don't like the idea of clocks running all > >> the time when they are not needed. > > > > Problem is that in this case there is no easy way to determine if the clock > > needs to be on. > > I had a similar issue with SH-Mobile AG5, where the power domain containing > the JTAG interface is powered down. > > [DEBUG] ARM: dts: sh73a0: Add minimal device node for Coresight-ETM > https://patchwork.kernel.org/patch/8151511/ > > Want to debug? Apply patch. I know it's not ideal... > Don't you always want to debug? :-) Peter. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on 2017-02-28 15:19 [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on Peter De Schrijver 2017-03-02 17:56 ` Jon Hunter @ 2017-03-20 14:18 ` Thierry Reding 1 sibling, 0 replies; 17+ messages in thread From: Thierry Reding @ 2017-03-20 14:18 UTC (permalink / raw) To: Peter De Schrijver Cc: Prashant Gaikwad, Michael Turquette, Stephen Boyd, Stephen Warren, Alexandre Courbot, linux-clk, linux-tegra, linux-kernel [-- Attachment #1: Type: text/plain, Size: 546 bytes --] On Tue, Feb 28, 2017 at 05:19:50PM +0200, Peter De Schrijver wrote: > This is needed to make the JTAG debugging interface work. > > Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> > --- > drivers/clk/tegra/clk-tegra210.c | 1 + > 1 file changed, 1 insertion(+) Let's revisit the power-saving aspects of this when we're actually good at saving power. I suspect that the power consumption of DBGAPB is dwarfed by the rest of the SoC. I've added a TODO comment as a reminder. Applied to for-4.12/clk, thanks. Thierry [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2017-03-20 14:18 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28 15:19 [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on Peter De Schrijver
2017-03-02 17:56 ` Jon Hunter
[not found] ` <4cf40c25-2ce9-737c-9ccb-06bc2cdb61d7-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2017-03-06 8:38 ` Peter De Schrijver
2017-03-06 9:58 ` Jon Hunter
2017-03-06 14:28 ` Peter De Schrijver
[not found] ` <20170306142850.GJ26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2017-03-06 15:46 ` Jon Hunter
2017-03-06 15:53 ` Geert Uytterhoeven
2017-03-07 20:27 ` Jon Hunter
[not found] ` <598a2a7d-6e01-8884-e839-c758b731605a-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2017-03-08 8:23 ` Geert Uytterhoeven
2017-03-08 10:13 ` Jon Hunter
2017-03-08 11:38 ` Geert Uytterhoeven
2017-03-08 11:48 ` Jon Hunter
2017-03-13 10:45 ` Peter De Schrijver
[not found] ` <20170313104532.GT26640-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2017-03-13 11:03 ` Jon Hunter
[not found] ` <9e81c653-b6bb-a47c-8891-d7c7d42a7650-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2017-03-13 14:18 ` Peter De Schrijver
2017-03-13 10:47 ` Peter De Schrijver
2017-03-20 14:18 ` Thierry Reding
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox