Skip to contentSkip to conversation

coretemp ABI breakage during pkgtemp/coretemp merger

lm-sensors Florian Fainelli 3 participants 4 messages Jan 27, 2012

lore
Share & tools
lore
#0 lore raw

Hello,

Commit 199e0de7f5df31a4fc485d4aaaf8a07718252ace: hwmon: (coretemp) Merge pkgtemp with coretemp introduced a breakage on our system (Intel CE4100 Atom core HT).

pkg_flag = 0 for our particular system, because we don't have X86_FEATURE_PTS set (I have no idea why hardware does not report it, whether this is genuine or not).

This is not a big deal, but since this is a sysfs attribute, it is kernel ABI and therefore should not break.
--
Florian

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

#1 lore raw

Hello again,

Quoted 9 lines · Florian Fainelli

Hello,

Commit 199e0de7f5df31a4fc485d4aaaf8a07718252ace: hwmon: (coretemp) Merge pkgtemp with coretemp introduced a breakage on our system (Intel CE4100 Atom core HT).

pkg_flag = 0 for our particular system, because we don't have X86_FEATURE_PTS set (I have no idea why hardware does not report it, whether this is genuine or not).

I forgot to explain the real breakage here, this renamed temp1_* to temp2_* attributes, thus breaking userland expecting temp1_* attributes. --
Florian

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

#2 lore raw
In reply to Florian Fainelli
Quoted 12 lines · Florian Fainelli

Hello again,

Quoted 9 lines · Florian Fainelli

Hello,

Commit 199e0de7f5df31a4fc485d4aaaf8a07718252ace: hwmon: (coretemp) Merge pkgtemp with coretemp introduced a breakage on our system (Intel CE4100 Atom core HT).

pkg_flag = 0 for our particular system, because we don't have X86_FEATURE_PTS set (I have no idea why hardware does not report it, whether this is genuine or not).

I don't expect Atom CPUs to have multiple thermal sensors, so that's probably correct.

Quoted 2 lines

I forgot to explain the real breakage here, this renamed temp1_* to temp2_* attributes, thus breaking userland expecting temp1_* attributes.

No, this isn't an ABI breakage. Attributes got renumbered but their new names still comply with the documented sysfs interface to hwmon devices.

This change indeed requires some changes to configuration files, most notably /etc/fancontrol. It will also require recreating the sensord rrd database, but so does pretty much every configuration change, this is really a design issue in sensord.

You did not even describe what your actual "breakage" was.

It's a little late to complain about this 8 months later. Back then it was decided that the benefits were worth it, and I still believe this was the right decision. The original driver design was simply wrong. We're obviously not going to revert this now, as this would be one more ABI change for users currently running kernels 3.0 to 3.3.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Florian Fainelli

Hi,

Quoted 16 lines

-----Original Message-----
From: Florian Fainelli [mailto:[email protected]]
Sent: Friday, January 27, 2012 6:27 PM
To: R, Durgadoss; Yu, Fenghua
Cc: [email protected]; Guenter Roeck; Maxime Bizon
Subject: Re: coretemp ABI breakage during pkgtemp/coretemp merger

Hello again,

Quoted 6 lines · Florian Fainelli

Hello,

Commit 199e0de7f5df31a4fc485d4aaaf8a07718252ace: hwmon: (coretemp) Merge pkgtemp with coretemp introduced a breakage on our system (Intel CE4100 Atom core HT).

Quoted 6 lines
Quoted 3 lines

pkg_flag = 0 for our particular system, because we don't have X86_FEATURE_PTS set (I have no idea why hardware does not report it, whether this is genuine or not).

I forgot to explain the real breakage here, this renamed temp1_* to temp2_* attributes, thus breaking userland expecting temp1_* attributes.

The Documentation for coretemp explains this change.

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