How to implement ACPI EC support?
Hi Henrique,
I've noticed the ACPI embedded controller (EC) support in the "thinkpad_acpi" driver.
New Samsung laptops (NP530U3C, NP900X4B, NP900X3C, ...) also have an EC which isn't supported by the generic ACPI driver. The lid, the battery status and the power supply status are connected to it.
How did you implement the EC support in the thinkpad driver? Did you have documentation or was it done by reverse engineering?
Could you have a look at the related kernel bugzilla bugs?:
https://bugzilla.kernel.org/show_bug.cgi?id=45461
https://bugzilla.kernel.org/show_bug.cgi?id=44161
Cheers,
Sebastian
Signature · 7 lines
Sebastian Riemer Linux Kernel Developer - Storage We are looking for (SENIOR) LINUX KERNEL DEVELOPERS! ProfitBricks GmbH • Greifswalder Str. 207 • 10405 Berlin, Germany www.profitbricks.com • [email protected]
Quoted 9 lines · Sebastian Riemer
I've noticed the ACPI embedded controller (EC) support in the "
thinkpad_acpi" driver.New Samsung laptops (NP530U3C, NP900X4B, NP900X3C, ...) also have an EC which isn't supported by the generic ACPI driver. The lid, the battery status and the power supply status are connected to it.
How did you implement the EC support in the thinkpad driver? Did you have documentation or was it done by reverse engineering?
It was done through lots of trial and error by several people over more than a decade, and sometime ago SuSE managed to get me in contact with some Lenovo ThinkPad firmware engineers in Japan, which did help a lot.
However, thinkpad-acpi is an old driver, you might want to ask the maintainers of newer WMI-based drivers about how they are managing...
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Quoted 11 lines · Henrique de Moraes Holschuh
Quoted 9 lines · Sebastian Riemer
I've noticed the ACPI embedded controller (EC) support in the "
thinkpad_acpi" driver.New Samsung laptops (NP530U3C, NP900X4B, NP900X3C, ...) also have an EC which isn't supported by the generic ACPI driver. The lid, the battery status and the power supply status are connected to it.
How did you implement the EC support in the thinkpad driver? Did you have documentation or was it done by reverse engineering?
Quoted 6 lines
It was done through lots of trial and error by several people over more than a decade, and sometime ago SuSE managed to get me in contact with some Lenovo ThinkPad firmware engineers in Japan, which did help a lot.
However, thinkpad-acpi is an old driver, you might want to ask the maintainers of newer WMI-based drivers about how they are managing...
I don't know if WMI can really help here, but will free to use wmidump to extract all WMI informations, and
http://lwn.net/Articles/391230/
https://github.com/iksaif/wmidump
http://msdn.microsoft.com/en-us/library/windows/hardware/ff565588
http://glucik.blogspot.com/2011/12/mof-decompilation.html (!!! the tool is Wmimofck.exe not wmiofck.exe)
Signature · 2 lines
Corentin Chary http://xf.iksaif.net
First of all: Thank you very much for your responses!
Quoted 9 lines · Corentin Chary
Quoted 6 lines · Henrique de Moraes Holschuh
It was done through lots of trial and error by several people over more than a decade, and sometime ago SuSE managed to get me in contact with some Lenovo ThinkPad firmware engineers in Japan, which did help a lot.
However, thinkpad-acpi is an old driver, you might want to ask the maintainers of newer WMI-based drivers about how they are managing...
Quoted 8 lines
I don't know if WMI can really help here, but will free to use wmidump to extract all WMI informations, and
http://lwn.net/Articles/391230/
https://github.com/iksaif/wmidump
http://msdn.microsoft.com/en-us/library/windows/hardware/ff565588
http://glucik.blogspot.com/2011/12/mof-decompilation.html (!!! the tool is Wmimofck.exe not wmiofck.exe)
Nope, I guess not. There is no MOF stuff in the DSDT.
wmidump:
C16C47BA-50E3-444A-AF3A-B1C348380000:
object_id: 00
notify_id: 30
reserved: 30
instance_count: 1
flags: 0x1 ACPI_WMI_EXPENSIVE
C16C47BA-50E3-444A-AF3A-B1C348380001:
object_id: 00
notify_id: 30
reserved: 30
instance_count: 1
flags: 0x2 ACPI_WMI_METHODThe method WM00 uses completely different fields.
On Windows the EC is handled by "intel.sys" if I've seen that right. "objdump -xS" on it would show big big disassembly output for sure. So Windows debugging is needed I guess.
I've also asked the Samsung support for documentation. They want to do internal research. At least they didn't answer "Linux is not a supported operating system." like other big companies do.
Cheers,
Sebastian
Quoted 16 lines · Sebastian Riemer
First of all: Thank you very much for your responses!
Quoted 12 lines · Corentin Chary
Quoted 6 lines · Henrique de Moraes Holschuh
It was done through lots of trial and error by several people over more than a decade, and sometime ago SuSE managed to get me in contact with some Lenovo ThinkPad firmware engineers in Japan, which did help a lot.
However, thinkpad-acpi is an old driver, you might want to ask the maintainers of newer WMI-based drivers about how they are managing...
I don't know if WMI can really help here, but will free to use wmidump to extract all WMI informations, and
Quoted 7 lines
Quoted 5 lines
http://lwn.net/Articles/391230/
https://github.com/iksaif/wmidump
http://msdn.microsoft.com/en-us/library/windows/hardware/ff565588
http://glucik.blogspot.com/2011/12/mof-decompilation.html (!!! the tool is Wmimofck.exe not wmiofck.exe)Nope, I guess not. There is no MOF stuff in the DSDT.
Really ? No methods/buffer starting in WQ ?
Quoted 21 lines
wmidump:
C16C47BA-50E3-444A-AF3A-B1C348380000:
object_id: 00 notify_id: 30 reserved: 30 instance_count: 1 flags: 0x1 ACPI_WMI_EXPENSIVE C16C47BA-50E3-444A-AF3A-B1C348380001: object_id: 00 notify_id: 30 reserved: 30 instance_count: 1 flags: 0x2 ACPI_WMI_METHODThe method WM00 uses completely different fields.
On Windows the EC is handled by "intel.sys" if I've seen that right. "objdump -xS" on it would show big big disassembly output for sure. So Windows debugging is needed I guess.
Quoted 6 lines
I've also asked the Samsung support for documentation. They want to do internal research. At least they didn't answer "Linux is not a supported operating system." like other big companies do.
Cheers,
Sebastian
--
Corentin Chary
http://xf.iksaif.net
Quoted 6 lines · Corentin Chary
Quoted 2 lines · Sebastian Riemer
Nope, I guess not. There is no MOF stuff in the DSDT.
Really ? No methods/buffer starting in WQ ?
That's all:
Method (WQ00, 1, NotSerialized)
{
Return (0x10)
}Quoted 8 lines · Sebastian Riemer
Quoted 6 lines · Corentin Chary
Quoted 2 lines · Sebastian Riemer
Nope, I guess not. There is no MOF stuff in the DSDT.
Really ? No methods/buffer starting in WQ ?
Quoted 6 lines
That's all:
Method (WQ00, 1, NotSerialized)
{ Return (0x10) }
Arf ! Good luck then :D
--
Corentin Chary
http://xf.iksaif.net