linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] mackerel: Do not enable TMU timer in default config
Date: Mon, 27 Feb 2012 06:06:33 +0000	[thread overview]
Message-ID: <20120227060633.GI9994@linux-sh.org> (raw)
In-Reply-To: <1329111377-15676-1-git-send-email-horms@verge.net.au>

On Sun, Feb 26, 2012 at 11:57:01PM +0100, Rafael J. Wysocki wrote:
> On Thursday, February 23, 2012, Simon Horman wrote:
> > I have discussed this a little with Magnus Damm and he is of
> > the opinion that this problem likely relates to an interaction
> > between TMU and power domains and that a full fix would be difficult
> > within the 3.3 time-frame.
> 
> From my inspection of the sh_tmu driver it looks like that driver doesn't
> support power management and the device it handles isn't taken into account
> in our PM domains configuration (it belongs to the A4R domain, so that
> domain can't be powered off while the driver is present).
> 
> For this reason, I propose to apply the appended change (which reflects the
> current status of the driver AFAICS) for now and revisit the driver at one
> point in future.
> 
This is just more band-aiding, and is functionally no different from
disabling the TMU driver in the defconfig.

No, the TMU driver doesn't support power management, as support was never
added. Presently none of the sh clocksource/clockevent drivers do, and
we're certainly not going to be doing a !PM dependency for those, either.

At present we do have the clock framework interaction, but there are also
fundamental ordering issues there with regards to use as an early timer
(something I don't expect the power domains code has any concept of,
either). If the device needs to be included in the A4R domain then patches to
setup-sh7372.c doing that are fine, but I'm not interested in symptom
patches that only attempt to sweep the problem under the rug.

Note that none of the MTU2/CMT/TMU drivers have been touched in ages, so
the idea that regressions were introduced by any of them or that they're
doing something wrong now is utterly absurd. If the power domain code
wants to change the rules, that's fine, but disabling stuff randomly that
you or Magnus failed to take in to account at the time is not.

The options as I see it are any of:

	- Fix the driver(s) (possibly not much time left now, due to all
	  of the time wasted on trying to fix the symptoms instead of the
	  problem).
	- Ensure the TMU bits are represented in the appropriate power
	  domain.
	- Revert whatever change prevented PM && TMU from booting when it
	  was something that always worked before. It can be re-applied
	  when the change is done in less of a half-assed fashion.

  parent reply	other threads:[~2012-02-27  6:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-13  5:36 [PATCH] mackerel: Do not enable TMU timer in default config Simon Horman
2012-02-13 23:33 ` Paul Mundt
2012-02-14  0:35 ` Simon Horman
2012-02-23 10:06 ` Simon Horman
2012-02-23 15:30 ` Paul Mundt
2012-02-23 22:14 ` Rafael J. Wysocki
2012-02-26 22:57 ` Rafael J. Wysocki
2012-02-27  0:55 ` Simon Horman
2012-02-27  6:06 ` Paul Mundt [this message]
2012-02-27 22:30 ` Rafael J. Wysocki
2012-02-28  1:23 ` Rafael J. Wysocki
2012-02-28  1:38 ` Simon Horman
2012-02-28  6:09 ` Paul Mundt
2012-02-28  9:29 ` Simon Horman
2012-02-28 23:59 ` Rafael J. Wysocki
2012-02-29  1:32 ` Simon Horman
2012-03-02 23:27 ` Rafael J. Wysocki

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=20120227060633.GI9994@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.org \
    /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).