* [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
@ 2011-12-04 7:15 ` Charles
2011-12-05 13:03 ` Luca Tettamanti
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Charles @ 2011-12-04 7:15 UTC (permalink / raw)
To: lm-sensors
Hello :-)
According to http://hansdegoede.livejournal.com/7932.html and
http://pavelshub.com/blog/2010/12/fatal-error-inserting-w83627ehf/, the
proper module to use on ASUS motherboards equipped with the Nuvoton
NCT6776F is asus_atk0110, not w83627ehf, but there is an open lm_sensors
ticket (http://www.lm-sensors.org/ticket/2374) about sensors-detect not
supporting is asus_atk0110.
Running Slackware64 13.1 with a 2.6.38.7 kernel on an ASUS P8H67-V
motherboard with an NCT6776F and asus_atk0110 modeprobed, sensors-detect
3.3.1 was not successful. Digging deeper, looking for directories under
/sys/bus/acpi/drivers/ATK0110 found nothing:
root@CW8:~# ls -l /sys/bus/acpi/drivers/ATK0110
total 0
--w------- 1 root root 4.0K 2011-12-02 18:49 bind
--w------- 1 root root 4.0K 2011-12-02 18:49 uevent
--w------- 1 root root 4.0K 2011-12-02 18:49 unbind
Others have been able to use asus_atk0110 with lm_sensors (examples:
http://pastebin.com/8gREkwXZ,
http://comments.gmane.org/gmane.comp.gnome.apps.gkrellm/1556,
http://forums.opensuse.org/english/get-technical-help-here/pre-release-beta/423075-does-your-pwmconfig-find-modules-run.html;
there are many more).
The issue was worked around by using kernel option
acpi_enforce_resources=lax but I understand this will not work with
later kernels.
What to do for best?
Best
Charles
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
2011-12-04 7:15 ` Charles
@ 2011-12-05 13:03 ` Luca Tettamanti
2011-12-05 14:26 ` Charles
` (5 subsequent siblings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in thread* Re: [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
2011-12-04 7:15 ` Charles
2011-12-05 13:03 ` Luca Tettamanti
@ 2011-12-05 14:26 ` Charles
2011-12-05 14:43 ` Jean Delvare
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Charles @ 2011-12-05 14:26 UTC (permalink / raw)
To: lm-sensors
On 05/12/11 18:33, Luca Tettamanti wrote:
> Hi,
>
[snip]
>
> It's not easy to do, proper detection would require the full ACPI
> stack in userspace.
>
[snip]
> You shouldn't need to load the driver manually; if it's not
> auto-loaded then your board is not recognized by the driver.
> ASUS has changed the ATK0110 interface from time to time, so hopefully
> a few tweaks is all that's needed.
> Please send me a copy of this file:
> /sys/firmware/acpi/tables/DSDT
>
> Luca
Thanks Luca :)
Slackware loads (auto-loads?) modules via the /etc/rc.d/modules symlink.
One problem may be that I am using a symlink target manually edited
from the 2.6.33.4 version instead of the 2.6.38.7 version.
ACPI modules in the original 2.6.33.4 version, commented out ready for
uncommenting by the sysadmin include (I have omitted "obviously"
irrelevant ones): button, fan, processor and thermal. I disabled
acpi-cpufreq in favour of cpufreq_ondemand. Would you like me to try
any changes?
I temporarily commented out w83627ehf and added asus_atk0110 then
removed kernel option acpi_enforce_resources=lax, rebooted and created a
file by catting /sys/firmware/acpi/tables/DSDT which I am sending you
off list.
Best
Charles
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
` (2 preceding siblings ...)
2011-12-05 14:26 ` Charles
@ 2011-12-05 14:43 ` Jean Delvare
2011-12-05 15:28 ` Luca Tettamanti
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jean Delvare @ 2011-12-05 14:43 UTC (permalink / raw)
To: lm-sensors
On Mon, 05 Dec 2011 19:44:30 +0530, Charles wrote:
> On 05/12/11 18:33, Luca Tettamanti wrote:
> > Hi,
> >
> [snip]
> >
> > It's not easy to do, proper detection would require the full ACPI
> > stack in userspace.
> >
> [snip]
> > You shouldn't need to load the driver manually; if it's not
> > auto-loaded then your board is not recognized by the driver.
> > ASUS has changed the ATK0110 interface from time to time, so hopefully
> > a few tweaks is all that's needed.
> > Please send me a copy of this file:
> > /sys/firmware/acpi/tables/DSDT
>
> Thanks Luca :)
>
> Slackware loads (auto-loads?) modules via the /etc/rc.d/modules symlink.
> One problem may be that I am using a symlink target manually edited
> from the 2.6.33.4 version instead of the 2.6.38.7 version.
The asus_atk0110 driver should be loaded by udev, this is not
distribution-dependent.
> ACPI modules in the original 2.6.33.4 version, commented out ready for
> uncommenting by the sysadmin include (I have omitted "obviously"
> irrelevant ones): button, fan, processor and thermal. I disabled
> acpi-cpufreq in favour of cpufreq_ondemand. Would you like me to try
> any changes?
acpi-cpufreq is a cpufreq driver, cpufreq_ondemand is a governor, you
can't trade one for the other. Not sure what you were trying to
achieve... This is not related to asus_atk0110 anyway.
> I temporarily commented out w83627ehf and added asus_atk0110 then
> removed kernel option acpi_enforce_resources=lax, rebooted and created a
> file by catting /sys/firmware/acpi/tables/DSDT which I am sending you
> off list.
The question is, does "sensors" output anything with only the
asus_atk0110 driver loaded? If not, hopefully Luca will be able to
figure out why from the DSDT.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
` (3 preceding siblings ...)
2011-12-05 14:43 ` Jean Delvare
@ 2011-12-05 15:28 ` Luca Tettamanti
2011-12-05 15:52 ` Charles
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Luca Tettamanti @ 2011-12-05 15:28 UTC (permalink / raw)
To: lm-sensors
On Mon, Dec 5, 2011 at 3:43 PM, Jean Delvare <khali@linux-fr.org> wrote:
> On Mon, 05 Dec 2011 19:44:30 +0530, Charles wrote:
>> I temporarily commented out w83627ehf and added asus_atk0110 then
>> removed kernel option acpi_enforce_resources=lax, rebooted and created a
>> file by catting /sys/firmware/acpi/tables/DSDT which I am sending you
>> off list.
>
> The question is, does "sensors" output anything with only the
> asus_atk0110 driver loaded? If not, hopefully Luca will be able to
> figure out why from the DSDT.
ATK0110 is not present in the DSDT. The IO range is reserved and used
to check a single temperature against high and hysteresis thresholds
(see method _L16) and notify WMI (yeah...). The method also reads a
bit at 0x41 (AUIS) which is not used in the linux driver; the value is
discarded, it might be a read-to-clear alarm bit; Jean do you know
what that might be?
Anyway, the board does not expose a monitoring framework :-(
Luca
[1] The disassembled DSDT: http://pastebin.com/YZX2uY3a
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
` (4 preceding siblings ...)
2011-12-05 15:28 ` Luca Tettamanti
@ 2011-12-05 15:52 ` Charles
2011-12-05 16:04 ` Jean Delvare
2011-12-06 15:21 ` Luca Tettamanti
7 siblings, 0 replies; 9+ messages in thread
From: Charles @ 2011-12-05 15:52 UTC (permalink / raw)
To: lm-sensors
On 05/12/11 20:58, Luca Tettamanti wrote:
> On Mon, Dec 5, 2011 at 3:43 PM, Jean Delvare <khali@linux-fr.org> wrote:
>>
>> The question is, does "sensors" output anything with only the
>> asus_atk0110 driver loaded? If not, hopefully Luca will be able to
>> figure out why from the DSDT.
>
> ATK0110 is not present in the DSDT. The IO range is reserved and used
> to check a single temperature against high and hysteresis thresholds
> (see method _L16) and notify WMI (yeah...). The method also reads a
> bit at 0x41 (AUIS) which is not used in the linux driver; the value is
> discarded, it might be a read-to-clear alarm bit; Jean do you know
> what that might be?
> Anyway, the board does not expose a monitoring framework :-(
>
> Luca
> [1] The disassembled DSDT: http://pastebin.com/YZX2uY3a
Thanks Luca :)
That sounds pretty final for using asus_atk0110 on the ASUS P8H67-V :(
Not surprisingly, then, sensors only finds coretemps when asus_atk0110
is modprobed.
It's great that an ordinary and naive user can get this level of suport
from real experts and so quickly. Many thanks to Jean, Guenter and Luca :)
Best
Charles
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
` (5 preceding siblings ...)
2011-12-05 15:52 ` Charles
@ 2011-12-05 16:04 ` Jean Delvare
2011-12-06 15:21 ` Luca Tettamanti
7 siblings, 0 replies; 9+ messages in thread
From: Jean Delvare @ 2011-12-05 16:04 UTC (permalink / raw)
To: lm-sensors
On Mon, 5 Dec 2011 16:28:19 +0100, Luca Tettamanti wrote:
> On Mon, Dec 5, 2011 at 3:43 PM, Jean Delvare <khali@linux-fr.org> wrote:
> > On Mon, 05 Dec 2011 19:44:30 +0530, Charles wrote:
> >> I temporarily commented out w83627ehf and added asus_atk0110 then
> >> removed kernel option acpi_enforce_resources=lax, rebooted and created a
> >> file by catting /sys/firmware/acpi/tables/DSDT which I am sending you
> >> off list.
> >
> > The question is, does "sensors" output anything with only the
> > asus_atk0110 driver loaded? If not, hopefully Luca will be able to
> > figure out why from the DSDT.
>
> ATK0110 is not present in the DSDT. The IO range is reserved and used
> to check a single temperature against high and hysteresis thresholds
> (see method _L16) and notify WMI (yeah...). The method also reads a
> bit at 0x41 (AUIS) which is not used in the linux driver; the value is
> discarded, it might be a read-to-clear alarm bit; Jean do you know
> what that might be?
Register 0x41 is named Interrupt Status Register 1 in the datasheet,
bit 5 is named SOURCE2_SMI:
A one indicates the high limit of SMIOVT SOURCE2 temperature has been exceeded.
(CPUTIN is default temperature)
> Anyway, the board does not expose a monitoring framework :-(
But it exposes a register map (HWRE)... Might this be used to access
the hardware monitoring chip without interfering with ACPI? I'm not
saying that would be particularly nice, but I don't think we have any
other option, do we?
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [lm-sensors] Kernel module asus_atk0110
2011-12-03 13:56 [lm-sensors] Kernel module asus_atk0110 Charles
` (6 preceding siblings ...)
2011-12-05 16:04 ` Jean Delvare
@ 2011-12-06 15:21 ` Luca Tettamanti
7 siblings, 0 replies; 9+ messages in thread
From: Luca Tettamanti @ 2011-12-06 15:21 UTC (permalink / raw)
To: lm-sensors
On Mon, Dec 5, 2011 at 5:04 PM, Jean Delvare <khali@linux-fr.org> wrote:
> On Mon, 5 Dec 2011 16:28:19 +0100, Luca Tettamanti wrote:
[cut]
>> Anyway, the board does not expose a monitoring framework :-(
>
> But it exposes a register map (HWRE)... Might this be used to access
> the hardware monitoring chip without interfering with ACPI?
Not directly: other boards had read/write methods with byte
granularity that could be exploited to jury rig a native driver to
access the hardware via ACPI. In this case there are no such methods,
the only option that I see would be injecting new methods into the
DSDT and use those; it can be done but it's a bit... distasteful ;-)
And fragile.
I wonder that ASUS does under Windows...
Luca
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 9+ messages in thread