From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Gopinath, Thara" <thara@ti.com>
Cc: "Menon, Nishanth" <nm@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Gulati, Shweta" <shweta.gulati@ti.com>
Subject: Re: [PATCH] OMAP3: PM: Fix for Silicon bug on Context Restore on OMAP3430
Date: Tue, 06 Oct 2009 07:49:24 -0700 [thread overview]
Message-ID: <87my44r30r.fsf@deeprootsystems.com> (raw)
In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB030A3324B2@dbde02.ent.ti.com> (Thara Gopinath's message of "Tue\, 6 Oct 2009 20\:05\:18 +0530")
"Gopinath, Thara" <thara@ti.com> writes:
>>>-----Original Message-----
>>>From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
>>>Sent: Tuesday, October 06, 2009 7:50 PM
>>>To: Gopinath, Thara
>>>Cc: Menon, Nishanth; linux-omap@vger.kernel.org; Gulati, Shweta
>>>Subject: Re: [PATCH] OMAP3: PM: Fix for Silicon bug on Context Restore on OMAP3430
>>>
>>>"Gopinath, Thara" <thara@ti.com> writes:
>>>
>>>>>>-----Original Message-----
>>>>>>From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
>>>>>>Sent: Tuesday, October 06, 2009 6:47 PM
>>>>>>To: Gopinath, Thara
>>>>>>Cc: Menon, Nishanth; linux-omap@vger.kernel.org; Gulati, Shweta
>>>>>>Subject: Re: [PATCH] OMAP3: PM: Fix for Silicon bug on Context Restore on OMAP3430
>>>>>>
>>>>>>"Gopinath, Thara" <thara@ti.com> writes:
>>>>>>
>>>>>>> The problem here is not with the restore. If MPU reads the PADCONF_SAVEDONE bit very close
>>>>>>> to the end of context save sequence for the pad conf registers, the last context is not
>>>>>>> saved to the scratchpad memory. This is a h/w bug. The workaround proposed is to delay the
>>>>>>> MPU access of SAVEDONE bit until the last context has been saved. 300 us delay is the current
>>>>>>> safe delay proposed by TI. I believe investigations are going on to whether this delay can be
>>>>>>> optimized. Also only the last context (ETK_D14) has the risk of not getting saved.
>>>>>>
>>>>>>All of this should've been in the original changelog. These are the
>>>>>>details that help others understand the problem trying to be solved
>>>>>>and think about whether there might be other solutions.
>>>>>>
>>>>>>> We could add a defconfig option for this workaround and enable it on need basis till TI
>>>>>>> comes out with proper optimized workaround sequence.
>>>>>>
>>>>>>No, Kconfig is not an option for this.
>>>>>>
>>>>>>I think Nishanth's proposal is a much better workaround for this
>>>>>>problem, and doesn't introduce and additional 300 usec delay to
>>>>>>*every* off-mode transistion.
>>>>
>>>> I am not very sure about this as it has the risk of glitch on the
>>>> line. It is probably ok if the ball is not used. But if in use, the
>>>> glitch could create issues.
>>>
>>>I don't follow.
>>>
>>>IIUC, Nishanth's proposal would be to
>>>
>>>In save context:
>>>- manually save ETK_D14 to some static variable (SDRAM)
>>>- initiate the padconf safe
>>>- poll SAVE_DONE
>>>- here ETK_D14 value saved by HW possibly corrupted,
>>> but the copy saved manually should be fine
>>>
>>>In restore:
>>>- manually restore ETK_D14 from the static variable
>>>
>>>What is wrong with this approach?
> In this approach there is a possibility that the h/w restore a wrong value to PADCONF_ETKD14.
> Now suppose this pin is in use and is supposed to be pulled high. And the proper save does not happen
> 1. Before going to Off - the pin is pulled high
> 2. Off
> 3. h/w restore - Has done bad save. So bad value restored. Say pull low.
> 4. Manual restore - the pin is again pulled high.
>
> Now there is a glitch between step 3 and 4. If this pin is not used by anybody we could live with this glitch. But considering this pin is muxed with gpio28/gpio29, hsusb_tll_data0/ hsusb_tll_data1 this glitch might be unacceptable.
I see now. Thanks for explanation.
Kevin
next prev parent reply other threads:[~2009-10-06 14:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1254741761-31546-1-git-send-email-y>
2009-10-05 11:51 ` [PATCH] OMAP3: PM: Fix for Silicon bug on Context Restore on OMAP3430 Shilimkar, Santosh
2009-10-05 17:04 ` Kevin Hilman
2009-10-05 17:27 ` Nishanth Menon
2009-10-06 6:59 ` Gopinath, Thara
2009-10-06 11:50 ` Nishanth Menon
2009-10-06 13:17 ` Kevin Hilman
2009-10-06 13:31 ` Gopinath, Thara
2009-10-06 14:20 ` Kevin Hilman
2009-10-06 14:35 ` Gopinath, Thara
2009-10-06 14:49 ` Kevin Hilman [this message]
2009-10-06 14:54 ` Gopinath, Thara
2009-10-06 15:05 ` Kevin Hilman
2009-10-06 15:17 ` Nishanth Menon
2009-10-06 15:23 ` Gopinath, Thara
2009-10-06 15:25 ` Nishanth Menon
2009-10-05 11:22 y
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=87my44r30r.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=nm@ti.com \
--cc=shweta.gulati@ti.com \
--cc=thara@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.