Andrew Geissler | ff7983f | 2015-03-01 09:39:29 -0600 | [diff] [blame^] | 1 | From d569d04ce1b7451af590465e1befab0ae3634ccf Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard J. Knight <rjknight@us.ibm.com> |
| 3 | Date: Fri, 27 Feb 2015 22:13:21 -0600 |
| 4 | Subject: [PATCH 5/7] Mark Centaurs as present/functionl on IPL |
| 5 | |
| 6 | -Update Centaur status sensor after discove targets is called |
| 7 | to initialize the Centaur Func sensors on the BMC |
| 8 | |
| 9 | Change-Id: I28b1047b50b690b97a20093721467f45455c5217 |
| 10 | RTC:124846 |
| 11 | (cherry picked from commit dd9502f744de8c09425d677570825699a979128f) |
| 12 | --- |
| 13 | src/usr/ipmi/ipmisensor.C | 15 ++++++++++++--- |
| 14 | 1 files changed, 12 insertions(+), 3 deletions(-) |
| 15 | |
| 16 | diff --git a/src/usr/ipmi/ipmisensor.C b/src/usr/ipmi/ipmisensor.C |
| 17 | index fba66a6..4b5b478 100644 |
| 18 | --- a/src/usr/ipmi/ipmisensor.C |
| 19 | +++ b/src/usr/ipmi/ipmisensor.C |
| 20 | @@ -894,14 +894,19 @@ namespace SENSOR |
| 21 | // get all targets of the passed in type, functional or not |
| 22 | switch( i_type ) |
| 23 | { |
| 24 | - case TARGETING::TYPE_PROC: |
| 25 | - getAllChips( l_tList, TARGETING::TYPE_PROC, false ); |
| 26 | - break; |
| 27 | |
| 28 | case TARGETING::TYPE_DIMM: |
| 29 | getAllLogicalCards( l_tList, TARGETING::TYPE_DIMM, false ); |
| 30 | break; |
| 31 | |
| 32 | + case TARGETING::TYPE_MEMBUF: |
| 33 | + getAllChips( l_tList, TARGETING::TYPE_MEMBUF, false ); |
| 34 | + break; |
| 35 | + |
| 36 | + case TARGETING::TYPE_PROC: |
| 37 | + getAllChips( l_tList, TARGETING::TYPE_PROC, false ); |
| 38 | + break; |
| 39 | + |
| 40 | case TARGETING::TYPE_CORE: |
| 41 | getAllChiplets( l_tList, TARGETING::TYPE_CORE, false); |
| 42 | break; |
| 43 | @@ -1024,6 +1029,10 @@ namespace SENSOR |
| 44 | |
| 45 | void updateBMCSensorStatus() |
| 46 | { |
| 47 | + |
| 48 | + // send status of all MEMBUF targets |
| 49 | + updateBMCSensorStatus(TARGETING::TYPE_MEMBUF); |
| 50 | + |
| 51 | // send status of all DIMM targets |
| 52 | updateBMCSensorStatus(TARGETING::TYPE_DIMM); |
| 53 | |
| 54 | -- |
| 55 | 1.7.4.1 |
| 56 | |