All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cousson, Benoit" <b-cousson@ti.com>
To: Paul Walmsley <paul@pwsan.com>, "Semwal, Sumit" <sumit.semwal@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"tony@atomide.com" <tony@atomide.com>,
	"Hilman, Kevin" <khilman@ti.com>,
	"Guruswamy, Senthilvadivu" <svadivu@ti.com>,
	"Valkeinen, Tomi" <tomi.valkeinen@ti.com>
Subject: Re: [PATCH] OMAP2/3: VENC hwmod: add OCPIF_SWSUP_IDLE flag to interface
Date: Fri, 4 Mar 2011 11:57:56 +0100	[thread overview]
Message-ID: <4D70C5B4.3080401@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1103032300480.10981@utopia.booyaka.com>

+ Tomi

Hi Paul,

On 3/4/2011 7:02 AM, Paul Walmsley wrote:
>
> According to the hwmod interface data, the DSS submodule "VENC" uses a
> clock, "dss_54m_fck"/"dss_tv_fck", which the PRCM cannot autoidle.  By
> default, the hwmod code assumes that interface clocks can be autoidled
> by the PRCM.  When the interface clock can't be autoidled by the PRCM,
> those interfaces must be marked with the OCPIF_SWSUP_IDLE flag.
> Otherwise, the "interface clock" will always have a non-zero use
> count, and the device won't enter idle.  This problem was observed on
> N8x0.
>
> Fix the immediate problem by marking the VENC interface with the
> OCPIF_SWSUP_IDLE flag.  But it's not clear that
> "dss_54m_fck"/"dss_tv_fck" is really the correct interface clock for
> VENC.  It may be that the VENC interface should use a
> hardware-autoidling interface clock.  This is the situation on OMAP4,
> which uses "l3_div_ck" as the VENC interface clock, which can be
> autoidled by the PRCM.  Clarification from TI is needed.

Yep, this is clearly wrong, all DSS modules are using the same 
interconnect port from the L4, thus they should all use the dss_ick as 
interface clock and not the functional clock dss_tv_fck.

There is something strange with that module because the main_clk is 
attached to dss1_alwon_fck instead of dss_tv_fck.

I'm quite sure that both are needed to make that module work and that's 
why it was added as an interface clock.
In theory, one of them should be an optional clock like on OMAP4.


Sumit,

Could you explain the rational behind the usage of dss_tv_fck as an iclk 
and dss1_alwon_fck as a fclk?

Thanks,
Benoit

WARNING: multiple messages have this Message-ID (diff)
From: b-cousson@ti.com (Cousson, Benoit)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] OMAP2/3: VENC hwmod: add OCPIF_SWSUP_IDLE flag to interface
Date: Fri, 4 Mar 2011 11:57:56 +0100	[thread overview]
Message-ID: <4D70C5B4.3080401@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1103032300480.10981@utopia.booyaka.com>

+ Tomi

Hi Paul,

On 3/4/2011 7:02 AM, Paul Walmsley wrote:
>
> According to the hwmod interface data, the DSS submodule "VENC" uses a
> clock, "dss_54m_fck"/"dss_tv_fck", which the PRCM cannot autoidle.  By
> default, the hwmod code assumes that interface clocks can be autoidled
> by the PRCM.  When the interface clock can't be autoidled by the PRCM,
> those interfaces must be marked with the OCPIF_SWSUP_IDLE flag.
> Otherwise, the "interface clock" will always have a non-zero use
> count, and the device won't enter idle.  This problem was observed on
> N8x0.
>
> Fix the immediate problem by marking the VENC interface with the
> OCPIF_SWSUP_IDLE flag.  But it's not clear that
> "dss_54m_fck"/"dss_tv_fck" is really the correct interface clock for
> VENC.  It may be that the VENC interface should use a
> hardware-autoidling interface clock.  This is the situation on OMAP4,
> which uses "l3_div_ck" as the VENC interface clock, which can be
> autoidled by the PRCM.  Clarification from TI is needed.

Yep, this is clearly wrong, all DSS modules are using the same 
interconnect port from the L4, thus they should all use the dss_ick as 
interface clock and not the functional clock dss_tv_fck.

There is something strange with that module because the main_clk is 
attached to dss1_alwon_fck instead of dss_tv_fck.

I'm quite sure that both are needed to make that module work and that's 
why it was added as an interface clock.
In theory, one of them should be an optional clock like on OMAP4.


Sumit,

Could you explain the rational behind the usage of dss_tv_fck as an iclk 
and dss1_alwon_fck as a fclk?

Thanks,
Benoit

  reply	other threads:[~2011-03-04 10:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04  6:02 [PATCH] OMAP2/3: VENC hwmod: add OCPIF_SWSUP_IDLE flag to interface Paul Walmsley
2011-03-04  6:02 ` Paul Walmsley
2011-03-04 10:57 ` Cousson, Benoit [this message]
2011-03-04 10:57   ` Cousson, Benoit

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=4D70C5B4.3080401@ti.com \
    --to=b-cousson@ti.com \
    --cc=khilman@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=sumit.semwal@ti.com \
    --cc=svadivu@ti.com \
    --cc=tomi.valkeinen@ti.com \
    --cc=tony@atomide.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.