<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/ipmi/ipmi.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-09-29T00:44:02Z</updated>
<entry>
<title>ipmi(4): Limit maximum watchdog pre-timeout interval.</title>
<updated>2021-09-29T00:44:02Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-09-15T01:06:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f6b026eee3201025a02cf81ca41c225d56b99d2'/>
<id>urn:sha1:5f6b026eee3201025a02cf81ca41c225d56b99d2</id>
<content type='text'>
Previous code by default setting pre-timeout interval to 120 seconds
made impossible to set timeout interval below that, resulting in error
0xcc (Invalid data field in Request) at least on Supermicro boards.

To fix that limit maximum pre-timeout interval to ~1/4 of the timeout
interval, that sounds like a reasonable default: not too short to fire
too late, but also not too long to give many false reports.

MFC after:	2 weeks

(cherry picked from commit 6c2d4404161aa2bac1c7992afbf5a763f1a6f66e)
</content>
</entry>
<entry>
<title>ipmi(4): Add more watchdog error checks.</title>
<updated>2021-08-13T01:19:13Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-07-30T03:39:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8e6bcb7f56f12ca2d237b4684223ebb5c5d9092c'/>
<id>urn:sha1:8e6bcb7f56f12ca2d237b4684223ebb5c5d9092c</id>
<content type='text'>
Add request submission status checks before checking req-&gt;ir_compcode,
otherwise it may be zero just because of initialization.

Add checks for req-&gt;ir_compcode errors in ipmi_reset_watchdog() and
ipmi_set_watchdog().  In first case explicitly check for 0x80, which
means timer was not previously set, that I found happening after BMC
cold reset.  This change makes watchdog timer to recover instead of
permanently ignoring reset errors after BMC reset or upgraded.

MFC after:	2 weeks
Sponsored by:   iXsystems, Inc.

(cherry picked from commit 9d3b47abbba74830661e90206cc0f692b159c432)
</content>
</entry>
<entry>
<title>MFC r359937:</title>
<updated>2020-04-28T17:59:37Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2020-04-28T17:59:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=18fec7394da653a176be797ebcdd1eaf55897f9d'/>
<id>urn:sha1:18fec7394da653a176be797ebcdd1eaf55897f9d</id>
<content type='text'>
Centralize compatability translation macros.

Copy the CP, PTRIN, etc macros from freebsd32.h into a sys/abi_compat.h
and replace existing definitation with includes where required. This
eliminates duplicate code and allows Linux and FreeBSD compatability
headers to be included in the same files.

Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24275
</content>
</entry>
<entry>
<title>Fix a module Makefile error on amd64 so the IPMI HW interfaces are built.</title>
<updated>2018-08-16T15:59:02Z</updated>
<author>
<name>Doug Ambrisko</name>
<email>ambrisko@FreeBSD.org</email>
</author>
<published>2018-08-16T15:59:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3991dbf3fa9262cfe379ef3005e0e8ec7271e9eb'/>
<id>urn:sha1:3991dbf3fa9262cfe379ef3005e0e8ec7271e9eb</id>
<content type='text'>
When the module is being unloaded and no HW interfaces were created don't
clean up.  This was exposed by the amd64 module build issue.
</content>
</entry>
<entry>
<title>sys/dev: further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T14:52:40Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T14:52:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=718cf2ccb9956613756ab15d7a0e28f2c8e91cab'/>
<id>urn:sha1:718cf2ccb9956613756ab15d7a0e28f2c8e91cab</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
</content>
</entry>
<entry>
<title>As a follow-on to r325378, make the shutdown timer default to 0 as well.</title>
<updated>2017-11-05T05:05:18Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2017-11-05T05:05:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9ee3ea71b3a555ea42befa1780a72d73586be26f'/>
<id>urn:sha1:9ee3ea71b3a555ea42befa1780a72d73586be26f</id>
<content type='text'>
Otherwise an orderly shutdown will initiate a watchdog that will cause
a 7 minute delayed reboot *by default*,  In the freebsd.org cluster's case
this often worked out be a surprise reboot a minute or two after the
machine came back up.
</content>
</entry>
<entry>
<title>Make the startup timeout 0 seconds by default rathern than 420s.  This</title>
<updated>2017-11-04T03:01:58Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-11-04T03:01:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c154763db191f624bcc86f7485ddbe9b3b401716'/>
<id>urn:sha1:c154763db191f624bcc86f7485ddbe9b3b401716</id>
<content type='text'>
makes the default fail safe when watchdogd is disabled (which is also
the default).

Sponsored by
</content>
</entry>
<entry>
<title>Make time we wait for a power cycle tunable.</title>
<updated>2017-10-26T22:53:02Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-10-26T22:53:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=16f0063e9904f88042e372c1a99652da3a20beb5'/>
<id>urn:sha1:16f0063e9904f88042e372c1a99652da3a20beb5</id>
<content type='text'>
hw.ipmi.cycle_time is the time to wait for the power down phase of the
ipmi power cycle before falling back to either reboot or halt.

Sponsored by: Netflix
</content>
</entry>
<entry>
<title>Various IPMI watchdog timer improvements</title>
<updated>2017-10-26T22:52:51Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-10-26T22:52:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=14d004507e781ca3bdff351269f689eb7609b48d'/>
<id>urn:sha1:14d004507e781ca3bdff351269f689eb7609b48d</id>
<content type='text'>
o Make hw.ipmi.on a tuneable
o Changes to keep shutdown from hanging indefinitately after the wd
  would normally have been disabled.
o Add support for setting pretimeout (which fires an interrupt
  some time before the actual watchdog expires)
o Allow refinement of the actions to take when the watchdog expires
o Allow special startup timeout to keep us from hanging in boot
  before watchdogd is started, but after we've loaded the kernel.

Obtained From: Netflix OCA Firmware
</content>
</entry>
<entry>
<title>Implement IPMI support for RB_POWRECYCLE</title>
<updated>2017-10-25T15:30:53Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-10-25T15:30:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1170c2fecc28eb00f6f9d470c804450408d7a0e7'/>
<id>urn:sha1:1170c2fecc28eb00f6f9d470c804450408d7a0e7</id>
<content type='text'>
Some BMCs support power cycling the chassis via the chassis control
command 2 subcommand 2 (ipmitool called it 'chassis power cycle').  If
the BMC supports the chassis device, register a shutdown_final handler
that sends the power cycle command if request and waits up to 10s for
it to take effect. To minimize stack strain, we preallocate a ipmi
request in the softc. At the moment, we're verbose about what we're
doing.

Sponsored by: Netflix
</content>
</entry>
</feed>
