All of lore.kernel.org
 help / color / mirror / Atom feed
* AW: RE: RE: RE: RE: RE: No C-States any longer...
@ 2011-06-15  9:03 Carsten Schiers
  2011-06-15 13:06 ` Konrad Rzeszutek Wilk
  2011-06-16  2:06 ` Tian, Kevin
  0 siblings, 2 replies; 16+ messages in thread
From: Carsten Schiers @ 2011-06-15  9:03 UTC (permalink / raw)
  To: Tian, Kevin, Ian Campbell; +Cc: xen-devel, Yu, Ke

Thanks for your support. 

So the plan is to run the very kernel (2.6.32.40 from Jeremy's git) natively, without Xen, and check 
what acpi.debug and my printks are reporting?

Would the other check be to change pr_id from -1 to 0 by some helper code in the right place?

Have I correctly understood that my BIOS seems to implement C-States through FADT instead of _CST, 
which is ok generally, but the FADT PBLK is not correctly set (maybe because it worries about the -1)?

By the way: 

  - I dom0_vcpus_pin and restrict Dom0 to only use one vcpu in xend-config.sxp
  - I used Xen/Debian Squeeze PVOPS Xen Kernel on the Intel Box
  - The same combo fails on the AMD box, latest PVOPS, too. Further testing done with latest PVOPS.

Everything used to work with Xen / 2.6.18 Dom0 Kernel, but I cannot check that, because it will not 
boot any longer, because it doesn't find the root system. I currently concentrate on the C-State 
issue.

Carsten.


----- Originalnachricht -----
Von: "Tian, Kevin" <kevin.tian@intel.com>
Gesendet: Mit, 15.6.2011 10:39
An: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Carsten Schiers <carsten@schiers.de> ; "Yu, Ke" <ke.yu@intel.com> ; xen-devel <xen-devel@lists.xensource.com>
Betreff: RE: RE: RE: RE: RE: RE: [Xen-devel] No C-States any longer...

> From: Ian Campbell [mailto:Ian.Campbell@citrix.com]
> Sent: Wednesday, June 15, 2011 4:35 PM
> 
> On Wed, 2011-06-15 at 09:11 +0100, Tian, Kevin wrote:
> > > From: Carsten Schiers [mailto:carsten@schiers.de]
> > > Sent: Tuesday, June 14, 2011 4:27 AM
> > >
> > > One step further: the problem is that pr->pblk is not set, thus
> > > acpi_processor_get_power_info_fadt fails.
> > > Knowing this, I found an error in the ACPI_DEBUG output that
> > > corresponds:
> > >
> > > [   17.062739] processor_xen-0222 [00] xen_acpi_processor_get:
> Processor
> > > [-1:0]
> > > [   17.062902] processor_xen-0225 [00] xen_acpi_processor_get: No PBLK
> > > (NULL address)
> >
> > this looks a bit strange. how about the native log?
> >
> > >
> > > It does this for all processors. pr_id is always -1, pr->acpi_id
> > > counting up from 0 to 2.
> >
> > what's your dom0 vcpu number? and how about physical cpu?
> 
> Wasn't there some oddity in the Xen ACPI PM support due to the
> disconnect between VCPU and PCPU? I thought it resulted in some CPU id
> or other being reported back as -1, in much this manner.

yes, the existing tricky changes are mostly used to tackle this disconnection.

> 
> There's some tweaking of this stuff in e.g.
> xen_acpi_processor_get_power_info(). But equally
> xen_acpi_processor_get_info() has a bunch of cases for the != -1 case.
> 
> Does the dom0_vcpus_pin hypervisor option workaround this sort of thing?

We don't want to add that limitation to have dom0 vcpu number same as 
physical cpu number to use PM features. But yes Carsten can try use
same number to see whether it works for him. If it works, then there's other
corner cases we didn't capture. But since this works on his Intel box, which
I guess same configuration is used, I'd think it may come from some oddity
in AMD box's ACPI table which is not well handled by either common ACPI
code or Xen specific stubs.

Thanks
Kevin

> 
> This changeset refers to the -1 too:
> 
> commit 68320323a51c2378aca433c76157d9e66104ff1e
> Author: Jiang, Yunhong <yunhong.jiang@intel.com>
> Date:   Tue Sep 14 14:41:52 2010 -0700
> 
>     xen/acpi: Add cpu hotplug support
> 
>     Add physical CPU hotplug support to origin/xen/next-2.6.32 branch.
>     Please notice that, even with this change, the acpi_processor->id is
>     still always -1. This is because several workaround in PM side depends
>     on acpi_processor->id == -1. As the CPU hotplug logic does not depends
>     on acpi_processor->id, I'd still keep it no changes.
> 
>     But we need change the acpi_processor->id in the future.
> 
>     Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
>     Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
> 
> Ian.
> 
> > > Any help is welcome, but I will analyze further...
> >
> > Current Dom0 depends on several Xen specific functions like
> xen_acpi_get_power_info
> > you mentioned earlier, which is a copy from native acpi_get_power_info with
> xen
> > specific tweaks added. there's possibility that in your environment general
> ACPI code
> > is changed which is not reflected in Xen specific versions.
> >
> > Thanks
> > Kevin
> >
> > >
> > > Carsten.
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Carsten Schiers
> > > Gesendet: Montag, 13. Juni 2011 15:22
> > > An: ke.yu; kevin.tian
> > > Cc: xen-devel
> > > Betreff: AW: RE: RE: RE: RE: RE: [Xen-devel] No C-States any longer...
> > >
> > > >>I will try to boot native Linux in order to verify 100%
> > > >> that the tables
> > > >> are there.
> > > >
> > > >yes, that's interesting data to compare.
> > >
> > > I have booted with a Live Linux and dumped acpi tables. Those are 100%
> > > identical with those
> > > I received from Dom0. I will now start looking into
> > > acpi_processor_get_power_info_fadt And
> > > check, why it is returning -ENODEV.
> > >
> > > Carsten.
> > >
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel
> > >
> >
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> 

^ permalink raw reply	[flat|nested] 16+ messages in thread
* AW: RE: RE: RE: RE: RE: No C-States any longer...
@ 2011-06-16  6:22 Carsten Schiers
  2011-06-16  6:30 ` Tian, Kevin
  0 siblings, 1 reply; 16+ messages in thread
From: Carsten Schiers @ 2011-06-16  6:22 UTC (permalink / raw)
  To: Tian, Kevin, mark.langsdorf; +Cc: xen-devel, Ian Campbell, Yu, Ke

>In your case there's no _CST found, and then no PBLK found. 

The only thing that are giveing me hope are:

  - it worked once (Xenified 2.6.18.8)
  - FADT contains C2/C3 Latency information (_CST Support is 00 BTW)

>do you mean the latest PVOPS from Konzad? I don't think Cstate/Pstate patches
>have been carried there, which still stay in Jeremy's tree.

Currently I tried with stable 2.6.32.x from Jeremy and Debian Squeeze, as Konrad
said, his 2.6.39.x would expose C-States for him, what did not before, I will try
his 2.6.39.x next. I can check this and native boot results tonight.

>Since this is the AMD box which I'm not familiar with, also CC Mark here who is
>the owner for power management on AMD boxes.

Mark, I realy hope you have an idea. This is - by the way - the X3 400e I just bought
because I never succeeded in getting TSC hickup-free >2.6.18 systems with my 4050e, 
you eventually remember...?

Carsten.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* AW: RE: RE: RE: RE: RE: No C-States any longer...
@ 2011-06-15  9:12 Carsten Schiers
  2011-06-16  2:09 ` Tian, Kevin
  0 siblings, 1 reply; 16+ messages in thread
From: Carsten Schiers @ 2011-06-15  9:12 UTC (permalink / raw)
  To: Tian, Kevin, Yu, Ke; +Cc: xen-devel

> this looks a bit strange. how about the native log?

I have not done a log with ACPI_DEBUG enabled. Will do so tonight or tomorrow night.

> what's your dom0 vcpu number? and how about physical cpu?

dom0_vcpu_pin/xend-config.sxp result in the following excerpt of xm vcpu-list:

  Name          ID          VCPU          CPU           State          ...
  Domain-0      0           0             0             r--            ...

  Domain-0      0           1             -             --p            ...

  Domain-0      0           2             -             --p            ...
  ...

> there's possibility that in your environment general ACPI code
> is changed which is not reflected in Xen specific versions. 

I have not understood that.

Thanks,
Carsten.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: RE: RE: RE: RE: No C-States any longer...
@ 2011-06-12  9:01 Tian, Kevin
  2011-06-13 13:21 ` AW: " Carsten Schiers
  0 siblings, 1 reply; 16+ messages in thread
From: Tian, Kevin @ 2011-06-12  9:01 UTC (permalink / raw)
  To: Carsten Schiers, Yu, Ke; +Cc: xen-devel

> From: Carsten Schiers [mailto:carsten@schiers.de]
> Sent: Saturday, June 11, 2011 5:26 PM
> 
> I switched on ACPI_DEBUG but the result is not surprising:
> 
> Jun 11 10:56:48 data kernel: [  186.897468]  nsutils-0461
> [ffff880002b1db00] [00] ns_build_internal_name: Returning
> [ffff88000ed14988] (rel) "_CST"
> Jun 11 10:56:48 data kernel: [  186.897473]  utmutex-0257
> [ffff880002b1db00] [00] ut_acquire_mutex      : Thread ffff880002b1db00
> attempting to acquire Mutex [ACPI_MTX_Namespace]
> Jun 11 10:56:48 data kernel: [  186.897479]      osl-0872
> [ffff880002b1db00] [00] os_wait_semaphore     : Waiting for
> semaphore[ffff88000fc2e1e0|1|65535]
> Jun 11 10:56:48 data kernel: [  186.897485]      osl-0891
> [ffff880002b1db00] [00] os_wait_semaphore     : Acquired
> semaphore[ffff88000fc2e1e0|1|65535] utmutex-0265 [ffff880002b1db00] [00]
> ut_acquire_mutex      : Thread ffff880002b1db00 acquired Mutex
> [ACPI_MTX_Namespace]
> Jun 11 10:56:48 data kernel: [  186.897496] nsaccess-0399
> [ffff880002b1db00] [00] ns_lookup             : Searching relative to
> prefix scope [C002] (ffff88000fc2e4a0)
> Jun 11 10:56:48 data kernel: [  186.897501] nsaccess-0511
> [ffff880002b1db00] [00] ns_lookup             : Simple Pathname (1
> segment, Flags=2)
> Jun 11 10:56:48 data kernel: [  186.897506]   nsdump-0087
> [ffff880002b1db00] [00] ns_print_pathname     : [_CST]
> Jun 11 10:56:48 data kernel: [  186.897515] nssearch-0114
> [ffff880002b1db00] [00] ns_search_one_scope   : Searching \_PR_.C002
> (ffff88000fc2e4a0) For [_CST] (Untyped)
> Jun 11 10:56:48 data kernel: [  186.897521] nssearch-0179
> [ffff880002b1db00] [00] ns_search_one_scope   : Name [_CST] (Untyped)
> not found in search in scope [C002] ffff88000fc2e4a0 first child
> ffff88000fa54700
> Jun 11 10:56:48 data kernel: [  186.897528] nssearch-0390
> [ffff880002b1db00] [00] ns_search_and_enter   : _CST Not found in
> ffff88000fc2e4a0 [Not adding]
> Jun 11 10:56:48 data kernel: [  186.897533] nsaccess-0572
> [ffff880002b1db00] [00] ns_lookup             : Name [_CST] not found in
> scope [C002] ffff88000fc2e4a0
> Jun 11 10:56:48 data kernel: [  186.897539]  nsutils-0876
> [ffff880002b1db00] [00] ns_get_node           : _CST, AE_NOT_FOUND
> Jun 11 10:56:48 data kernel: [  186.897544]  utmutex-0299
> [ffff880002b1db00] [00] ut_release_mutex      : Thread ffff880002b1db00
> releasing Mutex [ACPI_MTX_Namespace]
> Jun 11 10:56:48 data kernel: [  186.897549]      osl-0911
> [ffff880002b1db00] [00] os_signal_semaphore   : Signaling
> semaphore[ffff88000fc2e1e0|1]
> Jun 11 10:56:48 data kernel: [  186.897555]
> acpi_processor_get_power_info_cst bad cst
> Jun 11 10:56:48 data kernel: [  186.897557] processor_idle-0363
> [ffff880002b1db00] [00] processor_get_power_in: No _CST, giving up
> Jun 11 10:56:48 data kernel: [  186.897562]
> acpi_processor_get_power_info result=-19, -ENODEV=-19
> Jun 11 10:56:48 data kernel: [  186.897563]
> acpi_processor_get_power_info analyzes fadt
> Jun 11 10:56:48 data kernel: [  186.897565]
> acpi_processor_get_power_info result=-19, -ENODEV=-19
> Jun 11 10:56:48 data kernel: [  186.897567]
> acpi_processor_get_power_info we have a result
> Jun 11 10:56:48 data kernel: [  186.897569]
> xen_acpi_processor_get_power_info returns=-19
> Jun 11 10:56:48 data kernel: [  186.897570]
> xen_acpi_processor_power_init got power info
> Jun 11 10:56:48 data kernel: [  186.897572]
> xen_acpi_processor_power_init not power flags
> Jun 11 10:56:48 data kernel: [  186.897574]     scan-0568
> [ffff880002b1db00] [00] bus_driver_init       : Driver successfully
> bound to device
> Jun 11 10:56:48
> 
> It doesn't find _CST, as we did not in the extract of acpiextract.
> Unfortunately, the old, working Xen 4.1.0/Linux 2.6.18 combo doesn't
> boot any longer, because
> I upgraded to Debian Squeeze already and something doesn't work with the
> udev version. I will try to boot native Linux in order to verify 100%
> that the tables
> are there.

yes, that's interesting data to compare.

> 
> If we already assume this, the cause should be in the way how pvops
> Linux is mapping the tables into the system, shouldn't it`

Or the DSDT table may be corrupted by some undesired operation, however
random corruption may lead to more errors than missing _CST here. Did you
change BIOS setting recently?

Thanks
Kevin 

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

end of thread, other threads:[~2011-06-17  1:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15  9:03 AW: RE: RE: RE: RE: RE: No C-States any longer Carsten Schiers
2011-06-15 13:06 ` Konrad Rzeszutek Wilk
2011-06-15 13:17   ` AW: " Carsten Schiers
2011-06-15 16:22   ` Konrad Rzeszutek Wilk
2011-06-15 18:00     ` AW: " Carsten Schiers
2011-06-16  2:12   ` Tian, Kevin
2011-06-16  2:06 ` Tian, Kevin
2011-06-16 13:32   ` Konrad Rzeszutek Wilk
2011-06-16 19:33   ` AW: " Carsten Schiers
2011-06-17  1:30     ` Tian, Kevin
  -- strict thread matches above, loose matches on Subject: below --
2011-06-16  6:22 AW: " Carsten Schiers
2011-06-16  6:30 ` Tian, Kevin
2011-06-15  9:12 AW: " Carsten Schiers
2011-06-16  2:09 ` Tian, Kevin
2011-06-12  9:01 Tian, Kevin
2011-06-13 13:21 ` AW: " Carsten Schiers
2011-06-13 20:27   ` Carsten Schiers
2011-06-15  8:11     ` Tian, Kevin
2011-06-15  8:34       ` Ian Campbell
2011-06-15  8:39         ` Tian, Kevin
2011-06-15  8:15   ` Tian, Kevin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.