From: Simon Horman <horms@verge.net.au>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 1/2] ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
Date: Mon, 15 Apr 2013 04:01:09 +0000 [thread overview]
Message-ID: <20130415040109.GF3070@verge.net.au> (raw)
In-Reply-To: <CABYn4sx6czjsCqF0UQf3qD1h4sj9Si1AmtMSogEjjdbTuy7zzQ@mail.gmail.com>
On Fri, Apr 12, 2013 at 02:54:46PM +0200, Bastian Hecht wrote:
> Hi Simon,
>
> 2013/4/12 Simon Horman <horms@verge.net.au>:
> > On Thu, Apr 11, 2013 at 04:07:43PM +0200, Bastian Hecht wrote:
> >> We add 2 Suspend to RAM modes:
> >> - A3SM PLL0 on/off: Power domain A3SM that contains the ARM core
> >> and the 2nd level cache with either PLL0 on
> >> or off
> >>
> >> As the suspend to memory mechanism we use A3SM PLL off. A3SM PLL on
> >> is included here too, so CPUIdle can use both power down modes (not
> >> included in this patch).
> >>
> >> The setup of the SYSC regarding the external IRQs is taken from
> >> pm-sh7372.c from Magnus Damm.
> >>
> >> Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
> >> ---
> >> This patch relies on
> >> ARM: hw_breakpoint: Do not use __cpuinitdata for dbg_cpu_pm_nb
> >>
> >> v2: successor to [PATCH] ARM: shmobile: r8a7740: Add Suspend-To-RAM modes and CPUIdle
> >>
> >> - Removed the 2nd L1 flush in the asm shutdown code. See comment in code for explanation.
> >> - Reworked the ifdefs: We can only use CPUIdle if SUSPEND is set as well.
> >> - Removed cpu_do_idle() in r8a7740_enter_suspend: We don't want to sleep twice...
> >>
> >> If you want to test this use this workaround in the st1232 driver in
> >> drivers/input/touchscreen/st1232.c:
> >>
> >> error = request_threaded_irq(client->irq, NULL, st1232_ts_irq_handler,
> >> - IRQF_ONESHOT, client->name, ts);
> >> + IRQF_NO_SUSPEND | IRQF_ONESHOT, client->name, ts);
> >>
> >> You need it as the current irqpin driver doesn't handle wakeup devices properly yet.
> >>
> >> Tested with the 4 possiblities L2 on - Suspend on/off - CPUIdle on/off
> >> and with the additional test L2 off - Suspend on - CPUIdle on
> >
> > Hi Bastian,
> >
> > are the pre-requisites listed above likely to be in v3.11-rc1 or rc2?
>
> I probably was a bit incorrect by saying "relies on". Right now the
> complete suspend system is broken on ARM UP systems. So I think we can
> use this patch without coordination regarding the other patch. It's
> just when you want to test this here, then you need the above
> mentioned patch to fix the system first before you can do anything.
Thanks that seems reasonable.
However, I will hold of queuing-up this series as there seems
to be some discussion relating to patch 1/2. Please let me know
when that is resolved via discussion or a fresh series.
WARNING: multiple messages have this Message-ID (diff)
From: horms@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM
Date: Mon, 15 Apr 2013 13:01:09 +0900 [thread overview]
Message-ID: <20130415040109.GF3070@verge.net.au> (raw)
In-Reply-To: <CABYn4sx6czjsCqF0UQf3qD1h4sj9Si1AmtMSogEjjdbTuy7zzQ@mail.gmail.com>
On Fri, Apr 12, 2013 at 02:54:46PM +0200, Bastian Hecht wrote:
> Hi Simon,
>
> 2013/4/12 Simon Horman <horms@verge.net.au>:
> > On Thu, Apr 11, 2013 at 04:07:43PM +0200, Bastian Hecht wrote:
> >> We add 2 Suspend to RAM modes:
> >> - A3SM PLL0 on/off: Power domain A3SM that contains the ARM core
> >> and the 2nd level cache with either PLL0 on
> >> or off
> >>
> >> As the suspend to memory mechanism we use A3SM PLL off. A3SM PLL on
> >> is included here too, so CPUIdle can use both power down modes (not
> >> included in this patch).
> >>
> >> The setup of the SYSC regarding the external IRQs is taken from
> >> pm-sh7372.c from Magnus Damm.
> >>
> >> Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
> >> ---
> >> This patch relies on
> >> ARM: hw_breakpoint: Do not use __cpuinitdata for dbg_cpu_pm_nb
> >>
> >> v2: successor to [PATCH] ARM: shmobile: r8a7740: Add Suspend-To-RAM modes and CPUIdle
> >>
> >> - Removed the 2nd L1 flush in the asm shutdown code. See comment in code for explanation.
> >> - Reworked the ifdefs: We can only use CPUIdle if SUSPEND is set as well.
> >> - Removed cpu_do_idle() in r8a7740_enter_suspend: We don't want to sleep twice...
> >>
> >> If you want to test this use this workaround in the st1232 driver in
> >> drivers/input/touchscreen/st1232.c:
> >>
> >> error = request_threaded_irq(client->irq, NULL, st1232_ts_irq_handler,
> >> - IRQF_ONESHOT, client->name, ts);
> >> + IRQF_NO_SUSPEND | IRQF_ONESHOT, client->name, ts);
> >>
> >> You need it as the current irqpin driver doesn't handle wakeup devices properly yet.
> >>
> >> Tested with the 4 possiblities L2 on - Suspend on/off - CPUIdle on/off
> >> and with the additional test L2 off - Suspend on - CPUIdle on
> >
> > Hi Bastian,
> >
> > are the pre-requisites listed above likely to be in v3.11-rc1 or rc2?
>
> I probably was a bit incorrect by saying "relies on". Right now the
> complete suspend system is broken on ARM UP systems. So I think we can
> use this patch without coordination regarding the other patch. It's
> just when you want to test this here, then you need the above
> mentioned patch to fix the system first before you can do anything.
Thanks that seems reasonable.
However, I will hold of queuing-up this series as there seems
to be some discussion relating to patch 1/2. Please let me know
when that is resolved via discussion or a fresh series.
next prev parent reply other threads:[~2013-04-15 4:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-11 14:07 [PATCH v2 1/2] ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM Bastian Hecht
2013-04-11 14:07 ` Bastian Hecht
2013-04-11 14:07 ` [PATCH v2 2/2] ARM: shmobile: r8a7740: Add CPUIdle Bastian Hecht
2013-04-11 14:07 ` Bastian Hecht
2013-04-11 14:30 ` Daniel Lezcano
2013-04-11 14:30 ` Daniel Lezcano
2013-04-12 0:56 ` [PATCH v2 1/2] ARM: shmobile: r8a7740: Add Suspend-To-RAM A3SM Simon Horman
2013-04-12 0:56 ` Simon Horman
2013-04-12 12:54 ` Bastian Hecht
2013-04-12 12:54 ` Bastian Hecht
2013-04-15 4:01 ` Simon Horman [this message]
2013-04-15 4:01 ` Simon Horman
2013-04-12 14:26 ` Lorenzo Pieralisi
2013-04-12 14:26 ` Lorenzo Pieralisi
2013-04-15 11:33 ` Bastian Hecht
2013-04-15 11:33 ` Bastian Hecht
2013-04-15 13:29 ` Bastian Hecht
2013-04-15 13:29 ` Bastian Hecht
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=20130415040109.GF3070@verge.net.au \
--to=horms@verge.net.au \
--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.