From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Lenovo Yoga 13 with SMSC EMC2104 chip
Date: Wed, 30 Oct 2013 16:09:31 +0000 [thread overview]
Message-ID: <20131030160931.GA4526@roeck-us.net> (raw)
In-Reply-To: <CAK0txenpNcwmNh4UqTaBzYE8Tu5uns+2EoVALK2+gn9DGJPEkw@mail.gmail.com>
On Wed, Oct 30, 2013 at 08:29:45AM +0100, Jean Delvare wrote:
> On Wed, 30 Oct 2013 07:52:51 +0100, Igor Popik wrote:
> > 2013/10/30 Guenter Roeck <linux@roeck-us.net>:
> > > As Jean mentioned, there may be another i2c bus, a hidden i2c multiplexer,
> > > or the chip may be connected to the IDT EC. The DSDT might give us
> > > some hints. You already know from the ACPI overlap that ACPI talks with the
> > > SMBus adapter; it might also talk with the EC. Can you extract the DSDT
> > > and provide it to us ?
> > >
> > > sudo cat /sys/firmware/acpi/tables/DSDT > dsdt.aml
> > >
> > > Then, in case you want to learn things you never really wanted to know:
> > >
> > > iasl -d dsdt.aml
> >
> > Here it is. Hope You find something interesting there.
>
> I see the following:
>
> Scope (\_SB.PCI0.LPCB)
> {
> Device (H_EC)
> {
> Name (_HID, EisaId ("PNP0C09")) // _HID: Hardware ID
> Name (_UID, One) // _UID: Unique ID
> (...)
> OperationRegion (ECF2, EmbeddedControl, Zero, 0xFF)
> Field (ECF2, ByteAcc, Lock, Preserve)
> {
> (...)
> Offset (0xEE),
> BHFW, 16,
> F1PW, 8,
> F2PW, 8,
> F1RM, 8,
> F2RM, 8,
> FAMO, 8,
> F1SP, 16,
> F2SP, 16,
> FAN1, 8,
> FAN2, 8,
> BCG1, 16,
> BCG2, 16
>
> This seems to imply there is an EC which knows something about fans.
> However there is no reference to these fields in the rest of the DSDT.
> There could be references in other ACPI tables though. Also note that
> PNP0C09 is referenced in driver thinkpad_acpi so maybe that driver can
> help. That being said, it seems that newer laptop models from Lenovo
> aren't supported by this driver as good as older models were.
>
Given the "flexibility" in ACPI permitting vendors to change bindings
and underlying functionality at their leisure, that is hardly surprising.
Looking through the driver, there is lots of magic in there anyway.
I think the best shot would be to load the driver and hope that it works.
However, the following note on thinkwiki.org, related to Lenovo 3000, suggests
that it may not work: "The ACPI and EC firmware are completely incompatible
with ThinkPads, and thinkpad-acpi will not support it. The Lenovo 3000 are not
ThinkPads". Since the Yoga isn't even a laptop, that doesn't sound very
encouraging.
> Also interesting is the SBUS device which defines a complete ACPI
> interface to the SMBus controller. Unfortunately it doesn't follow the
> SMBus CMI standard. Writing an ACPI driver for it would allow working
> around the i2c-i801 resource conflict. However this doesn't seem
> terribly useful as there's only the memory module SPD EEPROM visible on
> the SMBus.
>
Also, the interface may change with the next laptop model, so a driver
would only have limited value.
> If it was me, I think I'd just leave the whole thing alone unless you
> have a real problem that needs to be solved.
>
+1
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2013-10-30 16:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-27 22:45 [lm-sensors] Lenovo Yoga 13 with SMSC EMC2104 chip Igor Popik
2013-10-28 1:26 ` Guenter Roeck
2013-10-29 8:07 ` Jean Delvare
2013-10-29 18:14 ` Igor Popik
2013-10-29 20:06 ` Jean Delvare
2013-10-29 21:57 ` Igor Popik
2013-10-29 22:37 ` Igor Popik
2013-10-30 2:25 ` Guenter Roeck
2013-10-30 6:52 ` Igor Popik
2013-10-30 7:29 ` Jean Delvare
2013-10-30 16:09 ` Guenter Roeck [this message]
2013-10-31 18:46 ` Igor Popik
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=20131030160931.GA4526@roeck-us.net \
--to=linux@roeck-us.net \
--cc=lm-sensors@vger.kernel.org \
/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 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.