All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger
@ 2012-01-27 12:51 Florian Fainelli
  2012-01-27 12:57 ` Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Fainelli @ 2012-01-27 12:51 UTC (permalink / raw)
  To: lm-sensors

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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger
  2012-01-27 12:51 [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger Florian Fainelli
@ 2012-01-27 12:57 ` Florian Fainelli
  2012-01-27 13:22 ` Jean Delvare
  2012-01-27 14:23 ` R, Durgadoss
  2 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2012-01-27 12:57 UTC (permalink / raw)
  To: lm-sensors

Hello again,

On 01/27/12 13:51, Florian Fainelli wrote:
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger
  2012-01-27 12:51 [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger Florian Fainelli
  2012-01-27 12:57 ` Florian Fainelli
@ 2012-01-27 13:22 ` Jean Delvare
  2012-01-27 14:23 ` R, Durgadoss
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2012-01-27 13:22 UTC (permalink / raw)
  To: lm-sensors

On Fri, 27 Jan 2012 13:57:16 +0100, Florian Fainelli wrote:
> Hello again,
> 
> On 01/27/12 13:51, Florian Fainelli wrote:
> > 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.

> 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.

-- 
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] 4+ messages in thread

* Re: [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger
  2012-01-27 12:51 [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger Florian Fainelli
  2012-01-27 12:57 ` Florian Fainelli
  2012-01-27 13:22 ` Jean Delvare
@ 2012-01-27 14:23 ` R, Durgadoss
  2 siblings, 0 replies; 4+ messages in thread
From: R, Durgadoss @ 2012-01-27 14:23 UTC (permalink / raw)
  To: lm-sensors

Hi,

> -----Original Message-----
> From: Florian Fainelli [mailto:ffainelli@freebox.fr]
> Sent: Friday, January 27, 2012 6:27 PM
> To: R, Durgadoss; Yu, Fenghua
> Cc: lm-sensors@lm-sensors.org; Guenter Roeck; Maxime Bizon
> Subject: Re: coretemp ABI breakage during pkgtemp/coretemp merger
> 
> Hello again,
> 
> On 01/27/12 13:51, Florian Fainelli wrote:
> > 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.

The Documentation for coretemp explains this change.

Thanks,
Durga
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-27 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 12:51 [lm-sensors] coretemp ABI breakage during pkgtemp/coretemp merger Florian Fainelli
2012-01-27 12:57 ` Florian Fainelli
2012-01-27 13:22 ` Jean Delvare
2012-01-27 14:23 ` R, Durgadoss

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.