All of lore.kernel.org
 help / color / mirror / Atom feed
From: jouni.hogander@nokia.com (Högander Jouni)
To: "ext Woodruff, Richard" <r-woodruff2@ti.com>
Cc: "Premi, Sanjeev" <premi@ti.com>,
	Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>,
	"Nayak, Rajendra" <rnayak@ti.com>,
	'Peter 'p2' De Schrijver' <peter.de-schrijver@nokia.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 00/11] OMAP3 CPUidle patches
Date: Tue, 08 Jul 2008 16:41:11 +0300	[thread overview]
Message-ID: <87prpoxzm0.fsf@trdhcp146196.ntc.nokia.com> (raw)
In-Reply-To: <13B9B4C6EF24D648824FF11BE8967162035BCE28A5@dlee02.ent.ti.com> (ext Woodruff's message of "Tue, 8 Jul 2008 07:11:27 -0500")

"ext Woodruff, Richard" <r-woodruff2@ti.com> writes:

>> >
>> > For sure save/restore of IRQENABLE is needed.  Our Labrador board
>> > which has Ethernet on per-gpio would stop to function after an OFF
>> > mode transition with out this save and restore (using CDP reference
>> > code).
>>
>> I think this is not related to OFF mode, because OFF state is not
>> used on the boot. This problem seems to disappear when boot is
>> done and C6 state is started to be used. Currently it seems to me that
>> this problem exists if using states where mpu is in sleep state and
>> core is active (C2, C3). This is under investigation. Is there any
>> known restrictions in GPIO1 module wake-up capability when mpu is in
>> sleep and core active? Any other known restrictions?
>
> If core is ACTIVE and irq is enabled at MPU then everything should work on any gpio block.
>
> If the core is INACTIVE (which is possible with hardware auto's on) then the same holds from above IF you have also enabled all wakeup mechanisms.
>
> If the core is in RET/OFF only selected gpio's will wake the system up.  IIRC not all GPIO1 even are capable to wake you from this level of sleep.  I don't recall the list.
>
> You do have the ability to use an IO PAD wake up to wake from those while in RET/OFF.  However, I don't believe you will get an IO pad when you in INACTIVE/ACTIVE.  You do have to program for this event to be generated at the pad and in the wakeup domain control registers.
>
> Questions might be:
>         - Has the prcm init happened and is the entire wake up path been setup?
>
>         [x] Has anyone fixed the broken gpio wakeup enable code?
>         Right now this might even kill you as it will clear you
>         wakeup enable register.  This could stop you from waking
>         from a partially idle/clock stop condition on the L3?

The problem was actually related to this. There is those gpio_prepare_*
and gpio_resume_* functions which were not run. For some reason
next_state for powerdomains doesn't update correctly before hw_sup
mode is disabled. This caused problem that cpuidle thinks that core is
entering ON state, while it was actually entering state written in
omap3_pm_init. Now as cpuidle was thinking that core is not entering
any sleep state it didn't run gpio_prepare_* and gpio_resume_*
functions. This caused that interrupt was not generated for that gpio
used by eth chip.

This was fixed in my patches by disabling hw_sup mode before writing
next_state and then re-enable it. Those patches are also writing next
state if CORE next state is ON.

>
> Regards,
> Richard W.
>

-- 
Jouni Högander

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-07-08 13:41 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-01 14:16 [PATCH 00/11] OMAP3 CPUidle patches Rajendra Nayak
2008-07-02 13:11 ` Peter 'p2' De Schrijver
2008-07-02 13:37   ` Rajendra Nayak
2008-07-02 15:42     ` Peter 'p2' De Schrijver
2008-07-03  8:39       ` Rajendra Nayak
2008-07-03 12:44         ` Peter 'p2' De Schrijver
2008-07-04  7:26         ` Högander Jouni
2008-07-04  9:32           ` Högander Jouni
2008-07-04  9:45             ` Koen Kooi
2008-07-04  9:45             ` Rajendra Nayak
2008-07-04  9:55               ` Högander Jouni
2008-07-04 11:08               ` Högander Jouni
2008-07-07  9:38               ` Kalle Jokiniemi
2008-07-07  9:56                 ` Högander Jouni
2008-07-07 13:58                   ` Premi, Sanjeev
2008-07-07 22:25                     ` Woodruff, Richard
2008-07-08  6:15                       ` Högander Jouni
2008-07-08 12:11                         ` Woodruff, Richard
2008-07-08 13:41                           ` Högander Jouni [this message]
2008-07-08 13:52                             ` Woodruff, Richard
2008-07-09  6:48                               ` Högander Jouni
2008-07-09 16:31                                 ` Woodruff, Richard
2008-07-04 11:05             ` Peter 'p2' De Schrijver
2008-07-04 11:39               ` Peter 'p2' De Schrijver
2008-07-03  5:57 ` Högander Jouni
2008-07-03 10:20   ` Rajendra Nayak
2008-07-15 13:20 ` Rajendra Nayak
2008-07-18 13:18 ` [PATCH 00/11] OMAP3 CPUidle patches - ver 2 Rajendra Nayak
     [not found] ` <002f01c8f7c5$0790fea0$LocalHost@wipultra1382>
2008-08-06 13:12   ` Rajendra Nayak
2008-08-07  9:54     ` Kalle Jokiniemi
2008-08-12 12:40     ` Högander Jouni
2008-08-13  5:57       ` Rajendra Nayak
2008-08-13  6:06         ` Rajendra Nayak
2008-08-13  6:55         ` Högander Jouni
2008-08-13 12:35           ` Woodruff, Richard
2008-08-13 13:12             ` Högander Jouni
2008-08-14  5:25             ` Rajendra Nayak
2008-08-19 19:08     ` Paul Walmsley

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=87prpoxzm0.fsf@trdhcp146196.ntc.nokia.com \
    --to=jouni.hogander@nokia.com \
    --cc=ext-kalle.jokiniemi@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=peter.de-schrijver@nokia.com \
    --cc=premi@ti.com \
    --cc=r-woodruff2@ti.com \
    --cc=rnayak@ti.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.