Skip to contentSkip to conversation

acpi 4.0 power_meter doesn't get "cap" files automatically

lm-sensors Darrick J. Wong 1 participant 1 message Feb 14, 2012

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Cezary

Hello,
As You can conclude from subject I am working on "power_meter" device and I have couple question to the author :) I have small problem with "cap" files, that aren't generated automatically in /sys/devices location. I have to reload power_meter module with parameter force_cap_in set, then missing files are generated. My ACPI Power Meter has "HW enforced limit" and "Is HW limit configurable" parameters set as supported.

Quoted 5 lines

I think those files should be created automatically, but it seems that parameter cap_in_hardware (checked in " can_cap_in_hardware" method) is set to FALSE. Could You tell me when this parameter is set as TRUE? In other words, is there anything that I can do to get "cap" files generated automatically?

[adding [email protected] to cc]

Right now, if you want to have cap_in_hardware=1, you have to add a DMI string to pm_dmi_table in acpi_power_meter.c. In theory, _PMC.capabilities & 0x4 could also determine can_cap_in_hardware(), but as I recall the kernel community didn't want to trust that the BIOS to set that bit correctly, and that's why one either has to patch the DMI table or load the module with force_cap_on=1 -- we were simply being cautious.

On the other hand there were zero publicly available implementations when I wrote that driver, so if you want to send in a patch to change the decision to be based off _PMC, go ahead.

--D

Quoted 14 lines

Regards,
Cezary Zwolak

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
z siedziba w Gdansku
ul. Slowackiego 173
80-298 Gdansk

Sad Rejonowy Gdansk Polnoc w Gdansku,
VII Wydzial Gospodarczy Krajowego Rejestru Sadowego, numer KRS 101882

Quoted 7 lines

NIP 957-07-52-316
Kapital zakladowy 200.000 zl

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors