The NetBSD Project

CVS log for src/sys/dev/ipmi.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Dec 3 22:11:38 2024 UTC (14 hours, 19 minutes ago) by riastradh
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +27 -12 lines
ipmi(4): Avoid misaligned buffer access in get_sdr_partial.

PR kern/58870: ipmi(4): misaligned buffer in get_sdr_partial

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Dec 3 19:55:33 2024 UTC (16 hours, 35 minutes ago) by riastradh
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +30 -15 lines
ipmi(4): Don't hold up boot -- just hold up wdogctl(8).

While here, omit needless volatile qualifier on variables serialized
by mutex (or by config_pending_incr/decr -- ipmi_detach can't run
until ipmi_thread does config_pending_decr).

It's not entirely clear that we even need to hold up wdogctl(8).
Perhaps we can do that in parallel -- or really, interleaved -- with
scanning for SDR sensors.  But this is a safer change for now without
requiring thought about that.

PR kern/56568: ipmi.c 1.7 causes large boot delays

Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Sat Jun 3 15:17:31 2023 UTC (18 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.2: +33 -9 lines
Pull up following revision(s) (requested by sborrill in ticket #1639):

	sys/dev/ipmi.c: revision 1.10

Ignore non-recoverable and critical limits smaller than the warning limits.
These are usually invalid.

Name the limit flags to make code more readable.

Revision 1.9.10.1: download - view: text, markup, annotated - select for diffs
Sat Jun 3 15:16:08 2023 UTC (18 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +33 -9 lines
Pull up following revision(s) (requested by sborrill in ticket #191):

	sys/dev/ipmi.c: revision 1.10

Ignore non-recoverable and critical limits smaller than the warning limits.
These are usually invalid.

Name the limit flags to make code more readable.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Mar 22 13:00:54 2023 UTC (20 months, 2 weeks ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +33 -9 lines
Ignore non-recoverable and critical limits smaller than the warning limits.
These are usually invalid.

Name the limit flags to make code more readable.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Wed Dec 8 15:50:13 2021 UTC (2 years, 11 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +19 -13 lines
Pull up following revision(s) (requested by hauke in ticket #1392):

	sys/dev/ipmi.c: revision 1.6
	sys/dev/ipmi.c: revision 1.7
	sys/dev/ipmi.c: revision 1.8
	sys/dev/ipmi.c: revision 1.9

Fail open when ipmi device was found.
Clear sc_envsys on failure to prevent double-free.

ipmi(4): Use config_pending_incr/decr.
Don't abuse autoconf's private (and incoherent) dv_flags.

ipmi(4): Notify config_pending_decr when ready, not when dying.
Should fix hang at boot.

ipmi(4): Tidy up ipmi_thread a little.
- Join on detach -- don't free anything until thread has exited; thread
  may still be using stuff.
- Nix dead error branch -- malloc(M_WAITOK) cannot fail.
- x = malloc(sizeof(x[0]) * n), not x = malloc(sizeof(type_t) * n)

Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:27 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +19 -13 lines
Sync w/ HEAD.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jun 15 00:20:33 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -10 lines
ipmi(4): Tidy up ipmi_thread a little.

- Join on detach -- don't free anything until thread has exited; thread
  may still be using stuff.
- Nix dead error branch -- malloc(M_WAITOK) cannot fail.
- x = malloc(sizeof(x[0]) * n), not x = malloc(sizeof(type_t) * n)

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jun 14 22:00:10 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -3 lines
ipmi(4): Notify config_pending_decr when ready, not when dying.

Should fix hang at boot.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jun 12 12:15:43 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4 lines
ipmi(4), intelfb(4): Use config_pending_incr/decr.

Don't abuse autoconf's private (and incoherent) dv_flags.

Revision 1.5.10.1: download - view: text, markup, annotated - select for diffs
Sun Jun 6 20:30:51 2021 UTC (3 years, 5 months ago) by cjep
Branches: cjep_sun2x
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +11 -3 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jun 6 11:48:55 2021 UTC (3 years, 5 months ago) by mlelstv
Branches: MAIN
CVS tags: cjep_sun2x-base1
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -3 lines
Fail open when ipmi device was found.
Clear sc_envsys on failure to prevent double-free.

Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Tue Aug 18 09:36:36 2020 UTC (4 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -6 lines
Pull up following revision(s) (requested by nonaka in ticket #1056):

	sys/dev/ipmi.c: revision 1.5

ipmi(4): Fixed a bug that incorrect condition is notified.

When the value obtained from the sensor is below the lower limit of
the critical threshold, it is notified that the value is below the lower
limit of the warning threshold.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Aug 17 08:34:36 2020 UTC (4 years, 3 months ago) by nonaka
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf, cjep_sun2x
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -6 lines
ipmi(4): Fixed a bug that incorrect condition is notified.

When the value obtained from the sensor is below the lower limit of
the critical threshold, it is notified that the value is below the lower
limit of the warning threshold.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:04 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +2517 -0 lines
Sync with HEAD

Revision 1.4.2.1
Sat May 18 08:38:00 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.4: +0 -2517 lines
file ipmi.c was added on branch phil-wifi on 2019-06-10 22:07:04 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat May 18 08:38:00 2019 UTC (5 years, 6 months ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: phil-wifi, netbsd-9
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +274 -6 lines
Add experimental userland interface to IPMI driver. Currently, transactions
(like sensor readout) are locked, so that a userland program may interfere with
envsys operation.

To use this you need a program like ipmitool built with OpenIPMI support.

Revision 1.2.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:25 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.2.2.3: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.3: +65 -22 lines
Synch with HEAD

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Tue Jan 1 05:38:34 2019 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.2.2.2: preferred, colored
Changes since revision 1.2.2.2: +5 -4 lines
Bring in some fixes from HEAD to address a couple of build breaks (in
i386 ipmi driver and sun2 rump tests).  Also fix a 'resolve conflict'
from previous commit in sparc64

With this, I am able to successfully build 66 out of 67 architectures
(the same architectures as handled by the releng build server.  The
only exception is evbarm64 which has a strange build failure during
the installcd step - the same failure occurs on HEAD.  It seems to be
something in the build itself, perhaps a difference between handling
of -O vs -M (MAKEOBJDIR vs MAKEOBJDIRPREFIX).

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Dec 28 12:44:15 2018 UTC (5 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, isaki-audio2-base, isaki-audio2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +65 -22 lines
Be more verbose about the IPMI device.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:47 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.2.2.1: preferred, colored
Changes since revision 1.2.2.1: +2205 -0 lines
Sync with HEAD, resolve a few conflicts

Revision 1.2.2.1
Wed Dec 26 06:45:58 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
FILE REMOVED
Changes since revision 1.2: +0 -2206 lines
file ipmi.c was added on branch pgoyette-compat on 2018-12-26 14:01:47 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 06:45:58 2018 UTC (5 years, 11 months ago) by mlelstv
Branches: MAIN
Branch point for: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -4 lines
Fix 32bit build.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Dec 25 11:56:13 2018 UTC (5 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-compat-1226
Make ipmi driver available to other platforms.
Add ACPI attachment.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>