Hi Ulf On Tue, 13 Dec 2011, Ulf Hansson wrote: > Guennadi Liakhovetski wrote: > > Some MMC hosts implement a fine-grained runtime PM, whereby they > > runtime-suspend and -resume the host interface on each transfer. This can > > negatively affect performance, if the user was trying to transfer data > > blocks back-to-back. This patch adds a PM QoS constraint to avoid such a > > throughput reduction. This constraint prevents runtime-suspending the > > device, if the expected wakeup latency is larger than 100us. > > > > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx> > > I think host drivers can use autosuspend with some ms delay for this instead. > This will mean that requests coming in bursts will not be affected (well only > the first request in the burst will suffer from the runtime resume latency). I think, Rafael is the best person to explain, why exactly this is not desired. In short, this is the wrong location to make such decisions and to define these criteria. The only thing, that the driver may be aware of is how quickly it wants to be able to wake up, if it got suspended. And it's already the PM subsystem, that has to decide, whether it can satisfy this requirement or not. Rafael will correct me, if my explanation is wrong. > I believe that runtime resume callback should ofcourse be optimized so they > are executed as fast as possible. But moreover, if they take more 100us, is > that really a reason for not executing them at all? I think it is a reason not to execute them during an intensive IO, yes. I cannot imagine a case, where if you have multiple IO requests waiting in the queue to your medium, you would want to switch off and immediately on again. Well, of course, such situations might exist, but then you just have to define and use a different governor on your system. This is also the flexibility, that this API is giving you. 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