summaryrefslogtreecommitdiff
path: root/sys/dev/ipmi.c
AgeCommit message (Collapse)Author
2020-03-29Add glue to make ipmi(4) attach to FDT.Mark Kettenis
ok deraadt@
2020-03-19Plug memory leak of psensor if read_sensor does not return zero.tracey
CID 1491654 ok mpi@ kn@ florian@
2020-03-09Return error value when sending "sensor reading" is failed. This fixesYASUOKA Masahiko
"ipmi0: sendcmd fails" errors when there is a sensor which is enumurated but reading it is failed. ok mpi
2020-02-18ipmi(4): tsleep(9) -> tsleep_nsec(9)cheloha
There remains a polling sleep in this driver. We can fix it separately. ok mpi@
2020-01-11Make sure we use signed types in the sensor value calculation; 'char' isMark Kettenis
unsigned on some of our hardware platforms! ok deraadt@
2019-12-31Convert infinite sleeps to {m,t}sleep_nsec(9).Martin Pieuchot
ok kn@
2019-12-19Use bus_size_t as the type for the base address.Mark Kettenis
ok deraadt@, dlg@
2019-08-19Add support for SMBus System Interface (SSIF).Mark Kettenis
ok jmatthew@
2019-08-13Reorganize the ipmi(4) code a bit in anticipation of adding SSIF support:Mark Kettenis
- 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@
2019-08-12Remlve command mutex. It is unnecessary since commands are alreadyMark Kettenis
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@
2018-06-15Use IPL_MPFLOOR for ipmi mutex to prevent a interrupt which requiresYASUOKA Masahiko
KERNEL_LOCK(). This fixes the panic with with witness. diff from fukaumi at soum.co.jp. input and ok mpi
2018-04-13Don't panic if ipmi_sendcmd() failsYASUOKA Masahiko
diff from fukaumi at soum.co.jp. ok deraadt mpi
2018-01-01The missing NULL check for the return value of malloc(9) withAlexander Bluhm
M_NOWAIT is wrong. Use M_WAITOK in ipmi_match() during attach. OK kettenis@
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-06-29set c.c_maxrxlen to something. apparently lost a line somewhere.Ted Unangst
maybe it works now? :) from Colin Stolley via Paul B. Henson
2016-06-07per trending style, add continue to empty loops.Ted Unangst
ok mglocker
2016-03-27Always sleep at same priority.Martin Pieuchot
ok uebayasi@
2016-02-11ipmi(4) - Check sensor name length more carefullyMasao Uebayashi
Don't blindly trust sensor name info returned from BMC. Check them more carefully. Prevent DELL R210 II from panic'ing. Problem reported & tested by sthen@ Much feedback & close review & OK by jsg@
2016-02-07Comment.Masao Uebayashi
2016-02-07Remove a too strict assertion.Masao Uebayashi
2016-02-05Implement FreeBSD-compatible IOCTL to access BMC in ipmi(4)Masao Uebayashi
Initial help & testing by jmatthew@ Code review & input by mpi@ Final review & OK by jsg@
2016-01-25Replace magic numbers.Masao Uebayashi
2016-01-12Use task to execute command except polling context.Masao Uebayashi
2016-01-12Use task to execute watchdog tickle.Masao Uebayashi
2016-01-12Refactor ipmi_watchdog(); split tickle and set into separate functions.Masao Uebayashi
2016-01-11Make sendmsg() and recvmsg() functions take only struct ipmi_cmd *.Masao Uebayashi
Handle interface specific command length more nicely. No functional changes.
2016-01-11Allocate command data buffer on softc and use it from both ipmi_sendcmd()Masao Uebayashi
and ipmi_recvcmd(). No functional changes.
2016-01-11Refactor buildmsg() functions to take struct ipmi_cmd * instead of 6Masao Uebayashi
arguments. No functional changes.
2016-01-11Introduce struct ipmi_cmd and have ipmi_cmd() function. IPMI commandMasao Uebayashi
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.
2016-01-11Remove useless sc_poll flag because it is always 1. Remove unused globalMasao Uebayashi
ipmi_poll too.
2016-01-11Read values from disabled sensors if possible. From jmatthew@.Masao Uebayashi
2016-01-10Print a message to console when ipmi(4) watchdog is either enabled orMasao Uebayashi
disabled. Replace a magic number while here.
2016-01-10When stopping wdog (via wdog_shutdown() e.g. before entering shutdown),Masao Uebayashi
clear DONTSTOP bits. Without this, BMC records, at least on some NEC servers, watchdog timer expiration event, which only confuses admins. OK kettenis@
2016-01-09Correct sensor threashold handling by properly checking response of Get SensorMasao Uebayashi
Reading Command. Patch from jmatthew@. Extra review by kettenis@. Tested by me.
2016-01-07Copy received data only if it exists. Avoid panics in odd situations.Masao Uebayashi
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-06-21memory leak on failure; from Maxime VillardTheo de Raadt
2015-01-07Fix impi(4) to make watchdog work and not to panic.YASUOKA Masahiko
diff from uebayasi jsg ok uebayasi
2014-12-10Convert watchdog(4) devices to use autoconf(9) framework.Mike Belopuhov
ok deraadt, tests on glxpcib and ok mpi
2014-10-21Style + typos in debug printfs.Masao Uebayashi
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
don't need to be married. ok guenther miod beck jsing kettenis
2014-05-04format string fix for bus_space_tag_tStefan Fritsch
bus_space_tag_t is a pointer everywhere, except on i386, where it's an int. Cast to long. ok kettenis@ 'Right idiom' deraadt@
2013-07-03The ipmi threshold value may be negative. Respect the sign bitAlexander Bluhm
when checking wether an ipmi sensor is critial. From Matthias Pitzl; OK deraadt@
2013-04-10Fix various glitches in queue macro usage.Philip Guenther
ok millert@
2012-12-21tweak for malloc(9) calls:Gleydson Soares
- M_CANFAIL is useless here since that M_NOWAIT will return NULL immediately if no resources. OK mikeb@ mpi@
2012-10-17Swap arguments to wdog_register() since it is nicer, and prepareTheo de Raadt
wdog_shutdown() for external usage.
2010-05-24We sometimes compile kernels with -Wvariable-decl because it makes usTheo de Raadt
happier regarding potential kernel stack overflows, so just use the (small) maximum buffer size in one case. ok marco
2008-06-11replace the last missing xname header before an error message in get_sdr(); ↵Constantine A. Murenin
ok deraadt
2008-02-16Call sensordev_install() iff we find and sensor_attach() the individual sensors.Constantine A. Murenin
The call got misplaced in ipmi.c#rev1.59 on 2007-08-31. ok marco; tested todd