summaryrefslogtreecommitdiff
path: root/sys/dev/ipmi.c
AgeCommit message (Collapse)Author
2006-09-19fix all malloc()s to nowait|canfail and do not ignore errors reading sensor ↵Michael Shalayeff
status; marco@ ok
2006-09-17Move get ipmi id into the match function. This prevents attach from beingMarco Peereboom
called whenever there is no BMC and hence suppresses a ugly message when a bios lied that it had ipmi. tested beck@
2006-08-01Add a wait between send and receive command. Talked through with jordan.Marco Peereboom
2006-08-01Silence intermittent read errors.Marco Peereboom
Fix a bug in bt where the "get id" command fails by giving the bmc some extra time to gather the data.
2006-07-28KNFMarco Peereboom
2006-07-28Only read 1 sensor at a time instead of all of them. This should helpMarco Peereboom
systems that have a burst of activity every 10 seconds. Also lower the polling frequency from 10 to 5 seconds. ok jordan@
2006-07-28Fix BT interface by waiting for BMC_BUSY on writes.Jordan Hargrave
Found and ok marco
2006-05-21Replace lockmgr with rwlock; help and ok marco@Aleksander Piotrowski
2006-05-15Add device name when printing out errors. Pointed out by deraadt@Marco Peereboom
2006-05-15Make _bmc_io_wait 1 second instead of 500ms.Marco Peereboom
Prevent multiple reads and writes to the bmc at the same time which could interrupt a complete bmc transaction. tested by various people.
2006-05-12code we can readTheo de Raadt
2006-05-08Add smbios support for i386 and amd64, fix ipmi to use this new functionallity,Gordon Willem Klok
hook up some sysctls to add system vendor/product/version and UUID reporting. "get it in" deraadt@
2006-05-06if the fan data rate is per second convert it to per minute, ok marcoPeter Stromberg
2006-04-27from PAE work:Michael Shalayeff
since we are only interested in the page offset bits cast paddr_t to (smaller) u_long to shuddup gcc (;
2006-04-20Fix various printf() issues: too many arguments, not enough arguments, argumentMiod Vallat
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@
2006-01-29Disable iic whenever ipmi is enabled. This fixes boxes like Sun x4200 thatMarco Peereboom
freak out when more than one device driver touch the i2c devices. Reported by: Srebrenko Sehic <ssehic at gmail dot com> ok kettenis@
2006-01-19Replace SENSOR_ADD() macro with a pair of functionsAlexander Yurchenko
sensor_add()/sensor_del() so that sensors can be attached and detached dynamicaly. ok kettenis@ deraadt@ dlg@
2006-01-18Fix false positives of ipmi on older machines.Marco Peereboom
ok jordan@ tested by others
2006-01-05Kill all typedef struct goo.Marco Peereboom
2006-01-05Work around flawed IBM 325 eServer IPMI implementation.Marco Peereboom
Help and ok deraadt@ jordan@
2006-01-05Better debug verbosity values.Marco Peereboom
2006-01-05Adjust debug levels.Marco Peereboom
2006-01-05I got the time scale wrong with the previous commit. Now the advertisedMarco Peereboom
50ms timeout is actually 50ms during runtime.
2006-01-04Adjust timeout values. This was determined by using beck's ibm e325.Marco Peereboom
ok jordan
2005-12-16Fix 2 issues reported by beck.Marco Peereboom
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@
2005-12-13Add check for return value in recvcmd.Marco Peereboom
Unmap ipmi registers if attach fails. ok jordan@
2005-12-13no need for device name before failTheo de Raadt
2005-12-13Don't continue to poke ipmi registers if the ID command fails.Marco Peereboom
ok jordan@
2005-11-30spacingTheo de Raadt
2005-11-28Added ipmi watchdog code, based on esm watchdog code by dlg@Jordan Hargrave
Added signextend function to cleanup conversion routine ok marco@
2005-11-22Some BIOS' lie about location of ports. Prevent panic by checking ↵Marco Peereboom
bus_space_map. This works around bob's ipmi panic issue on the amd64 e325 IBM box. ok jordan@
2005-10-24Remove panic if polling thread can not be created.Marco Peereboom
ok jordan@
2005-10-21pretty up dmesg outputTheo de Raadt
2005-10-20KNF; marco okTheo de Raadt
2005-10-19Fixup case statements to use #define'sJordan Hargrave
suggested by deraadt ok marco@
2005-10-19Added readable case names for ipmi device typesJordan Hargrave
ok marco@
2005-10-19Added length test for ipmi_sensor_name stringJordan Hargrave
ok marco@
2005-10-19Changed poll to use kernel threads instead of in timer contextJordan Hargrave
ok marco@
2005-10-19Added status for chassis intrusion (critical if open)Jordan Hargrave
ok marco@
2005-10-19Changed order of reading sensor vs sensor status, failed sensors had invalidJordan Hargrave
reading ok marco@
2005-10-19Added code to properly read power supply installed/power stateJordan Hargrave
ok marco@
2005-10-19Added SMIC interface codeJordan Hargrave
ok marco@
2005-10-18Use MI trunc_page() & round_page(). Suggested by miod@ and grange@Marco Peereboom
2005-10-18Document Dell PowerEdge 8450 hackMarco Peereboom
2005-10-18Scan SMBIOS before calling config_attach() to prevent unnecessary kernel print.Marco Peereboom
Written with jordan@ help. ok deraadt@
2005-10-17knfTheo de Raadt
2005-10-17* Fix SMBIOS Table addressJordan Hargrave
mapped memory instead of ISA_HOLE_VADDR for SMBIOS tables in high memory * Added ipmi_poll variable to control sensor polling * Add Power Supply sensor type * Fixed chassis intrusion reading * Added Block-Transfer interface BT is transport protocol to BMC * Fixed threshold values Bits in Sensor reading did not contain correct values for threshold vioation; must compare reading against actual threshold. * KNF ok: marco@
2005-10-05pretty print & minor knf; ok marcoTheo de Raadt
2005-10-04Add initial IPMI implementation. Currently only the KCS retrieval method isMarco Peereboom
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@