| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
The Inventory.pm module queries the MRW to find the system inventory,
and this is a simple wrapper script to print out that inventory for
debug.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I2cd56f954a856077b252c7cede07bccaad440e42
|
|
|
|
|
|
|
|
| |
In the 5.0 Linux kernel, an I2C device path segment changed:
i2c@1e78a000 -> bus@1e78a000
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I6eec4ca9d570d7c6eceac0338c88967a78907b48
|
|
|
|
|
|
|
| |
To add Trusted Platform Module(TPM) FRU to inventory.
Change-Id: Ic88ca4e959a639491f82f63d5a6bb4239df7502b
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Spelling errors found using github.com/lucasdemarchi/codespell
A tool to fix common misspellings.
This tool is licensed under GNU General Public License, version 2.
Change-Id: I32c896bf6268704843adf188bae2fd0884ed95c5
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I69ee4acb10f64a6939703d4226245f44a6ebff5d
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
At present temperature sensors are added with hand coded
YAML file the same has been modified to auto-generate
by reading the MRW file.
Change-Id: I4d7294395305dba09bfb526682cb32977c79ee05
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
|
|
|
|
|
|
|
|
| |
Seperated out write interfaces to a new method so that
it can be used for writing temperature sensor data.
Change-Id: I6b44d1dc2623230c3ec726e1ad18790a93ad7497
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the script finds a '[[ ]]' expression in the input file,
it will evaluate that expression and write out the result
in place of it. It will resolve both the MRW attributes and
any variables passed in from the command line first.
For example, if the attribute FOO has a value of 50 in the MRW,
and the program was started with: -v "MY_VAR1=200 MY_VAR2=400"
then the line
[[(MRW_FOO * MY_VAR1) + 5]]..[[MRW_FOO * MY_VAR2]]
would get written out as:
10005..20000
Change-Id: Ia7aa9ab61f99b5d9620d77fa1329bd6d7b0221bc
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the first commit in a series to solve the problem
of needing to adjust an MRW attribute's value before writing
it back out to the settings override value.
This will be done by allowing mathematical expressions to
be present in the input file, and evaluating them to get
a final result that will get written out. These expressions
can also use variables whose names and values are passed in
from the command line.
This commit adds the ability to pass in the optional variables
and values from the command line with the -v argument, like:
-v "VAR1=VAL1 VAR2=VAL2"
Change-Id: I3baf47b38d6da25c5abdaae175ddfc6e97176927
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This workaround didn't use the LED instance name if the
LED was associated with a FRU, and used the FRU name instead
for the device tree LED name.
That won't work in the case that the LED is associated with
a FRU but the device tree name already matches the instance
name and not the FRU name, so the code must assume that the
instance name will match the device tree name.
Change-Id: Ifb2b73dcfd6d9d252b418c04a0ebfd1b98ea8e24
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
EntityID will be given by the config yaml and unique
instance id would be generated for each entityID.
eg: if proc is having entityID is x and if there is
y instances of type x then this commit would generate
y unique id for type x.
Change-Id: Ie7d848d96a6f335999eb226a4267b347f0e4ab2b
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
a) Entity ID is read from the MRW for each sensor populated in yaml.
b) Entity instance is populated for corresponding entity ID.
c) Sensor name pattern is read from the config yaml.
Change-Id: I933650f9c99f79ee60d5513cf7ff9b7f6b14b768
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
|
|
|
|
|
|
|
|
| |
A new block for prereq is added to the sensor config
which tells pre-req values for a dbus property
Change-Id: I87e657fefb16f5bc1bfe01f61b25cbdf7af56790
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Replace any MRW variables in the setting YAML with
their MRW value.
An MRW variable must be in the MRW_<MRW variable name> format.
Change-Id: Ic7e163beb4f5d13cae00ff2013b1c4080d39a256
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Created gen_settings.pl, to be used to get settings boundary and
default values like OPEN_POWER_N_PLUS_ONE_BULK_POWER_LIMIT_WATTS
from the MRW. Just the base commit for gen_settings.pl, more to
come.
Change-Id: Iea68db8e588c114fa600c0d3e87f4d763f783c01
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
|
|
|
|
| |
A pre-req condition can be added for a sensor value,
for example presence of a unit should be true for
functional to be true.
Change-Id: I7b87c7ffa29f06160164aba2b39c743f0f9c733f
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Fix up paths as per 4.10 Linux kernel.
This change will fix broken inventory path error log callouts.
Resolves openbmc/openbmc#2103.
Change-Id: I0406e39c720fb4316f3b58869d067a1dfe6cf620
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I had put an extra check to see if instance number is a digit
and used POSIX::isdigit for that. However, it's deprecated in
the PERL version that is in the mrw-tools.
Also, no other parsers are doing this explicit check since
the instance number has to be digit and is fundamental and
hence isdigit check is not needed.
Change-Id: I5922e466af6cdd9e9365c1d9ddf54b12a6763a5c
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
|
|
|
| |
Change-Id: I42963c23f238507e7b0b606208f4b260787649f2
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
- The input sensor yaml now uses the sensor instance name as the key,
instead of the sensor type. This was required because two sensors with
the same sensor type can map to different d-bus objects.
- The script has a work-around to map MRW occ paths to d-bus occ paths.
Simplify this workaround and add a TODO to remove the workaround.
Change-Id: I155fbcfe11a0dcc456415d70a026fe00de84051b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
For example:
Target: /sys-0/node-0/motherboard-0/proc_socket-0/module-0/p9_proc_m/occ
Name: /system/chassis/motherboard/cpu0/occ
Change-Id: I251dd3bcc7ff5fba8865242da5795aac0f13b56e
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Giving the config yaml directory will make the perl to merge
and break the existing perl script. Instead of a directory path
config.yaml itself is given as input to the gen_ipmi_sensor.pl.
Removed unsused attributes and fixed path for some virtual sensors.
Change-Id: Icef03392f0c350e81b63ef2d7c9c377bcff8ccbf
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
|
|
|
|
|
| |
Change-Id: If96240e12f42c87aa624bfda3ec9b7367272e2f5
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
LED contains a property called Priority. It is a requirement
that a given LED has its priority 'same' across all the groups
where this LED is a member. There was a bug in the LampTest
group, wherein all the LEDs had a forced priority of Blink
instead of what is the configured priority.
Change-Id: Iaf9b94357d5677265d84e8506431f845dfd32dd5
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Resolves openbmc/openbmc#1558
Added change to take additional parameters from input yaml
and get the path from input yaml if there is no proper
inventory path available.
Change-Id: I495ea16f9caea4fa911b0212c7edf55bfcb26b0f
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
|
|
|
|
|
|
|
|
| |
The MRW parser for IPMI sensor is updated to accept
multiple yamls and generate output sensor yaml.
Change-Id: I623071fe491b098d005215045acbf155ad5077a1
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
|
|
|
|
|
|
|
|
| |
Generate the device tree node that defines the
GPIOs used by OpenFSI.
Change-Id: Ie47f9961b884c575293b823e3631fa3bce647398
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
| |
If a particular LED is asserted with different actions as part of
multiple groups, the resulting action needs to be overridden by the
action priority set for that LED.
Change-Id: I82c7da636c53f16fbc1bd85254b46e0625e3909d
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generate output yaml containing inventory to sensor information
mapping by processing MRW and the config file. Sample entry in
the output yaml.
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core16:
sensorID: 0x8c
sensorType: 0x07
eventReadingType: 0x6F
offset: 0x08
Change-Id: I34a42b8d81c08fc14849b7d29162433319474cf8
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
LampTest currently expects all the LEDs to be blinking.
Fixes openbmc/openbmc#1288
Change-Id: Idf6728853612f6536e78f0f3c6555379e5b4e1b8
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
| |
The script will generate YAML containing information
about the fans in the system, including inventory name,
associated sensor names, and cooling zone information.
Change-Id: I32a8cc2422d549399b0bada841a914c57bd71777
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Certain LED groups must be present in all systems and they are
* BmcBooted
* PowerOn
If MRW does not define these, then these are to be defined in the script
and its fine to have no LEDs mapping to the group.
Change-Id: Ic99a019794145c6c2da5b0139198df9435024b93
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
| |
The script needs to be told which directory to
create its output files in.
Change-Id: I1cb34ef6d5492ec06998b957f26f62f425e00b7a
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Create gen_presence_yaml.pl to find the FRUs that use
tach readings as their presence detects, and create
the YAML definition necessary for mapping the tach
sensor readings to specific FRUs.
Change-Id: I3b3b1c4a32827b0efab2927353b0988880eaefa0
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I44a016f600c882c1cc4743bead2c8b54567512b7
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Generates a file to depict which dbus properties are implemented for a
sensor, and how IPMI sensor data map to those dbus properties.
This commit defines a YAML file which helps figure out the supported
dbus interface/properties for a sensor and how to get the sensor value.
Change-Id: I62ddd3b8546cd036663708c5aa6041523e399e4f
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit serves as a building block since the script can now just
print certain attributes (see output example below) for sensors
defined in the MRW.
Output example:
sensorID: sensorType: sensorReadingType: ObjectPath
0xa1 : 0x07 : 0x6F : /sys/chassis/board/cpu1/core0
Change-Id: Ice89a6b6294d94fded4eb92f628b8f62ef02b7ed
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
|
|
|
|
| |
Change-Id: Iac4ac954d256cf44bf1d95a483f212ece0bd343d
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge gen_i2c_callouts.pl and gen_proc_fsi_callouts.pl to a single
gen_callouts.pl.
The idea as to have a unified output generated for callouts,
irrespective of bus type. The output will be in YAML, as follows:
<sysfs path> : <Inventory path to be called out>
This will simplify usage for the FRU management code, as well as it
should be easier to support other bus types.
Change-Id: I8793be1207d905af1eb83b5b04383da39efbe02f
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I66ed072ca2259ae37617d9e166727e7308fa1170
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
This script generates processor callouts based on the FSI path. It
outputs this in YAML format:
FSI link off master processor: FRU path
Change-Id: Ib12e0574c733e3f8fe4b9f35a88183722e7b8692
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
adjustI2CPort converts the I2C port number from the MRW numbering scheme
to the Linux numbering scheme.
Change-Id: I22fc00eb8eab9c62b190f1c5c45af775f351c8b4
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: Idaa904dd059e65c6f28ff48696f20a31eb711882
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I61935045a87d68c21fb110628c140de4aba2a70b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I977cd0eb27c4c3d9187f814c144f7328e0c7791c
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The script writes I2C callout information to an output file in the
following YAML format:
I2C Port number:
I2C address: FRU path
Only those I2C ports that the BMC can talk to are considered.
Change-Id: Id673b114f77f9763514a3dd3f6ba95568983f4c6
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
| |
getEnclosingFru determines the nearest FRU enclosing a given Target.
Change-Id: I56533519c053171a98897a67368d1c1ba0d132b6
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
adjustI2CAddress converts input MRW-format I2C address to the standard
7-bit format.
Change-Id: I26328a7e8147b345b870be7798f7b5a6e66316d5
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I177a0112c852c67e84ee73e7d6d3709410aadee6
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|