Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Devel
Re: Workings/effectiveness of the xen-acpi-processor driver
 

Index | Next | Previous | View Flat


boris.ostrovsky at amd

May 1, 2012, 6:11 PM


Views: 522
Permalink
Re: Workings/effectiveness of the xen-acpi-processor driver [In reply to]

On 05/01/2012 08:47 PM, Konrad Rzeszutek Wilk wrote:
> On Tue, May 01, 2012 at 06:54:56PM -0400, Konrad Rzeszutek Wilk wrote:
>> On Tue, May 01, 2012 at 06:35:45PM -0400, Boris Ostrovsky wrote:
>>> On 05/01/2012 04:02 PM, Konrad Rzeszutek Wilk wrote:
>>>> On Thu, Apr 26, 2012 at 06:25:28PM +0200, Stefan Bader wrote:
>>>>> On 26.04.2012 17:50, Konrad Rzeszutek Wilk wrote:
>>>>>> On Wed, Apr 25, 2012 at 03:00:58PM +0200, Stefan Bader wrote:
>>>>>>> Since there have been requests about that driver to get backported into 3.2, I
>>>>>>> was interested to find out what or how much would be gained by that.
>>>>>>>
>>>>>>> The first system I tried was an AMD based one (8 core Opteron 6128 [at] 2GH). Which
>>>>>>> was not very successful as the drivers bail out of the init function because the
>>>>>>> first call to acpi_processor_register_performance() returns -ENODEV. There is
>>>>>>> some frequency scaling when running without Xen, so I need to do some more
>>>>>>> debugging there.
>>>
>>> I believe this is caused by the somewhat under-enlightened xen_apic_read():
>>>
>>> static u32 xen_apic_read(u32 reg)
>>> {
>>> return 0;
>>> }
>>>
>>> This results in some data, most importantly
>>> boot_cpu_physical_apicid, not being set correctly and, in turn,
>>> causes x86_cpu_to_apicid to be broken.
>>
>> What is the involvment of x86_cpu_to_apicid to acpi_processor_register_performance?
>> Or is this more of a stab in the dark?
>
> Ah, it is the acpi_get_cpuid that gets called by acpi_processor_add->acpi_processor_get_info.
>
> And this one:
> 201 #ifdef CONFIG_SMP
> 202 for_each_possible_cpu(i) {
> 203 if (cpu_physical_id(i) == apic_id)
> 204 return i;
> 205 }
> 206 #else
>
> where the cpu_physical_id(i) is per_cpu(x86_cpu_to_apicid, i).

Right. This and the fact that 'if (apicid == boot_cpu_physical_apicid)'
in generic_processor_info() is never true.

In the end, 'processors' per-cpu variable is not initialized for cpu 0
and that's what causes acpi_processor_register_performance() to fail.

>
> But it is curious that it has been working for me on AMD and Intel machines.
> Granted the only server boxes I've are Intel - don't have AMD server boxes at all.

I am also surprised that aside from some power inefficiencies and "BIOS
bug" warnings the system appeared reasonably OK. I'd think that with
APIC IDs messed up it would not run.

If Intel processors number cores starting with APICID=0 then you
wouldn't see any issues.

-boris

>
> Stefan, can you send the full dmesg output too please?
>



_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
http://lists.xen.org/xen-devel

Subject User Time
Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical Apr 25, 2012, 6:00 AM
    Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle Apr 26, 2012, 8:50 AM
        Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical Apr 26, 2012, 9:25 AM
            Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle Apr 26, 2012, 10:04 AM
                Re: Workings/effectiveness of the xen-acpi-processor driver pasik at iki May 6, 2012, 8:23 AM
                    Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 7, 2012, 10:33 AM
                        Re: Workings/effectiveness of the xen-acpi-processor driver pasik at iki May 7, 2012, 10:44 AM
            Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 1, 2012, 1:02 PM
                Re: Workings/effectiveness of the xen-acpi-processor driver boris.ostrovsky at amd May 1, 2012, 3:35 PM
                    Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 1, 2012, 3:54 PM
                        Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 1, 2012, 5:47 PM
                            Re: Workings/effectiveness of the xen-acpi-processor driver boris.ostrovsky at amd May 1, 2012, 6:11 PM
                                Re: Workings/effectiveness of the xen-acpi-processor driver JBeulich at suse May 2, 2012, 2:19 AM
                        Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 2, 2012, 7:56 AM
                    Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 2, 2012, 1:36 AM
                    Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 2, 2012, 8:01 AM
                        Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 2, 2012, 9:08 AM
                            Re: Workings/effectiveness of the xen-acpi-processor driver boris.ostrovsky at amd May 2, 2012, 10:06 AM
                                Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 2, 2012, 10:14 AM
                                    Re: Workings/effectiveness of the xen-acpi-processor driver boris.ostrovsky at amd May 2, 2012, 2:31 PM
                                        Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 2, 2012, 2:41 PM
                                            Re: Workings/effectiveness of the xen-acpi-processor driver boris.ostrovsky at amd May 2, 2012, 3:09 PM
                                                Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 2, 2012, 11:55 PM
                                                    Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 3, 2012, 3:00 AM
                                                Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 3, 2012, 5:58 AM
                                                    Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 3, 2012, 7:47 AM
                                                        Re: Workings/effectiveness of the xen-acpi-processor driver konrad at darnok May 3, 2012, 8:46 AM
                                                            Re: Workings/effectiveness of the xen-acpi-processor driver boris.ostrovsky at amd May 3, 2012, 10:02 AM
                                                            Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 3, 2012, 10:08 AM
                                                                Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 4, 2012, 1:00 AM
                                                Re: Workings/effectiveness of the xen-acpi-processor driver konrad.wilk at oracle May 3, 2012, 9:14 AM
                            Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 2, 2012, 2:29 PM
                Re: Workings/effectiveness of the xen-acpi-processor driver stefan.bader at canonical May 2, 2012, 1:22 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.