Management of non-intelligent RTM

Hello Sylvain,

I believe that the LEDs are off by default is the expected behavior, only the blue LED is automatically used to indicate the host-swap state. The other LEDs can be controlled by IPMI commands or locally, see also the following thread:

https://cern-ipmc-forum.web.cern.ch/t/cern-ipmc-front-panel-leds-allow-for-led-control/111/11

However mainfru should be replaced with rtmfru here. Please also note that I have not tested this, given that we do not have a board with an RTM. You could also use the additional LEDs in the RTM algorithmic power sequencing as you already do for the front-board.

Two of the LED related defines are however wrong, can you please use the following instead:

#define CFG_RTM_FRU_LED_DEFAULT_COLORS \
LED_LC_RED | LED_OVR_RED, \
LED_LC_GREEN | LED_OVR_GREEN
#define CFG_RTM_FRU_LED_SIGNALS \
{ { [LED_SIGNAL_RED] = USER_IO_28_ACTL, } }, \
{ { [LED_SIGNAL_GREEN] = USER_IO_29_ACTL, } }

However I’m not sure if this will make any difference to the behavior.

cheers,

Stefan