linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: gta04: add serial console wakeup irq
@ 2018-09-23 15:07 Andreas Kemnade
  2018-09-24 22:03 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Kemnade @ 2018-09-23 15:07 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren, Rob Herring, Mark Rutland,
	linux-omap, devicetree, linux-kernel, letux-kernel
  Cc: Andreas Kemnade

This enables the possibility to have more aggressive runtime pm
by providing proper wakeup irq for the serial console.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index ac830b917776..edb7cdd33632 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -493,6 +493,7 @@
 &uart3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart3_pins>;
+	interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
 };
 
 &charger {
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: dts: gta04: add serial console wakeup irq
  2018-09-23 15:07 [PATCH] ARM: dts: gta04: add serial console wakeup irq Andreas Kemnade
@ 2018-09-24 22:03 ` Tony Lindgren
  2018-09-25  5:26   ` Andreas Kemnade
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2018-09-24 22:03 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: Benoît Cousson, Rob Herring, Mark Rutland, linux-omap,
	devicetree, linux-kernel, letux-kernel

* Andreas Kemnade <andreas@kemnade.info> [180923 08:12]:
> This enables the possibility to have more aggressive runtime pm
> by providing proper wakeup irq for the serial console.

Thanks applying to omap-for-v4.20/dt.

FYI, you can now grep wake /proc/interrupts and see the
wakeirq counts increase when they trigger. Might be handy
for debugging PM stuff.

Regards,

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: dts: gta04: add serial console wakeup irq
  2018-09-24 22:03 ` Tony Lindgren
@ 2018-09-25  5:26   ` Andreas Kemnade
  2018-09-25 16:48     ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Kemnade @ 2018-09-25  5:26 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Benoît Cousson, Rob Herring, Mark Rutland, linux-omap,
	devicetree, linux-kernel, letux-kernel

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

Hi Tony,

On Mon, 24 Sep 2018 15:03:45 -0700
Tony Lindgren <tony@atomide.com> wrote:

> * Andreas Kemnade <andreas@kemnade.info> [180923 08:12]:
> > This enables the possibility to have more aggressive runtime pm
> > by providing proper wakeup irq for the serial console.  
> 
> Thanks applying to omap-for-v4.20/dt.
> 
> FYI, you can now grep wake /proc/interrupts and see the
> wakeirq counts increase when they trigger. Might be handy
> for debugging PM stuff.
> 
thanks for that information, you also had a patch for checking
pm which was explicitely marked as not-to-merge. Is there
any up-to-date version of it?

Well, for debugging I check first average currents via bq27000
attached to omap_hdq. omap_hdq gets stuck after first transaction
after idling uarts which does not happen when CM_AUTOIDLE1_CORE.AUTO_HDQ
is cleared. Reloading the omap_hdq module to try to fix things
makes w1 really freak out (patch already sent for that).
Well, will do some rtfm and hopefully come back with a patch.
afaicr there was something special...
The result are power management problem in /dev/brain ;-)

Regards,
Andreas

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: dts: gta04: add serial console wakeup irq
  2018-09-25  5:26   ` Andreas Kemnade
@ 2018-09-25 16:48     ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2018-09-25 16:48 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: Benoît Cousson, Rob Herring, Mark Rutland, linux-omap,
	devicetree, linux-kernel, letux-kernel

* Andreas Kemnade <andreas@kemnade.info> [180925 05:32]:
> Hi Tony,
> 
> On Mon, 24 Sep 2018 15:03:45 -0700
> Tony Lindgren <tony@atomide.com> wrote:
> 
> > * Andreas Kemnade <andreas@kemnade.info> [180923 08:12]:
> > > This enables the possibility to have more aggressive runtime pm
> > > by providing proper wakeup irq for the serial console.  
> > 
> > Thanks applying to omap-for-v4.20/dt.
> > 
> > FYI, you can now grep wake /proc/interrupts and see the
> > wakeirq counts increase when they trigger. Might be handy
> > for debugging PM stuff.
> > 
> thanks for that information, you also had a patch for checking
> pm which was explicitely marked as not-to-merge. Is there
> any up-to-date version of it?

It's still the same so no updates to it.

> Well, for debugging I check first average currents via bq27000
> attached to omap_hdq. omap_hdq gets stuck after first transaction
> after idling uarts which does not happen when CM_AUTOIDLE1_CORE.AUTO_HDQ
> is cleared. Reloading the omap_hdq module to try to fix things
> makes w1 really freak out (patch already sent for that).
> Well, will do some rtfm and hopefully come back with a patch.
> afaicr there was something special...

Hmm sounds like drivers/w1/masters/omap_hdq.c needs to implement
PM runtime calls, it's probably just enabled because of only
needing the interconnect fck that the uart happens to keep
enabled.

> The result are power management problem in /dev/brain ;-)

:)

Tony



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-25 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-23 15:07 [PATCH] ARM: dts: gta04: add serial console wakeup irq Andreas Kemnade
2018-09-24 22:03 ` Tony Lindgren
2018-09-25  5:26   ` Andreas Kemnade
2018-09-25 16:48     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).