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

Re: [Xen-devel] cpufreq implementation for OMAP under xen hypervisor.

It't not a problem. TI BSPs usually contain examples. There is another problems which prevent me developing this direction.

With best regards,

On Wed, Sep 10, 2014 at 9:37 PM, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:
On Wed, 10 Sep 2014, Vitaly Chernooky wrote:
> Hi Andrii,
> On Wed, Sep 10, 2014 at 1:15 PM, Andrii Tseglytskyi <andrii.tseglytskyi@xxxxxxxxxxxxxxx> wrote:
>Â Â Â ÂHi,
>Â Â Â Â>> In case where dom0 has more vcpus than pcpus on the
>Â Â Â Â>> system, the dom0 kernel is the most bug-prone place for pcpu cpufreq governor. So I still believe that
>Â Â Â Âseparate driver
>Â Â Â Â>> domain with direct 1:1 vcpu:pcpu mapping is the best place for cpufreq governor. But it also reasonable to
>Â Â Â Ârun cpufreq
>Â Â Â Â>> governor as userspace daemon in dom0.
>Â Â Â Â>>
>Â Â Â Â>> Also what do you think about PM QoS support? On bare metal cpufreq is tightly integrated with PM QoS and
>Â Â Â Âintensively
>Â Â Â Â>> cooperate in frequency scaling.
>Â Â Â Â>
>Â Â Â Â> Device PM needs to be done in Dom0.
>Â Â Â Â> CPU an Platform level PM architecturally belongs to Xen, but I do
>Â Â Â Â> understand that to do that in Xen we would need to add lots of code to
>Â Â Â Â> the hypervisor. There is no silver bullet here.
>Â Â Â Â>
>Â Â Â Â> A driver domain with 1:1 vcpu:pcpu mapping could work, but what kernel
>Â Â Â Â> are you going to use for that? Linux? Wouldn't Linux be too big for a
>Â Â Â Â> cpufreq driver domain, especially in embedded deployments? I think it
>Â Â Â Â> would need at least 32MB to run.
>Â Â Â Â>
>Â Â Â ÂI would suggest not to do this. Driver domain will need to share the
>Â Â Â Âsame HW with dom0, which is impossible to implement. Good examples are
>Â Â Â ÂI2C, which is needed for Display and for Cpufreq, and it cannot be
>Â Â Â Âshared between domains. (At least in current Linux kernel it won't be
>Â Â Â Âeasy to implement). dom0 is the best place to do cpufreq.
> What do you think about cpufreq in dom0 userspace?

Would you write an i2c driver in userspace? How would you suggest to
do the frequency and voltage changes in dom0 userspace otherwise?

> With best regards,
> Â
>Â Â Â ÂRegards,
>Â Â Â ÂAndrii
>Â Â Â Â--
>Â Â Â ÂAndrii Tseglytskyi | Embedded Dev
>Â Â Â ÂGlobalLogic
>Â Â Â Âwww.globallogic.com
> --
> Vitaly Chernooky |ÂSenior Developer - Product Engineering and Development
> GlobalLogic
> P +380.44.4929695 ext.1136 M +380.98.7920568 S cvv_2k
> www.globallogic.com
> http://www.globallogic.com/email_disclaimer.txt

Vitaly Chernooky |ÂSenior Developer - Product Engineering and Development
P +380.44.4929695 ext.1136 M +380.98.7920568 S cvv_2k

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.