On Wed, Aug 12, 2009 at 01:58:06PM +0200, Pavel Machek wrote: > Hi! > > > May be having (to pick a number) 3 possible offline states for all > > platforms with one for halt equivalent and one for deepest possible that > > CPU can handle and one for deepest possible that platform likes for > > C-states may make sense. Will keeps things simpler in terms of usage > > expectations and possibly reduce the misuse oppurtubity? > > Maybe just going to the deepest offline state automatically is the > easiest option?
In a native system, I think we should the platform-specific code export what makes sense. That may be just the lowest possible state only. Or may be more than one. In a virtualized system, we would want to do at least the following - 1. An offline configuration state where the hypervisor can take the cpu back and allocate it to another VM. 2. A low-power state where the guest indicates it doesn't need the CPU (and can be put in low power state) but doesn't want to give up its allocated cpu share. IOW, no visible configuration changes. So, in any case we would probably want more than one states. > cpu hotplug/unplug should be rare-enough operation that the latencies > do not really matter, right? As of now, from the platform perspective, I don't think low-power state latencies matter in this code path. The only thing that might have any relevance is electrical power-off technology and whether there may be any h/w specific issues restricting its use. I don't know that there will be any, but it may not be a good idea to prevent platforms from requiring the use of multiple "offline" states. Thanks Dipankar _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev