WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

AW: RE: RE: RE: [Xen-devel] No C-States any longer...

To: "kevin.tian" <kevin.tian@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: AW: RE: RE: RE: [Xen-devel] No C-States any longer...
From: "Carsten Schiers" <carsten@xxxxxxxxxx>
Date: Fri, 10 Jun 2011 16:56:17 +0200
Cc:
Delivery-date: Fri, 10 Jun 2011 07:57:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple; d=mail.zeus06.de; h=date: from:to:message-id:in-reply-to:subject:mime-version: content-type:content-transfer-encoding; q=dns/txt; s=beta; bh=nO XcoGEgqJAGfXDhyP7P2uaFFQCj+CGAcqpTijKTB+Q=; b=hCv1DS8ESgYXbTSFnt Y64SEsekQlMqPrvqpUb9xmVRRkRVTyaepYz+aXpQ+0qPKPefrgIfmHsphY2iA9v0 cEa6EuFBr9RaCsdgMfw1Jw0lJGuOXLkwCW/u8aPWiUJYQOmcfABVQs6jeqX7guPe hCQD3QSLuteDQjsf/r9b9ExRg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <625BA99ED14B2D499DC4E29D8138F1505CC5DB58AC@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Some in-between notes, if someone is better in analyzing the code. There 
is the following sequence
In drivers/scpi/processor_idle.c:

        result = acpi_processor_get_power_info_cst(pr);

        if (result == -ENODEV)
                result = acpi_processor_get_power_info_fadt(pr);

        if (result)
                return result;

        acpi_processor_get_power_info_default(pr);

On a working Intel machine, it will go through it like this:

  - acpi_processor_get_power_info_cst, which returns 0
  - acpi_processor_get_power_info_default
  - later acpi_processor_power_verify will find some c-states

On my non-working AMD machine, it will go through like this:
  - acpi_processor_get_power_info_cst, which returns -ENODEV
  - acpi_processor_get_power_info_fadt, which also return -ENODEV
  - this result is returned

The returned result -ENODEV is cascaded up to the call in 
xen_acpi_processor_power_init, but there
nothing is checked or done.

I will now try to find the root cause (acpi_processor_get_power_info_cst 
is to be checked next).

Carsten.


-----Ursprüngliche Nachricht-----
Von: Tian, Kevin [mailto:kevin.tian@xxxxxxxxx] 
Gesendet: Freitag, 10. Juni 2011 10:49
An: Carsten Schiers; xen-devel
Betreff: RE: RE: RE: [Xen-devel] No C-States any longer...

> From: Carsten Schiers [mailto:carsten@xxxxxxxxxx]
> Sent: Friday, June 10, 2011 3:09 AM
> 
> Through some adding of printk I was able at least to verify that for 
my
> 3 core CPU AMD Athlon X3 400e
> 
>   - xen_px_notifier is called six times
>   - Hypervisor is reporting XEN_PM_PX is called six times
>   - Hypervisor is never reporting XEN_PM_CX to have been called
>   - this is because xen_cx_notifier is never called.
>   -> set_cx_pminfo is never called.
> 
> What I will try to find out next is to check where xen_cx_notifier
> *should* be called. OS debugging is
> not realy my expertise, let's see whether you first can give me a hint
> or whether I am quicker to find
> it on my own.
> 

the entry point in dom0 looks like:

xen_acpi_processor_start
        xen_acpi_processor_power_init
                processor_cntl_xen_notify
                        xen_ops.pm_ops
                                xen_cx_notifier
                                        HYPERVISOR_dom0_op

Thanks
Kevin



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel