summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarri Devender Rao <devenrao@in.ibm.com>2018-03-20 09:25:25 -0500
committerMatt Spinler <spinler@us.ibm.com>2018-03-23 17:11:21 +0000
commit49b3e649570ecb0d2725777b08af9799de737855 (patch)
tree5e670cc16351362e684f58d210dceeb2a89c5470
parent694e8dc744efa2ee4ce8bb74c866c817b3f91fc3 (diff)
downloadphosphor-mrw-tools-49b3e649570ecb0d2725777b08af9799de737855.zip
phosphor-mrw-tools-49b3e649570ecb0d2725777b08af9799de737855.tar.gz
Fix sensorReadingType value for vrm_vdd_temp_sensor during parsing
At present sensorReadingType value for vrm_vdd_temp_sensor is set to 0 in MRW file. Due to this sensor value is not retrieved by IPMI sdr list command. Temporarily forcing the value to 1 till the same is fixed in MRW with issue openbmc/openbmc#3026 Change-Id: Id67f16d814d06495023caad49088e2de5ae17fa9 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
-rwxr-xr-xgen_ipmi_sensor.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/gen_ipmi_sensor.pl b/gen_ipmi_sensor.pl
index 9cd6728..f975290 100755
--- a/gen_ipmi_sensor.pl
+++ b/gen_ipmi_sensor.pl
@@ -145,6 +145,11 @@ foreach my $target (sort keys %{$targetObj->getAllTargets()})
my $rExp = $sensorTypeConfig->{$sensorName}->{"rExp"};
my $unit = $sensorTypeConfig->{$sensorName}->{"unit"};
my $scale = $sensorTypeConfig->{$sensorName}->{"scale"};
+ # TODO: openbmc/openbmc#3026
+ # Fix IPMI_SENSOR_READING_TYPE for vrm_vdd_temp_sensor
+ if ($sensorName eq "vrm_vdd_temp_sensor") {
+ $sensorReadingType = 1;
+ }
$data{'MULTIPLIER_M'} = $multiplierM;
$data{'OFFSET_B'} = $offsetB;
$data{'B_EXP'} = $bExp;
OpenPOWER on IntegriCloud