OpenBSD CVS

CVS log for src/sys/dev/ipmivar.h


[BACK] Up to [local] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Sat Jan 23 12:10:08 2021 UTC (3 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.33: +4 -1 lines
Diff to previous 1.33 (colored)

OPAL implements firmware calls that abstract communicating with the BMC over
IPMI.  Use these calls to add support for impi(4) on PowerNV systems.

ok dlg@

Revision 1.33 / (download) - annotate - [select for diffs], Sun Mar 29 09:31:10 2020 UTC (4 years, 2 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Add glue to make ipmi(4) attach to FDT.

ok deraadt@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Dec 19 09:01:50 2019 UTC (4 years, 5 months ago) by kettenis
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Use bus_size_t as the type for the base address.

ok deraadt@, dlg@

Revision 1.31 / (download) - annotate - [select for diffs], Mon Aug 19 18:31:02 2019 UTC (4 years, 9 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.30: +9 -1 lines
Diff to previous 1.30 (colored)

Add support for SMBus System Interface (SSIF).

ok jmatthew@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Aug 13 18:31:23 2019 UTC (4 years, 9 months ago) by kettenis
Branch: MAIN
Changes since 1.29: +4 -29 lines
Diff to previous 1.29 (colored)

Reorganize the ipmi(4) code a bit in anticipation of adding SSIF support:
- Put function prototypes in more logical places.
- Inroduce a ipmi_attach_common() function.
- Move all the SMBIOS related code to the end of the file and only
  compile it in on amd64 & i386.

ok jmatthew@ and deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Aug 12 09:56:47 2019 UTC (4 years, 10 months ago) by kettenis
Branch: MAIN
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

Remlve command mutex.  It is unnecessary since commands are already
serialized by the use of a taskq and it prevents sendmsg/endmsg from
being able to sleep.  This hurts when implementing SSIF since some
i2c controllers sleep while waiting for transactions on the i2c bus to
complete.

ok jmatthew@, deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 5 06:29:01 2016 UTC (8 years, 4 months ago) by uebayasi
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.27: +12 -15 lines
Diff to previous 1.27 (colored)

Implement FreeBSD-compatible IOCTL to access BMC in ipmi(4)

Initial help & testing by jmatthew@
Code review & input by mpi@
Final review & OK by jsg@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jan 12 10:44:32 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.26: +2 -0 lines
Diff to previous 1.26 (colored)

Use task to execute command except polling context.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 12 09:11:59 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.25: +2 -0 lines
Diff to previous 1.25 (colored)

Use task to execute watchdog tickle.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jan 11 14:39:23 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.24: +10 -8 lines
Diff to previous 1.24 (colored)

Make sendmsg() and recvmsg() functions take only struct ipmi_cmd *.
Handle interface specific command length more nicely.  No functional
changes.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 11 14:29:40 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

Allocate command data buffer on softc and use it from both ipmi_sendcmd()
and ipmi_recvcmd().  No functional changes.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 11 14:08:58 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Refactor buildmsg() functions to take struct ipmi_cmd * instead of 6
arguments.  No functional changes.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 11 13:12:50 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.21: +17 -0 lines
Diff to previous 1.21 (colored)

Introduce struct ipmi_cmd and have ipmi_cmd() function.  IPMI command
sequence is always a pair of send and receive; call both from ipmi_cmd().
By making ipmi_cmd() take only one argument struct ipmi_cmd *, this also
helps to prepare to call ipmi_cmd() as a task.

No functional changes intended.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jan 11 12:54:33 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.20: +0 -2 lines
Diff to previous 1.20 (colored)

Remove useless sc_poll flag because it is always 1.  Remove unused global
ipmi_poll too.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 10 14:17:00 2016 UTC (8 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

When stopping wdog (via wdog_shutdown() e.g. before entering shutdown),
clear DONTSTOP bits.  Without this, BMC records, at least on some NEC
servers, watchdog timer expiration event, which only confuses admins.

OK kettenis@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jan 7 07:49:18 2015 UTC (9 years, 5 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.18: +20 -8 lines
Diff to previous 1.18 (colored)

Fix impi(4) to make watchdog work and not to panic.

diff from uebayasi jsg
ok uebayasi

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 22 16:55:31 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

split userland & kernel struct sensor/sensordev so that the addition
of new fields in the future is less disruptive.  This is done similar
to how struct proc is handled for ps(1).  ok jmc (man page changes)
tested fkr simon, and more suggestions from millert

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 23 17:46:39 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

adapt to new two-level sensor api; Constantine A. Murenin

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 28 20:46:12 2006 UTC (17 years, 10 months ago) by marco
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

Only read 1 sensor at a time instead of all of them.  This should help
systems that have a burst of activity every 10 seconds.

Also lower the polling frequency from 10 to 5 seconds.

ok jordan@

Revision 1.15 / (download) - annotate - [select for diffs], Sun May 21 20:55:26 2006 UTC (18 years ago) by alek
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Replace lockmgr with rwlock; help and ok marco@

Revision 1.14 / (download) - annotate - [select for diffs], Mon May 15 00:50:57 2006 UTC (18 years, 1 month ago) by marco
Branch: MAIN
Changes since 1.13: +27 -27 lines
Diff to previous 1.13 (colored)

Kill evil spacing.

Revision 1.13 / (download) - annotate - [select for diffs], Mon May 15 00:46:55 2006 UTC (18 years, 1 month ago) by marco
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

Make _bmc_io_wait 1 second instead of 500ms.
Prevent multiple reads and writes to the bmc at the same time which could
interrupt a complete bmc transaction.

tested by various people.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 8 22:51:18 2006 UTC (18 years, 1 month ago) by gwk
Branch: MAIN
Changes since 1.11: +1 -50 lines
Diff to previous 1.11 (colored)

Add smbios support for i386 and amd64, fix ipmi to use this new functionallity,
hook up some sysctls to add system vendor/product/version and UUID reporting.

"get it in" deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Sat May 6 15:05:19 2006 UTC (18 years, 1 month ago) by wilfried
Branch: MAIN
Changes since 1.10: +1 -40 lines
Diff to previous 1.10 (colored)

remove a block of duplicated defines, ok marco

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 5 21:28:29 2006 UTC (18 years, 5 months ago) by marco
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.9: +17 -17 lines
Diff to previous 1.9 (colored)

Kill all typedef struct goo.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 4 23:07:02 2006 UTC (18 years, 5 months ago) by marco
Branch: MAIN
Changes since 1.8: +11 -10 lines
Diff to previous 1.8 (colored)

Make bitfields readable. ok jordan@

Revision 1.8 / (download) - annotate - [select for diffs], Fri Dec 16 03:16:47 2005 UTC (18 years, 5 months ago) by marco
Branch: MAIN
Changes since 1.7: +17 -1 lines
Diff to previous 1.7 (colored)

Fix 2 issues reported by beck.

1. Sun v20z rebooted dunring autoconf.  This was due to reading a byte and
   discarding it at an inapropriate time.
2. The Sun is so fast that it could exhaust the busy counter.  This has been
   replaced with a timeout/tsleep mechanism that is more predictable.  As
   a bonus we no longer busy wait in ipmi which should improve overall
   throughput.

ok beck@ jordan@ dlg@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 28 23:47:42 2005 UTC (18 years, 6 months ago) by jordan
Branch: MAIN
Changes since 1.6: +22 -1 lines
Diff to previous 1.6 (colored)

Added ipmi watchdog code, based on esm watchdog code by dlg@
Added signextend function to cleanup conversion routine
ok marco@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 10 11:20:00 2005 UTC (18 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.5: +7 -7 lines
Diff to previous 1.5 (colored)

__attribute__((packed)) is a gccism. use __packed instead which will be
expanded to the directive appropriate to the current compiler.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 19 23:45:04 2005 UTC (18 years, 7 months ago) by jordan
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

KNF fixes
ok marco@

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 19 23:35:53 2005 UTC (18 years, 7 months ago) by jordan
Branch: MAIN
Changes since 1.3: +20 -9 lines
Diff to previous 1.3 (colored)

Oops.. part of ipmi_thread fixes
ok marco@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 18 23:08:23 2005 UTC (18 years, 7 months ago) by marco
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Scan SMBIOS before calling config_attach() to prevent unnecessary kernel print.

Written with jordan@ help.
ok deraadt@

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 4 22:04:25 2005 UTC (18 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

spacing

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 4 21:59:41 2005 UTC (18 years, 8 months ago) by marco
Branch: MAIN

Add initial IPMI implementation.  Currently only the KCS retrieval method is
supported.  SMIC and BMC are being worked on.  IPMI will remain disabled for
now.

Code written by Jordan Hargrave <jordan underscore hargrave at hotmail dot com>

help grange@ and deraadt@
ok deraadt@

This form allows you to request diff's 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.