From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: "Zheng, Lv" <lv.zheng@intel.com>
Cc: Daniel Drake <drake@endlessm.com>,
"lenb@kernel.org" <lenb@kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"chiu@endlessm.com" <chiu@endlessm.com>,
"linux@endlessm.com" <linux@endlessm.com>
Subject: Re: [PATCH] ACPI / EC: handle ECDT EC and DSDT EC simultaneously
Date: Fri, 28 Apr 2017 02:33 +0200 [thread overview]
Message-ID: <2213549.Q4Z823dSPo@aspire.rjw.lan> (raw)
In-Reply-To: <1AE640813FDE7649BE1B193DEA596E886CE9973E@SHSMSX101.ccr.corp.intel.com>
On Thursday, April 27, 2017 03:18:04 AM Zheng, Lv wrote:
> Hi,
>
> > From: Daniel Drake [mailto:drake@endlessm.com]
> > Subject: Re: [PATCH] ACPI / EC: handle ECDT EC and DSDT EC simultaneously
> >
> > Hi Lv,
> >
> > Thanks for the detailed response. In trying to decode the tricky code
> > flow and seeing all this first_ec / boot_ec / DSDT EC / ECDT EC stuff,
> > I seem to have made the wrong interpretation about how this is
> > designed.
> >
> > On Sun, Apr 23, 2017 at 10:43 PM, Zheng, Lv <lv.zheng@intel.com> wrote:
> > > The entire problem looks to me is:
> > > When GPE setting differs between ECDT and DSDT, which one should be
> > > trusted by OS?
> >
> > This case suggests that Windows uses the ECDT setting, right?
>
> I checked the provided acpi tables.
> Indeed, the ECDT EC is correct.
> [000h 0000 4] Signature : "ECDT" [Embedded Controller Boot Resources Table]
> [004h 0004 4] Table Length : 000000C1
> [008h 0008 1] Revision : 01
> [009h 0009 1] Checksum : EC
> [00Ah 0010 6] Oem ID : "_ASUS_"
> [010h 0016 8] Oem Table ID : "Notebook"
> [018h 0024 4] Oem Revision : 01072009
> [01Ch 0028 4] Asl Compiler ID : "AMI."
> [020h 0032 4] Asl Compiler Revision : 00000005
>
>
> [024h 0036 12] Command/Status Register : [Generic Address Structure]
> [024h 0036 1] Space ID : 01 [SystemIO]
> [025h 0037 1] Bit Width : 08
> [026h 0038 1] Bit Offset : 00
> [027h 0039 1] Encoded Access Width : 00 [Undefined/Legacy]
> [028h 0040 8] Address : 0000000000000066
>
> [030h 0048 12] Data Register : [Generic Address Structure]
> [030h 0048 1] Space ID : 01 [SystemIO]
> [031h 0049 1] Bit Width : 08
> [032h 0050 1] Bit Offset : 00
> [033h 0051 1] Encoded Access Width : 00 [Undefined/Legacy]
> [034h 0052 8] Address : 0000000000000062
>
> [03Ch 0060 4] UID : 00000000
> [040h 0064 1] GPE Number : 23
> [041h 0065 19] Namepath : "\_SB.PCI0.LPCB.EC0"
>
> While the DSDT EC is in fact invalid as it returns 0 from its _STA:
> Scope (_SB.PCI0.LPCB)
> {
> Device (H_EC)
> {
> Name (_HID, EisaId ("PNP0C09") /* Embedded Controller Device */) // _HID: Hardware ID
> Name (_UID, One) // _UID: Unique ID
> Method (_STA, 0, NotSerialized) // _STA: Status
> {
> ^^^GFX0.CLID = 0x03
> Return (Zero)
> }
> ...
> }
> }
>
> It doesn't contain _CRS, so it's likely that it will fail in
> acpi_ec_dsdt_probe() due to failure of walk _CRS.
>
> Are you sure the same problem can be seen no this platform?
>
> If so, possibly you only need to add some sanity checks in
> acpi_ec_dsdt_probe().
Can you suggest a patch, please?
Ideally, something that can be tested?
Thanks,
Rafael
next prev parent reply other threads:[~2017-04-28 0:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-20 20:12 [PATCH] ACPI / EC: handle ECDT EC and DSDT EC simultaneously Daniel Drake
2017-04-20 20:59 ` Rafael J. Wysocki
2017-04-24 4:43 ` Zheng, Lv
2017-04-26 13:11 ` Daniel Drake
2017-04-27 3:18 ` Zheng, Lv
2017-04-28 0:33 ` Rafael J. Wysocki [this message]
2017-04-28 0:44 ` Daniel Drake
2017-04-28 6:33 ` Zheng, Lv
2017-04-28 12:52 ` Daniel Drake
2017-05-03 20:06 ` Daniel Drake
2017-05-04 5:05 ` Zheng, Lv
2017-05-04 4:52 ` Zheng, Lv
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=2213549.Q4Z823dSPo@aspire.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=chiu@endlessm.com \
--cc=drake@endlessm.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux@endlessm.com \
--cc=lv.zheng@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