All,
Currently IPMI Direct plug-in recognizes modules that support PICMG
Extension version 5.0. However I am coming across AMC modules that
support PICMG Extension version 4.0. I would like to enhance the plug-in
to recognize modules that support 4.0 as well. Here is the patch that
does that. Please review and let me know if you have any comments and/or
concerns. If I don't hear any, I will commit the patch early next week.
Thanks,
--
diff -urNp openhpi/plugins/ipmidirect/ipmi.cpp openhpi_amcs/plugins/ipmidirect/ipmi.cpp
--- openhpi/plugins/ipmidirect/ipmi.cpp 2008-06-05 12:12:30.000000000 -0600
+++ openhpi_amcs/plugins/ipmidirect/ipmi.cpp 2008-10-23 14:43:39.000000000 -0600
@@ -1847,7 +1847,7 @@ cIpmi::AllocConnection( GHashTable *hand
stdlog << "AllocConnection: IPMITimeout " << m_con_ipmi_timeout << " ms.\n";
// default is 1s for ATCA systems
- m_con_atca_timeout = GetIntNotNull( handler_config, "AtcaConnectionTimeout", 1000 );
+ m_con_atca_timeout = GetIntNotNull( handler_config, "AtcaConnectionTimeout", 5000 );
stdlog << "AllocConnection: AtcaTimeout " << m_con_atca_timeout << " ms.\n";
unsigned int enable_sel_on_all = GetIntNotNull( handler_config, "EnableSelOnAll", 0 );
diff -urNp openhpi/plugins/ipmidirect/ipmi_mc.cpp openhpi_amcs/plugins/ipmidirect/ipmi_mc.cpp
--- openhpi/plugins/ipmidirect/ipmi_mc.cpp 2008-06-05 12:12:30.000000000 -0600
+++ openhpi_amcs/plugins/ipmidirect/ipmi_mc.cpp 2008-10-23 14:41:33.000000000 -0600
@@ -431,6 +431,12 @@ cIpmiMc::CheckTca()
m_is_tca_mc = true;
return;
}
+ else if ( m_picmg_major == 4 )
+ {
+ stdlog << "MC " << m_addr.m_slave_addr << " is an AMC module , PICMG Extension version " << (int)m_picmg_major << "." << (int)m_picmg_minor << "\n";
+ m_is_tca_mc = true;
+ return;
+ }
else if ( m_picmg_major == 5 )
{
stdlog << "MC " << m_addr.m_slave_addr << " is a MicroTCA MC, PICMG Extension version " << (int)m_picmg_major << "." << (int)m_picmg_minor << "\n";
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel