Hi Anton,

 

Poking around in the code a little more, I see where the limitation comes from – in CreateSensorNum() in ipmi_resource.cpp.   With a cursory look, it doesn’t appear that it would be very difficult to raise the number of sensors supported.  In fact, it looks to me like the m_sensor_num array in the resource object is not used for anything other than this assignment of a virtual sensor number.  So, it could either be expanded to 768, or maybe even 1024 entries - or, if is not seen as desirable to use that much memory, with a bit more coding, it could be turned into a bit map of 1024 bits that simply flag which sensor numbers have been assigned.  Then it would take just 32 bytes, rather than the 256 words (1K bytes) it is using now.

 

David

 

From: Anton Pak [mailto:avpak@users.sf.net]
Sent: Monday, June 08, 2015 1:32 PM
To: [openhpi:bugs]
Subject: [openhpi:bugs] #1697 Wrong sensor number may be in ipmidirect events

 

And I witnessed ATCA board with 200 sensors.
So the limit is likely to be reached in the near future.


[bugs:#1697] Wrong sensor number may be in ipmidirect events

Status: open
3.6.0: Future
Labels: IPMI Direct plugin
Created: Wed Feb 22, 2012 06:58 PM UTC by David McKinley
Last Updated: Fri Jul 13, 2012 05:21 AM UTC
Owner: nobody

When the ipmidirect plugin creates RDRs for sensors found in SDRs, it creates a "virtual sensor number" to use for the sensor in the RDR. Typically, this is the same value as the sensor number found in the SDR, but if there are multiple sensors found in the SDR with the same sensor number (could happen if they have different LUNs, for example) then the "virtual sensor number" used in the RDR will be changed for one of them.

The problem is that when events are generated (both regular sensor events and sensor enable change events), the code puts the SDR sensor number in the HPI event instead of the virtual sensor number. It should use the virtual sensor number, since that is how the sensor is known to the HPI user.


Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openhpi/bugs/1697/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/