From: Lin Ming <ming.m.lin@intel.com>
To: "Moore, Robert" <robert.moore@intel.com>
Cc: "Zhang, Rui" <rui.zhang@intel.com>,
"bubak@frix.fri.uniza.sk" <bubak@frix.fri.uniza.sk>,
linux-acpi <linux-acpi@vger.kernel.org>,
Len Brown <lenb@kernel.org>
Subject: RE: Namespace lookup failure error on QuadCore E5420
Date: Tue, 11 Nov 2008 09:14:59 +0800 [thread overview]
Message-ID: <1226366099.30025.36.camel@minggr.sh.intel.com> (raw)
In-Reply-To: <4911F71203A09E4D9981D27F9D8308580D6704B1@orsmsx503.amr.corp.intel.com>
On Tue, 2008-11-11 at 01:45 +0800, Moore, Robert wrote:
> The first question would be, what does Windows do with this?
>
> To answer your question:
>
> ACPICA does not support forward references within control methods, it never has. There is good reason for this:
>
> Return (CS01)
> If (ABCD)
> {
> Name (CS01, 1)
> }
> Else
> {
> Name (CS01, 2)
> }
>
> What should be returned?
>
>
> Lin Ming, here is a simplified version of the code example, please run it on Windows:
Tested XP and Vista in KVM.
They both don't support forward references within control methods.
Lin Ming
>
>
> DefinitionBlock ("gr.aml", "DSDT", 1, "TEST", "CPU0CST", 1)
> {
> Name (ABCD, 1)
>
> Method (_CST, 0, NotSerialized)
> {
> If (LAnd (ABCD, 0x10))
> {
> Return (CS03)
> }
>
> Return (CS01)
>
> Name (CS01, 1)
> Name (CS03, 3)
> }
> }
>
> >-----Original Message-----
> >From: Zhang, Rui
> >Sent: Sunday, November 09, 2008 10:47 PM
> >To: Moore, Robert; Lin, Ming M
> >Cc: bubak@frix.fri.uniza.sk; Zhang, Rui; linux-acpi; Len Brown
> >Subject: Re: Namespace lookup failure error on QuadCore E5420
> >
> >Hi, Bob and Ming,
> >
> >Please look at this piece of AML code in the cpu0cst (a dynamic SSDT
> >table).
> >Method (_CST, 0, NotSerialized)
> > {
> > If (LAnd (PDC1, 0x10))
> > {
> > Return (CS03)
> > }
> >
> > Return (CS01)
> > Name (CS01, Package (0x02)
> > {
> > ...
> > })
> > Name (CS03, Package (0x04)
> > {
> > ...
> > })
> >}
> >
> >CS01/CS03 is evaluated before it's defined, causing an AE_NOT_FOUND
> >error.
> >Should we fix it in ACPICA?
> >
> >thanks,
> >rui
> >
> >On Mon, 2008-11-10 at 13:26 +0800, Peter Strazovec wrote:
> >> On Mon, Nov 10, 2008 at 09:32:49AM +0800, Zhang Rui wrote:
> >> > On Sun, 2008-11-09 at 21:48 +0800, Peter Strazovec wrote:
> >> > > I have problem with Namespace lookup failure error on E5420.
> >> > > ( ACPI Error (psargs-0358): [CS03] Namespace lookup failure,
> >AE_NOT_FOUND )
> >> > > Thus acpi not functional (cpufrequ via p-states, etc...).
> >> > >
> >> > ACPI is enabled on your system, except the cpu c-state.
> >> >
> >> > First please download the latest pmtools at
> >> > http://www.lesswatts.org/projects/acpi/utilities.php
> >> >
> >> > and then please run
> >> > "./acpidump > acpidump.log"
> >> > "./acpidump --addr 0xcfe5f800 --length 0xd8 > cpu0cst"
> >> > ???"./acpidump --addr 0xcfe5f900 --length 0xd8 > cpu1cst"
> >> > ???"./acpidump --addr 0xcfe5fa00 --length 0xd8 > cpu2cst"
> >> > ???"./acpidump --addr 0xcfe5fb00 --length 0xd8 > cpu3cst"
> >> > and attach all these files.
> >> >
> >> > Btw, how do you know p-state is not functional?
> >> > the p-state sysfs I/F (/sys/devices/system/cpu/cpuX/cpufreq/)doesn't
> >> > work for you?
> >> >
> >> > thanks,
> >> > rui
> >> >
> >> > > Does anyone know about some patch or some hint?
> >> > >
> >> > > CONFIG_ACPI_DEBUG=y, CONFIG_ACPI_DEBUG_FUNC_TRACE=y,
> >> > > dmesg, interrupts and cpuinfo attached.
> >> > >
> >> > > thanks
> >> > > Pete
> >> >
> >> > --
> >> > To unsubscribe from this list: send the line "unsubscribe linux-acpi"
> >in
> >> > the body of a message to majordomo@vger.kernel.org
> >> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >>
> >>
> >> I though, that 'namespace' error is like 'not working'.... anyhow:
> >>
> >> @cpu c-state
> >> mhmm, I've been talking about p-state ( CONFIG_X86_ACPI_CPUFREQ ) and
> >not
> >> working because:
> >> #cpufreq-set -g performance
> >> wrong, unknown or unhandled CPU?
> >> #ls /sys/devices/system/cpu/cpu0/
> >> cache thermal_throttle topology
> >> -> no cpufreq dir there
> >> #cat /proc/acpi/processor/CPU0/throttling
> >> <not supported>
> >>
> >> acpidumps attached
> >>
> >>
> >> Thanks
> >> Pete
next prev parent reply other threads:[~2008-11-11 1:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-09 13:48 Namespace lookup failure error on QuadCore E5420 Peter Strazovec
2008-11-10 1:32 ` Zhang Rui
[not found] ` <20081110052650.GA2133@frix.fri.uniza.sk>
[not found] ` <1226299630.15014.30.camel@rzhang-dt>
2008-11-10 17:45 ` Moore, Robert
2008-11-11 1:14 ` Lin Ming [this message]
2008-11-11 1:53 ` Moore, Robert
2008-11-11 4:30 ` Peter Strazovec
2008-11-11 18:24 ` Moore, Robert
2008-11-11 18:37 ` Peter Strazovec
2008-11-11 19:00 ` Moore, Robert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1226366099.30025.36.camel@minggr.sh.intel.com \
--to=ming.m.lin@intel.com \
--cc=bubak@frix.fri.uniza.sk \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=robert.moore@intel.com \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox