Re: [PATCH 0/2] mmc: use PM QoS instead of delayed clock gating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 28 Jan 2012, Rafael J. Wysocki wrote:

> Hi,
> 
> On Thursday, January 19, 2012, Guennadi Liakhovetski wrote:
> > Hi all
> > 
> > I've already sent one of these two patches yesterday, but I forgot to 
> > include Rafael on the CC list and forgot to mention, that the patch should 
> > be treated as a regression fix and should go into 3.3. The reason why the 
> > commit
> > 
> > commit 7e09bedba1b87f9c7b34ba895b57baf0c36ccdc8
> 
> I think that should be 597dd9d79cfbbb1636d00a7fd0880355d9b20c41, right?
> 
> > Author: Sujit Reddy Thumma <sthumma@xxxxxxxxxxxxxx>
> > Date:   Mon Nov 14 13:53:29 2011 +0530
> > 
> >     mmc: core: Use delayed work in clock gating framework
> > 
> > can be considered a regression is, that it extends the powered-on time of 
> > the controller(s) and, possibly, of respective power domains by 200ms (by 
> > default), which is an essential change in behaviour in the negative 
> > direction.
> > 
> > However, if this is indeed the desired change, maybe the better approach 
> > now would be to modify this behaviour in individual drivers, which is 
> > exactly what the two patches in this series are doing.
> 
> I agree that doing such things at the framework level is not a good idea,
> which this example clearly shows.
> 
> The commit above had made the assumption that every platform would
> regard performance as more important than power saving and made a wholesale
> change that affected everyone.  In some cases, however, the change is not
> welcome and is not too easy to work around (because of the user space interface
> file added in the process).
> 
> Quite frankly, I think it would be better to simply revert that commit (along
> with the later one fixing it) at this point, because there may be more cases
> where it actually makes things worse.

Well, it's not my call to decide upon this, I don't know what the global 
MMC preference is, Chris?

> As for the patches, I'll reply to each of them separately.

Right, thanks for the review. Basically your comments are the same for 
both:

1. you'd like not just to change the default initial delay to 0, but to 
prohibit changing it from the userspace completely. For that we need 
Chris' opinion and that cannot be done in MMC host drivers so far, AFAICS. 
Actually, I'm not even sure I agree on this: if the user knows about that 
possibility and consciously adjusts the timeout - why should we prevent 
them from doing so? So far we don't have any user-space interface to 
change device PM QoS parameters, right? So, this gives at least some 
control to the user.

2. you suggest to separate delay=0 and PM QoS. Can do that of course, but 
I thought they were related and that gave us a chance to push PM QoS up 
sooner, rather than later, as a fix. Without it we'd potentially cause the 
controller and the domain to runtime suspend and resume between all 
transactions?

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux