xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Is: drivers/cpufreq/cpufreq-xen.c Was:Re: [PATCH 2 of 2] linux-xencommons: Load processor-passthru
@ 2012-03-06 17:40 Konrad Rzeszutek Wilk
  2012-03-06 17:59 ` Dave Jones
  2012-03-07  8:18 ` Jan Beulich
  0 siblings, 2 replies; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-03-06 17:40 UTC (permalink / raw)
  To: Jan Beulich, davej
  Cc: xen-devel, Ian.Jackson, Ian.Campbell, Konrad Rzeszutek Wilk,
	stefano.stabellini

.. snip..
>> Both of them (acpi-cpufreq.c and powernow-k8.c) have a symbol
>> dependency on drivers/acpi/processor.c
>
> But them being 'm' or 'y' shouldn't matter in the end.

I thought you were saying it matters - as it should be done around the
same time as cpufreq drivers were loaded?
.. snip..
>> For a), this would mean some form of unregistering the existing
>> cpufreq scaling drivers.The reason
>
> Or loading before them (and not depending on them), thus
> preventing them from loading successfully.

I think what you are suggesting is that to write a driver in drivers/cpufreq/
that gets either started before the other ones (if built-in) or if as
a module gets
loaded from xencommons. That driver would then make the call
to acpi_processor_preregister_performance(),
acpi_processor_register_performance() and acpi_processor_notify_smm().
It would function as a cpufreq-scaling driver but
in reality all calls to it from cpufreq gov-* drivers would end up with nop.

Dave, would you be Ok with a driver like that in your tree?
>
>> for that is we want to use the generic ones (acpi-cpufreq and
>> powernow-k8) b/c they do all the filtering and parsing of the ACPI
>> data instead of re-implementing it in our own cpufreq-xen-scaling.

I don't know what I was reading, but the filtering/parsing looks be
done via those
acpi_processor_* calls. So it sounds like it could be done that way.

>> Thought one other option is to export both powernow-k8 and
>> acpi-cpufreq functions that do this and use them within the
>> cpufreq-xen-scaling-driver but that sounds icky.
>
> Indeed.
>
>> 2). Upload the power management information up to the hypervisor.
>
> Which doesn't require cpufreq drivers at all (in non-pv-ops we simply
> suppress the CPU_FREQ config option when XEN is set).

Heh.
>
> Jan
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-13 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 17:40 Is: drivers/cpufreq/cpufreq-xen.c Was:Re: [PATCH 2 of 2] linux-xencommons: Load processor-passthru Konrad Rzeszutek Wilk
2012-03-06 17:59 ` Dave Jones
2012-03-08  2:12   ` Konrad Rzeszutek Wilk
2012-03-13 16:46     ` Konrad Rzeszutek Wilk
2012-03-07  8:18 ` Jan Beulich

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).