Hi Hans, On Thu, 19 Nov 2009 10:56:29 +0100, Hans de Goede wrote: > On 11/18/2009 11:43 PM, Paul Harper wrote: > > I have ported the ipmisensors module to kernel version 2.6.29 and > > corrected the issues with fatal errors on loading and swizzling of > > device data. On my IBM development platform (3650) the module now works > > as expected and data from ipmitool and lm-sensors is in sync. > > > > I then did a test on a SuperMicro chassis and the module could not > > connect to the bmc. ipmitool works as expected on the SuperMicro. In > > examination of the ipmitool code, it appears that they have moved to > > IPMB comms rather than a direct connect to the BMC. > > > > Before I start changing ipmisensors to use IPMB comms, is there another > > preferred module to use when exposing sensors to lm-sensors and the > > vendor provides impi support? > > This is just my 2 cents, so before you actually act on this, it would be > good to get a second opinion, say Jean Delvare's . > > Given that there already are various userspace options to reading ipmi > sensors, which I assume work as non root (iow no direct io banging). An > alternative to using a kernel driver might be the extend libsensors > to be able to read sensor info from other sources then the hwmon > sysfs interface. > > what I envision is: > 1) abstraction of sensor source enumeration and reading in libsensors > 2) a plugin architecture to add support for different sensor sources > 3) Various plugins for example: > hwmon sysfs (of course) > something to read harddisk temps using smart > code to read ipmi info > > I think this would be really nice to have as currently many applications > have support for both libsensors and have separate code for things like > harddisks temps, etc. libsensors seems like a logical place to consolidate > this. I agree. We have already managed to merge ACPI thermal zone support into libsensors, by having the driver follow the standard sysfs interface. Getting all the other sensor types supported by libsensors would help reduce code duplication in end-user applications. Now, whether this should be handled in libsensors or in the kernel... is an open question. For IPMI, I don't know if "ipmitool sensor" can be run as non-root, this needs to be confirmed. I presume it depends on the permissions of the /dev/impi* nodes.If sensors information can indeed be retrieved by regular users, then it might be worth investigating. But we certainly don't want to parse the output of "ipmitool sensor", so we would have to copy the data retrieval code and convert the results to the libsensors internal format. We will have to duplicate code either way, be it in an ipmisensors kernel module, or in libsensors. I presume the key question is where the code duplication is cheaper and less risky. I have always wondered if ipmisensors and "ipmitool sensor" were safe to use together. For HDD temperature, I know you need to be root to access the data. hddtemp is a ugly hack. I suspect it would be better to write a kernel driver for this. > I must warn though, that this will require some surgery to libsensors, it was > never designed to do this. I admit I am a little frightened, but OTOH, the libsensors 3 code is much nicer than what we had in libsensors 2, it should be easier to extend. > If you are willing to spend effort on this, I would be happy to help were I > can! The bottom line is that anyone who pushes IPMI sensors support forward has my blessing. Honestly, I don't care that much whether it is in the kernel or in libsensors, as long as it finally happens. It has been pending for sooooo long :( -- Jean Delvare _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors