* lm75 on i2c-elektor.c
@ 2025-11-20 15:41 Magnus Lindholm
2025-11-20 22:23 ` Wolfram Sang
0 siblings, 1 reply; 7+ messages in thread
From: Magnus Lindholm @ 2025-11-20 15:41 UTC (permalink / raw)
To: andi.shyti, linux-i2c
Hi,
I was playing around with lm_sensors on my UP2000 Alpha board and things work
pretty well, right out of the box. I noticed that the i2c-elektor.c
stuff gets disabled
when building a SMP kernel, does anyone know why that is?
i2c/busses/Kconfig says I2C_ELEKTOR BROKEN_ON_SMP.
Regards
Magnus Lindhom
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lm75 on i2c-elektor.c
2025-11-20 15:41 lm75 on i2c-elektor.c Magnus Lindholm
@ 2025-11-20 22:23 ` Wolfram Sang
2025-11-20 22:49 ` Magnus Lindholm
0 siblings, 1 reply; 7+ messages in thread
From: Wolfram Sang @ 2025-11-20 22:23 UTC (permalink / raw)
To: Magnus Lindholm; +Cc: andi.shyti, linux-i2c
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
> when building a SMP kernel, does anyone know why that is?
In history.git, I found 51e9e9743877660198565a86034ca72de73dcf7e from
2003 which adds BROKEN_ON_SMP. Commit message says:
- let all drivers that don't compile on SMP (due to cli/sti usage)
depend on a BROKEN_ON_SMP that is only defined if !SMP || BROKEN
But then again, there is also 4b16dac1d9 ("[PATCH] i2c-elektor: get rid
of cli/sti") from 2004 which converts the driver from cli/sti to
spinlocks. Maybe it just works now?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lm75 on i2c-elektor.c
2025-11-20 22:23 ` Wolfram Sang
@ 2025-11-20 22:49 ` Magnus Lindholm
2025-11-20 23:00 ` Wolfram Sang
0 siblings, 1 reply; 7+ messages in thread
From: Magnus Lindholm @ 2025-11-20 22:49 UTC (permalink / raw)
To: Wolfram Sang; +Cc: andi.shyti, linux-i2c
> But then again, there is also 4b16dac1d9 ("[PATCH] i2c-elektor: get rid
> of cli/sti") from 2004 which converts the driver from cli/sti to
> spinlocks. Maybe it just works now?
>
I've been running it for a day or so on my UP2000+ Alpha with an SMP
kernel and haven't seen any issues (I manually removed the
BROKEN_ON_SMP from Kconfig). I guess I can keep testing it for a
while and if everything seems fine I can submit a patch to remove the
BROKEN_ON_SMP?
/Magnus
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lm75 on i2c-elektor.c
2025-11-20 22:49 ` Magnus Lindholm
@ 2025-11-20 23:00 ` Wolfram Sang
2025-11-21 7:11 ` Magnus Lindholm
0 siblings, 1 reply; 7+ messages in thread
From: Wolfram Sang @ 2025-11-20 23:00 UTC (permalink / raw)
To: Magnus Lindholm; +Cc: andi.shyti, linux-i2c
[-- Attachment #1: Type: text/plain, Size: 394 bytes --]
> I've been running it for a day or so on my UP2000+ Alpha with an SMP
> kernel and haven't seen any issues (I manually removed the
> BROKEN_ON_SMP from Kconfig). I guess I can keep testing it for a
> while and if everything seems fine I can submit a patch to remove the
> BROKEN_ON_SMP?
Yes. If possible, stress-test I2C communication a bit. But with the
spinlocks, I am optimistic anyhow.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lm75 on i2c-elektor.c
2025-11-20 23:00 ` Wolfram Sang
@ 2025-11-21 7:11 ` Magnus Lindholm
2025-11-21 7:24 ` Wolfram Sang
0 siblings, 1 reply; 7+ messages in thread
From: Magnus Lindholm @ 2025-11-21 7:11 UTC (permalink / raw)
To: Wolfram Sang; +Cc: andi.shyti, linux-i2c
Hi,
It's running stable so far, Wolfram, the git history references that
you mentioned,
they are not in torvalds linux git repo? I could only find history
there dating back
to 2005.
/Magnus¨
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lm75 on i2c-elektor.c
2025-11-21 7:11 ` Magnus Lindholm
@ 2025-11-21 7:24 ` Wolfram Sang
2025-11-22 12:16 ` Magnus Lindholm
0 siblings, 1 reply; 7+ messages in thread
From: Wolfram Sang @ 2025-11-21 7:24 UTC (permalink / raw)
To: Magnus Lindholm; +Cc: andi.shyti, linux-i2c
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
> they are not in torvalds linux git repo? I could only find history
> there dating back to 2005.
history.git is a dedicated tree, built after the facts ;)
https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/
Fun to browse for such questions...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lm75 on i2c-elektor.c
2025-11-21 7:24 ` Wolfram Sang
@ 2025-11-22 12:16 ` Magnus Lindholm
0 siblings, 0 replies; 7+ messages in thread
From: Magnus Lindholm @ 2025-11-22 12:16 UTC (permalink / raw)
To: Wolfram Sang; +Cc: andi.shyti, linux-i2c
Hi,
Thanks! I've been running the driver on SMP kernel for a few days now
sending i2c data from all sensors to influx/grafana and everything seems
stable. I'll send out a patch later for review. I believe we can just
allow this driver to be built on SMP kernels.
Magnus
On Fri, Nov 21, 2025 at 8:24 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
>
>
> > they are not in torvalds linux git repo? I could only find history
> > there dating back to 2005.
>
> history.git is a dedicated tree, built after the facts ;)
>
> https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/
>
> Fun to browse for such questions...
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-11-22 12:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 15:41 lm75 on i2c-elektor.c Magnus Lindholm
2025-11-20 22:23 ` Wolfram Sang
2025-11-20 22:49 ` Magnus Lindholm
2025-11-20 23:00 ` Wolfram Sang
2025-11-21 7:11 ` Magnus Lindholm
2025-11-21 7:24 ` Wolfram Sang
2025-11-22 12:16 ` Magnus Lindholm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox