From: Tony Lindgren <tony@atomide.com>
To: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>,
linux-arm-kernel@lists.infradead.org,
Jarkko Nikula <jhnikula@gmail.com>,
Paul Walmsley <paul@pwsan.com>,
linux-omap@vger.kernel.org,
Ameya Palande <ameya.palande@nokia.com>
Subject: Re: [PATCH 3/6] OMAP3: PM: ensure IO wakeups are properly disabled
Date: Fri, 20 Aug 2010 09:56:50 +0300 [thread overview]
Message-ID: <20100820065649.GH25742@atomide.com> (raw)
In-Reply-To: <4C6D7936.3090201@ru.mvista.com>
[-- Attachment #1: Type: text/plain, Size: 1553 bytes --]
* Sergei Shtylyov <sshtylyov@mvista.com> [100819 21:27]:
> Hello.
>
> Kevin Hilman wrote:
>
> >>>>>From: Kevin Hilman <khilman@ti.com>
> >>>>>Commit 5a5f561 (convert OMAP3 PRCM macros to the _SHIFT/_MASK suffixes)
> >>>>>mistakenly removed the check for PER when disabling the IO chain.
> >>>>>During idle, if the PER powerdomain transitions and CORE does not (as
>
> >>>> Does not what?
>
> >>>How about ".. and CORE does not transition"?
>
> >> Transition to what then? Sentense till won't parse right...
>
> >>>Kevin, care to clarify that?
> >> Yeah, looks like a considerable partt of that sentense got omitted...
>
> >No. Nothing was omitted.
>
> >It's like saying "Tony drinks Fernet and Kevin does not." Adding an
> >additional "drinks Fernet" at the end is redundant.
>
> Sorry, the sentence still doesn't parse for me. You don't say
> "Fernet" there BTW, so it's not clear where the PER powerdomain
> transitions to. What goes after the closing parenthesis doesn't
> clear things up either, it just describes what happens if...
I'll update it with the following to preserve the Fernet style,
and to describe the transition:
During idle, if the PER powerdomain transitions into a lower state
and CORE does not, the IO pad wakeups are not being disabled in
the idle path after they are enabled. This can happen with the
lower C-states when using CPUidle for example.
Updated patch attached.
Please reply ASAP if this is not OK, I'd like to get a pull
request for these fixes sent to Linus over the weekend.
Regards,
Tony
[-- Attachment #2: omap3-pm-ensure-io-wakeups-are-properly-disabled.patch --]
[-- Type: text/x-diff, Size: 1872 bytes --]
From: Kevin Hilman <khilman@ti.com>
Date: Mon, 16 Aug 2010 09:21:19 +0300
Subject: [PATCH] OMAP3: PM: ensure IO wakeups are properly disabled
Commit 5a5f561 (convert OMAP3 PRCM macros to the _SHIFT/_MASK suffixes)
mistakenly removed the check for PER when disabling the IO chain.
During idle, if the PER powerdomain transitions into a lower state
and CORE does not, the IO pad wakeups are not being disabled in
the idle path after they are enabled. This can happen with the
lower C-states when using CPUidle for example.
This patch ensures that the check for disabling IO wakeups also checks
for PER transitions, matching the check done to enable IO wakeups.
Found when debugging PM/CPUidle related problems reported by Ameya
Palande <ameya.palande@nokia.com>. Problems were triggered
particularily on boards with UART2 consoles (n900, Overo) since UART2
is in the PER powerdomain.
Tested on l-o master (omap3_defonfig + CONFIG_CPU_IDLE=y) as well
as with current PM branch. Boards tested: n900, Overo, omap3evm.
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Ameya Palande <ameya.palande@nokia.com>
Tested-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
[tony@atomide.com: updated description to clarify the transistion]
Signed-off-by: Tony Lindgren <tony@atomide.com>
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index fb4994a..7b03426 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -480,7 +480,9 @@ void omap_sram_idle(void)
}
/* Disable IO-PAD and IO-CHAIN wakeup */
- if (omap3_has_io_wakeup() && core_next_state < PWRDM_POWER_ON) {
+ if (omap3_has_io_wakeup() &&
+ (per_next_state < PWRDM_POWER_ON ||
+ core_next_state < PWRDM_POWER_ON)) {
prm_clear_mod_reg_bits(OMAP3430_EN_IO_MASK, WKUP_MOD, PM_WKEN);
omap3_disable_io_chain();
}
WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/6] OMAP3: PM: ensure IO wakeups are properly disabled
Date: Fri, 20 Aug 2010 09:56:50 +0300 [thread overview]
Message-ID: <20100820065649.GH25742@atomide.com> (raw)
In-Reply-To: <4C6D7936.3090201@ru.mvista.com>
* Sergei Shtylyov <sshtylyov@mvista.com> [100819 21:27]:
> Hello.
>
> Kevin Hilman wrote:
>
> >>>>>From: Kevin Hilman <khilman@ti.com>
> >>>>>Commit 5a5f561 (convert OMAP3 PRCM macros to the _SHIFT/_MASK suffixes)
> >>>>>mistakenly removed the check for PER when disabling the IO chain.
> >>>>>During idle, if the PER powerdomain transitions and CORE does not (as
>
> >>>> Does not what?
>
> >>>How about ".. and CORE does not transition"?
>
> >> Transition to what then? Sentense till won't parse right...
>
> >>>Kevin, care to clarify that?
> >> Yeah, looks like a considerable partt of that sentense got omitted...
>
> >No. Nothing was omitted.
>
> >It's like saying "Tony drinks Fernet and Kevin does not." Adding an
> >additional "drinks Fernet" at the end is redundant.
>
> Sorry, the sentence still doesn't parse for me. You don't say
> "Fernet" there BTW, so it's not clear where the PER powerdomain
> transitions to. What goes after the closing parenthesis doesn't
> clear things up either, it just describes what happens if...
I'll update it with the following to preserve the Fernet style,
and to describe the transition:
During idle, if the PER powerdomain transitions into a lower state
and CORE does not, the IO pad wakeups are not being disabled in
the idle path after they are enabled. This can happen with the
lower C-states when using CPUidle for example.
Updated patch attached.
Please reply ASAP if this is not OK, I'd like to get a pull
request for these fixes sent to Linus over the weekend.
Regards,
Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omap3-pm-ensure-io-wakeups-are-properly-disabled.patch
Type: text/x-diff
Size: 1872 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100820/16fe0adb/attachment.bin>
next prev parent reply other threads:[~2010-08-20 6:56 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 8:01 [PATCH 0/6] omap fixes for upcoming 2.6.36-rc1 Tony Lindgren
2010-08-13 8:01 ` Tony Lindgren
2010-08-13 8:01 ` [PATCH 1/6] omap3: id: fix 3630 rev detection Tony Lindgren
2010-08-13 8:01 ` Tony Lindgren
2010-08-13 8:01 ` [PATCH 2/6] OMAP3: Fix a cpu type check problem Tony Lindgren
2010-08-13 8:01 ` Tony Lindgren
2010-08-13 8:02 ` [PATCH 3/6] OMAP3: PM: ensure IO wakeups are properly disabled Tony Lindgren
2010-08-13 8:02 ` Tony Lindgren
2010-08-13 9:53 ` Sergei Shtylyov
2010-08-13 9:53 ` Sergei Shtylyov
2010-08-13 10:29 ` Tony Lindgren
2010-08-13 10:29 ` Tony Lindgren
2010-08-13 10:50 ` Sergei Shtylyov
2010-08-13 10:50 ` Sergei Shtylyov
2010-08-19 18:14 ` Kevin Hilman
2010-08-19 18:14 ` Kevin Hilman
2010-08-19 18:34 ` Sergei Shtylyov
2010-08-19 18:34 ` Sergei Shtylyov
2010-08-20 6:56 ` Tony Lindgren [this message]
2010-08-20 6:56 ` Tony Lindgren
2010-08-20 16:43 ` Kevin Hilman
2010-08-20 16:43 ` Kevin Hilman
2010-08-13 8:02 ` [PATCH 4/6] omap: Fix sev instruction usage for multi-omap Tony Lindgren
2010-08-13 8:02 ` Tony Lindgren
2010-08-13 9:04 ` Shilimkar, Santosh
2010-08-13 9:04 ` Shilimkar, Santosh
2010-08-13 8:02 ` [PATCH 5/6] omap: Use CONFIG_SMP for test_for_ipi and test_for_ltirq Tony Lindgren
2010-08-13 8:02 ` Tony Lindgren
2010-08-13 9:04 ` Shilimkar, Santosh
2010-08-13 9:04 ` Shilimkar, Santosh
2010-08-13 8:02 ` [PATCH 6/6] omap: Fix omap_4430sdp_defconfig for make oldconfig Tony Lindgren
2010-08-13 8:02 ` Tony Lindgren
2010-08-13 9:04 ` Shilimkar, Santosh
2010-08-13 9:04 ` Shilimkar, Santosh
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=20100820065649.GH25742@atomide.com \
--to=tony@atomide.com \
--cc=ameya.palande@nokia.com \
--cc=jhnikula@gmail.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=sshtylyov@mvista.com \
/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.