-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P11 JSON:Refactored Rainier 1S4U system JSON #465
base: P11_Dev
Are you sure you want to change the base?
P11 JSON:Refactored Rainier 1S4U system JSON #465
Conversation
bca5fad
to
857830c
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter TODO: 8. Added postAction section wherever required. 9. Added preAction section for dimm Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
857830c
to
4c5d8c2
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter TODO: 8. Added postAction section wherever required. 9. Added preAction section for dimm Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
4c5d8c2
to
db5db8a
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter TODO: 8. Added postAction section wherever required. 9. Added preAction section for dimm Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
db5db8a
to
96afe04
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter TODO: 8. Added postAction section wherever required. 9. Added preAction section for dimm Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
a58604e
to
ce945d5
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 8. Added postAction section wherever required. 9. Add GPIO presence preAction section for dimms. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 8. Added postAction section wherever required. 9. Add GPIO presence preAction section for dimms. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
ce945d5
to
8bf1f1e
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 8. Added postAction section wherever required. 9. Add GPIO presence preAction section for dimms. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
8bf1f1e
to
763962f
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 10. GPIO presence preAction for DIMMs has not been added as "presence-cpx" GPIO lines are not defined in Rainier .dts file. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
763962f
to
af0c906
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 10. GPIO presence preAction for DIMMs has not been added as "presence-cpx" GPIO lines are not defined in Rainier .dts file. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
af0c906
to
b854718
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing presence gpio info for frus like cpu, vrm, tpm, etc.. please check
configuration/ibm/5001002.json
Outdated
@@ -0,0 +1,3232 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name of the JSON should be 50001002.json. Please rename.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
configuration/ibm/5001002.json
Outdated
@@ -0,0 +1,3232 @@ | |||
{ | |||
"devTree": "conf-aspeed-bmc-ibm-rainier-1s4u.dtb", | |||
"backupRestoreConfigPath": "/usr/share/vpd/backup_restore_5001002.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename to : /usr/share/vpd/backup_restore_50001002.json"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
configuration/ibm/50001002.json
Outdated
} | ||
} | ||
}, | ||
"postAction": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post action is required to bind led driver of Bear river/Bear lake cable card. This slot at location C11 , supports JBOF card only. which doesn't have LED driver to bind. so post action is not required here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P0-C11
slot supports "NVMe JBOF" and "Cable Card" ?
Also, master
branch JSON
openpower-vpd-parser/config/ibm/50001002.json
Line 1409 in e0e1549
"pcaChipAddress": "30-0061", |
pcaChipAddress
defined?
configuration/ibm/50001002.json
Outdated
} | ||
} | ||
}, | ||
"postAction": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This slot @ C8 also supports JBOF card only. so postAction not required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P0-C8 slot supports "NVMe JBOF" and "OpenCAPI"?
Also, master
branch JSON
openpower-vpd-parser/config/ibm/50001002.json
Line 1516 in e0e1549
"pcaChipAddress": "28-0061", |
pcaChipAddress
defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't go with pcaChipAddress from older JSON. As per workbook, C8 supports either NVMe JBOF card or open capi and not cable card.
configuration/ibm/50001002.json
Outdated
"serviceName": "xyz.openbmc_project.Inventory.Manager", | ||
"inherit": false, | ||
"embedded": false, | ||
"devAddress": "13-0050", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove devAddress wherever present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
"/sys/bus/i2c/drivers/at24/111-0050/eeprom": [ | ||
{ | ||
"inventoryPath": "/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0", | ||
"serviceName": "xyz.openbmc_project.Inventory.Manager", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
powerOffOnly = true is missing for DDIMMs. please add
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 10. GPIO presence preAction for DIMMs has not been added as "presence-cpx" GPIO lines are not defined in Rainier .dts file. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
b854718
to
3d60601
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 10. GPIO presence preAction for DIMMs has not been added as "presence-cpx" GPIO lines are not defined in Rainier .dts file. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
3d60601
to
bd7ebf4
Compare
This commit has rainier 1S4U system JSON refactored with the following changes: 1. Add devTree tag. 2. Add backupRestoreConfigPath tag. 3. Add serviceName in every parent FRU and sub FRU section. 4. Updated inventoryPath tag with complete path. 5. Removed unused tag "gpioI2CAddress" 6. Removed busType, driverType as we have systemCmd tag which has command to bind. 7. Added Slot interface to all NVMe drives 8. Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs: 1. Control panel display 2. PCIe4 x16 or PCIe5 x8 adapter 3. OpenCAPI adapter 4. PCIe5 x8 adapter (pcie_card7) 5. PCIe5 x8 adapter (pcie_card9) 6. PCIe5 x8 adapter (pcie_card11) 7. PCIe4 x8 adapter 9. Added systemCmd bind preAction section for dimms 0-7 TODO: 10. GPIO presence preAction for DIMMs has not been added as "presence-cpx" GPIO lines are not defined in Rainier .dts file. Test: This JSON file has not been tested yet due to unavailability of Rainier 1S4U system. Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712 Signed-off-by: Souvik Roy <[email protected]>
bd7ebf4
to
d8c1570
Compare
The workbook specifies presence GPIO lines for CPU and VRM, but the same are not there in the .dts file : https://github.com/openbmc/linux/blob/dev-6.6/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-rainier.dts |
"value": 1 | ||
}, | ||
"systemCmd": { | ||
"cmd": "echo 25-0053 > /sys/bus/i2c/drivers/at24/bind" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where did you get this value from ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
50001002.json
in the master
branch had a devAddress
tag which was used to bind the driver.
We no longer use devAddress
tag in the P11_Dev
JSONs and instead hard code the address in the cmd
openpower-vpd-parser/config/ibm/50001002.json
Line 1290 in e0e1549
"devAddress": "25-0053", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workbook says "No card currently exists" for PCIe C6, also there is no "green box" for VPD line for C6. Should we ignore Slot C6 then?
As for the address calculation, I will take the example of PCIe C7,
as per Workbook, C6, C7, C9 and C8 are on I2C7
of AST2600.
Looking at the .dts file, we need to look at &i2c6
on the .dts , since BMC FW starts at I2C0
https://github.com/openbmc/linux/blob/5f8b7d4b2e9604d03ae06f1a2dd5a1f34c33e533/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-rainier.dts#L510
.dts tells us i2c6
has 3 TI TMP275 temperature sensors and a NXP PCA9546 (4-channel I2C-bus switch with reset)
-
From workbook, "VPD Green box", C7 VPD EEPROM is on
A4
A4 >> 1 = 0x52
(Right shift because BMC FW uses 7 bit addressing) -
If we look for
0x52
underi2c6
in the .dts, C7 is oni2c6mux0chn1
whose register address is0x4D
0x4D >> 1 = 0x26
So for accessing C7's EEPROM via Linux user space, we need to bind the device at 26-0052
to the at24
driver, so we are doing echo 26-0052 > /sys/bus/i2c/drivers/at24/bind
This commit has rainier 1S4U system JSON refactored with the following changes:
Add devTree tag.
Add backupRestoreConfigPath tag.
Add serviceName in every parent FRU and sub FRU section.
Updated inventoryPath tag with complete path.
Removed unused tag "gpioI2CAddress"
Removed busType, driverType as we have systemCmd tag which has command to bind.
Added Slot interface to all NVMe drives
Modified preAction and PostFailAction sections as per P11 code and added postAction if required for following FRUs:
Added systemCmd bind preAction section for DIMMs 0-7
TODO:
presence-cpx
GPIO lines are not defined in Rainier .dts file (https://github.com/openbmc/linux/blob/dev-6.6/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-rainier.dts)Test:
This JSON file has not been tested yet due to unavailability of Rainier
1S4U system.
Change-Id: Id25da9126e97a33a902eecfb1291f2cf17cec712