linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "Hiremath, Vaibhav" <hvaibhav@ti.com>
Cc: "K, Mythri P" <mythripk@ti.com>,
	Stephan Raue <mailinglists@openelec.tv>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: RE: [PATCH v5 00/10] OMAP4 : DSS2 : HDMI support on OMAP4
Date: Mon, 14 Mar 2011 14:54:46 +0530	[thread overview]
Message-ID: <1300094686.2060.101.camel@lappyti> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E739404E1F53077@dbde02.ent.ti.com>

On Mon, 2011-03-14 at 03:35 -0500, Hiremath, Vaibhav wrote:
> > -----Original Message-----
> > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> > owner@vger.kernel.org] On Behalf Of Hiremath, Vaibhav
> > Sent: Friday, March 11, 2011 6:53 PM
> > To: Valkeinen, Tomi; K, Mythri P
> > Cc: Stephan Raue; linux-omap@vger.kernel.org
> > Subject: RE: [PATCH v5 00/10] OMAP4 : DSS2 : HDMI support on OMAP4
> > 
> > > -----Original Message-----
> > > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> > > owner@vger.kernel.org] On Behalf Of Valkeinen, Tomi
> > > Sent: Friday, March 11, 2011 12:55 PM
> > > To: K, Mythri P
> > > Cc: Stephan Raue; linux-omap@vger.kernel.org
> > > Subject: Re: [PATCH v5 00/10] OMAP4 : DSS2 : HDMI support on OMAP4
> > >
> > > On Fri, 2011-03-11 at 00:16 -0600, K, Mythri P wrote:
> > > > Hi Stephan,
> > > >
> > > > On Fri, Mar 11, 2011 at 5:37 AM, Stephan Raue
> > <mailinglists@openelec.tv>
> > > wrote:
> > >
> > > > > thanks, this helps to boot the kernel. but now i get:
> > > > >
> > > >
> > > > <snip>
> > > >
> > > > > see also: http://paste.pocoo.org/show/351648/
> > > > >
> > > >
> > > > I see that you kernel is not booting because of dss clk
> > > >  [    3.335601] PC is at dss_clk_disable_no_ctx+0x0/0xa4
> > > > [    3.335632] LR is at omap_dispc_register_isr+0xa4/0xcc
> > > > Tomi is this related to the clock issue you were mentioning , which
> > > > gets solved by adding a delay ?
> > >
> > > Well, I have a hack patch in my tree which adds a delay of 10us. That
> > > fixed the problem for me, but the 10us is just a random guess. It could
> > > be that it needs to be longer wait. But this could be something else
> > > also.
> > >
> > >  Tomi
> > >
> > [Hiremath, Vaibhav] Tomi, just thought of updating you,
> > 
> > The linux-omap/dss2 OMAP3EVM seems to be broken, I am trying to debug this
> > at the moment and will update about my findings.
> > 
> > Since linux-omap/master is booting up fine, it looks like one of new DSS
> > patch leading to this.
> > 
> [Hiremath, Vaibhav] I think I found the where and why the kernel is crashing but not sure about root-cause - 
> 
> The root-cause turned out to be - 
> 
> void dss_clk_enable(enum dss_clock clks)
> {
> ...
> 
> if (check_ctx && cpu_is_omap34xx() && dss_need_ctx_restore())
>        restore_all_ctx();
> ...
> }
> 
> In this case, restore never happens, if I understand correctly, I am expecting, the context must be restored when all clock (especially interface clock) is disabled. 
> In order to do this, dss_need_ctx_restore must be implemented here, which I think should be ORed with other conditions. 
> 
> if (cpu_is_omap34xx() && (check_ctx || dss_need_ctx_restore()))
> 
> (This results in kernel crash at my end)
> 
> Personally I don't know any platform is implementing this function OR how one should make use of it. I remember last time we had similar discussion and the comment came was, restore only required in case of off mode. I feel, this is not applicable here, since irrespective of retention/inactive/off mode if driver is disabling clock for the peripheral we must restore the context.

I don't know about OMAP4, but on OMAP3 the register contents are only
lost when DSS goes to OFF mode. If you just turn off the clocks and OFF
mode is not enabled in the PM, context restore is not needed. I am not
sure of the current status of OFF mode in the mainline kernel.

However, for some reason DSS works fine on my Overo board. I would
imagine that it would break also if OFF is enabled for all omap
boards...

As for get_last_off_on_transaction_id(), it seems to be called
get_context_loss_count() in the mainline kernel and returns u32, not
int. I haven't tested it, but get_last_off_on_transaction_id pointer in
the dss platform data should be set to get_context_loss_count in the
board file (or in arch/arm/plat-omap/display.c if using the dss2 tree).

 Tomi



  reply	other threads:[~2011-03-14  9:24 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10 10:44 [PATCH v5 00/10] OMAP4 : DSS2 : HDMI support on OMAP4 Mythri P K
2011-03-10 10:44 ` [PATCH v5 01/10] OMAP4 : DSS2 : Add display type HDMI to DSS2 Mythri P K
2011-03-10 10:44   ` [PATCH v5 02/10] OMAP4 : DSS2 : HDMI: Select between HDMI VENC clock source Mythri P K
2011-03-10 10:44     ` [PATCH v5 03/10] OMAP4 : DSS2 : HDMI: Dispc gamma enable set/reset function for TV Mythri P K
2011-03-10 10:44       ` [PATCH v5 04/10] OMAP4 : DSS2 : HDMI: HDMI driver header file addition Mythri P K
2011-03-10 10:44         ` [PATCH v5 05/10] OMAP4 : DSS2 : HDMI: HDMI driver addition in the DSS Mythri P K
2011-03-10 10:44           ` [PATCH v5 06/10] OMAP4 : DSS2 : HDMI: HDMI panel " Mythri P K
2011-03-10 10:44             ` [PATCH v5 07/10] OMAP4 : DSS2 : HDMI: Add makefile and kconfig changes to enable HDMI in OMAP4 Mythri P K
2011-03-10 10:44               ` [PATCH v5 08/10] OMAP4 : DSS : HDMI: Call to HDMI module init to register driver Mythri P K
2011-03-10 10:44                 ` [PATCH v5 09/10] OMAP4 : HDMI : Add HDMI structure in the board file for OMAP4 SDP Mythri P K
2011-03-10 10:44                   ` [PATCH v5 10/10] OMAP4 : HDMI : Add HDMI structure in the board file for OMAP4 PANDA Mythri P K
2011-03-15  4:23                     ` Tomi Valkeinen
2011-03-15 14:47                       ` John S
2011-03-10 14:04                 ` [PATCH v5 08/10] OMAP4 : DSS : HDMI: Call to HDMI module init to register driver Tomi Valkeinen
2011-03-10 13:59               ` [PATCH v5 07/10] OMAP4 : DSS2 : HDMI: Add makefile and kconfig changes to enable HDMI in OMAP4 Tomi Valkeinen
2011-03-10 13:58           ` [PATCH v5 05/10] OMAP4 : DSS2 : HDMI: HDMI driver addition in the DSS Tomi Valkeinen
2011-03-10 13:52       ` [PATCH v5 03/10] OMAP4 : DSS2 : HDMI: Dispc gamma enable set/reset function for TV Tomi Valkeinen
2011-05-05 13:50       ` Laurent Pinchart
2011-03-10 13:49     ` [PATCH v5 02/10] OMAP4 : DSS2 : HDMI: Select between HDMI VENC clock source Tomi Valkeinen
2011-03-10 13:48   ` [PATCH v5 01/10] OMAP4 : DSS2 : Add display type HDMI to DSS2 Tomi Valkeinen
2011-03-10 16:53     ` Aaro Koskinen
2011-03-10 13:44 ` [PATCH v5 00/10] OMAP4 : DSS2 : HDMI support on OMAP4 Tomi Valkeinen
2011-03-10 14:45   ` Stephan Raue
2011-03-10 14:51     ` Tomi Valkeinen
2011-03-11  0:07       ` Stephan Raue
2011-03-11  6:16         ` K, Mythri P
2011-03-11  7:24           ` Tomi Valkeinen
2011-03-11 13:23             ` Hiremath, Vaibhav
2011-03-14  8:35               ` Hiremath, Vaibhav
2011-03-14  9:24                 ` Tomi Valkeinen [this message]
2011-03-14  9:35                   ` Hiremath, Vaibhav
2011-03-16  6:45                     ` Tomi Valkeinen
2011-03-16  6:47                       ` Hiremath, Vaibhav
2011-03-11  7:12     ` Tomi Valkeinen
2011-03-11  8:43       ` Stephan Raue
2011-03-11 13:22         ` Tomi Valkeinen
2011-03-11 16:18           ` Stephan Raue
2011-03-11 18:27             ` Tomi Valkeinen
2011-03-11 18:42               ` Stephan Raue
2011-03-12  6:51                 ` K, Mythri P
2011-03-13 14:32                   ` Stephan Raue
2011-03-13 16:20                     ` Stephan Raue
2011-03-16  6:51                       ` Tomi Valkeinen
2011-03-16 10:53                         ` K, Mythri P
2011-03-16 10:59                           ` Tomi Valkeinen
2011-03-16 23:49                           ` Stephan Raue
2011-03-17 11:11                             ` Tomi Valkeinen
2011-03-17 16:20                               ` Janorkar, Mayuresh
2011-03-17 20:16                                 ` Stephan Raue
2011-03-17 21:13                                   ` Stephan Raue
2011-03-17 21:34                                     ` Stephan Raue
2011-03-18  3:45                                     ` Tomi Valkeinen
2011-03-18  5:43                             ` Anand Gadiyar
2011-03-18  5:43                             ` Anand Gadiyar
2011-03-18  6:17                               ` Gadiyar, Anand
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-18  5:52                             ` Anand Gadiyar
2011-03-14 10:37   ` Jan, Sebastien
2011-03-15  4:06     ` Tomi Valkeinen
2011-03-15  4:38       ` K, Mythri P
2011-03-10 15:06 ` Tomi Valkeinen
2011-03-11  8:24   ` K, Mythri P
2011-03-16  8:32     ` Tomi Valkeinen

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=1300094686.2060.101.camel@lappyti \
    --to=tomi.valkeinen@ti.com \
    --cc=hvaibhav@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=mailinglists@openelec.tv \
    --cc=mythripk@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 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).