Add vpd data for Rainier machine
PATCH 1/1 Add vpd data for Rainier machine
In reply to Ninad PalsuleFrom: Ninad Palsule <[email protected]>
The VPD data is added for system and BMC FRU. This data is fabricated.
Tested:
- The system-vpd.service is active.
- VPD service related to bmc is active.
--- hw/arm/aspeed.c | 6 ++++-- hw/arm/aspeed_eeprom.c | 45 +++++++++++++++++++++++++++++++++++++++++- hw/arm/aspeed_eeprom.h | 5 +++++ 3 files changed, 53 insertions(+), 3 deletions(-)
hw/arm/aspeed.c +4 -2
@@ -788,8 +788,10 @@ static void rainier_bmc_i2c_init(AspeedMachineState *bmc) 0x48);i2c_slave_create_simple (aspeed_i2c_get_bus (&soc->i2c,8 ),TYPE_TMP105 ,0x4a ); -at24c_eeprom_init (aspeed_i2c_get_bus (&soc->i2c,8 ),0x50 ,64 * KiB); -at24c_eeprom_init (aspeed_i2c_get_bus (&soc->i2c,8 ),0x51 ,64 * KiB); +at24c_eeprom_init_rom (aspeed_i2c_get_bus (&soc->i2c,8 ),0x50 , +64 * KiB, rainier_bb_fruid, rainier_bb_fruid_len); +at24c_eeprom_init_rom (aspeed_i2c_get_bus (&soc->i2c,8 ),0x51 , +64 * KiB, rainier_bmc_fruid, rainier_bmc_fruid_len);create_pca9552 (soc,8 ,0x60 );create_pca9552 (soc,8 ,0x61 );/* Bus 8: ucd90320@11 */
hw/arm/aspeed_eeprom.c +44 -1
53 lines not on this page · raw message
hw/arm/aspeed_eeprom.h +5 -0
@@ -22,4 +22,9 @@ extern const size_t fby35_bmc_fruid_len;extern const uint8_t yosemitev2_bmc_fruid[];extern const size_t yosemitev2_bmc_fruid_len; +extern const uint8_t rainier_bb_fruid[]; +extern const size_t rainier_bb_fruid_len; +extern const uint8_t rainier_bmc_fruid[]; +extern const size_t rainier_bmc_fruid_len; +#endif
Signature · 1 line
2.37.2
cover Add vpd data for Rainier machine
From: Ninad Palsule <[email protected]>
Please review the change for vpd data for rainier.
Ninad Palsule (1):
Add vpd data for Rainier machine
hw/arm/aspeed.c | 6 ++++-- hw/arm/aspeed_eeprom.c | 45 +++++++++++++++++++++++++++++++++++++++++- hw/arm/aspeed_eeprom.h | 5 +++++ 3 files changed, 53 insertions(+), 3 deletions(-)
Signature · 1 line
2.37.2
Quoted 7 lines · Ninad Palsule
From: Ninad Palsule <[email protected]>
Please review the change for vpd data for rainier.
Ninad Palsule (1):
Add vpd data for Rainier machine
Please can you send all patchsets to qemu-devel (cc'ing qemu-arm) -- we have automated tooling which only looks on the main list for patches.
thanks
-- PMM
Hello Ninad,
Quoted 8 lines · Ninad Palsule
From: Ninad Palsule <[email protected]>
The VPD data is added for system and BMC FRU. This data is fabricated.
Tested:
- The system-vpd.service is active.
- VPD service related to bmc is active.Signed-off-by Ninad Palsule <[email protected]>
Could you please resend a v2 copying qemu-devel@ as Peter pointed out ?
Thanks,
C.
Quoted 95 lines
--- hw/arm/aspeed.c | 6 ++++-- hw/arm/aspeed_eeprom.c | 45 +++++++++++++++++++++++++++++++++++++++++- hw/arm/aspeed_eeprom.h | 5 +++++ 3 files changed, 53 insertions(+), 3 deletions(-)hw/arm/aspeed.c +4
-2@@ -788,8 +788,10 @@ static void rainier_bmc_i2c_init(AspeedMachineState *bmc) 0x48);i2c_slave_create_simple (aspeed_i2c_get_bus (&soc->i2c,8 ),TYPE_TMP105 ,0x4a ); -at24c_eeprom_init (aspeed_i2c_get_bus (&soc->i2c,8 ),0x50 ,64 * KiB); -at24c_eeprom_init (aspeed_i2c_get_bus (&soc->i2c,8 ),0x51 ,64 * KiB); +at24c_eeprom_init_rom (aspeed_i2c_get_bus (&soc->i2c,8 ),0x50 , +64 * KiB, rainier_bb_fruid, rainier_bb_fruid_len); +at24c_eeprom_init_rom (aspeed_i2c_get_bus (&soc->i2c,8 ),0x51 , +64 * KiB, rainier_bmc_fruid, rainier_bmc_fruid_len);create_pca9552 (soc,8 ,0x60 );create_pca9552 (soc,8 ,0x61 );/* Bus 8: ucd90320@11 */ hw/arm/aspeed_eeprom.c +44
-1@@ -119,9 +119,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e ,0x56 ,0x54 ,0x4f ,0x43 ,0x00 ,0x00 ,0x37 , +0x00 ,0x20 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x50 ,0x46 ,0x08 ,0x00 ,0x00 , +0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x1c ,0x00 ,0x52 ,0x54 , +0x04 ,0x56 ,0x54 ,0x4f ,0x43 ,0x50 ,0x54 ,0x0e ,0x56 ,0x49 ,0x4e ,0x49 , +0x00 ,0x00 ,0x57 ,0x00 ,0x1e ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x50 ,0x46 , +0x01 ,0x00 ,0x00 ,0x00 ,0x1a ,0x00 ,0x52 ,0x54 ,0x04 ,0x56 ,0x49 ,0x4e , +0x49 ,0x44 ,0x52 ,0x04 ,0x44 ,0x45 ,0x53 ,0x43 ,0x48 ,0x57 ,0x02 ,0x30 , +0x31 ,0x50 ,0x46 ,0x04 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +}; +const size_t tiogapass_bmc_fruid_len =sizeof (tiogapass_bmc_fruid);const size_t fby35_nic_fruid_len =sizeof (fby35_nic_fruid);const size_t fby35_bb_fruid_len =sizeof (fby35_bb_fruid);const size_t fby35_bmc_fruid_len =sizeof (fby35_bmc_fruid); -const size_t yosemitev2_bmc_fruid_len =sizeof (yosemitev2_bmc_fruid); +const size_t rainier_bb_fruid_len =sizeof (rainier_bb_fruid); +const size_t rainier_bmc_fruid_len =sizeof (rainier_bmc_fruid);hw/arm/aspeed_eeprom.h +5
-0@@ -22,4 +22,9 @@ extern const size_t fby35_bmc_fruid_len;extern const uint8_t yosemitev2_bmc_fruid[];extern const size_t yosemitev2_bmc_fruid_len; +extern const uint8_t rainier_bb_fruid[]; +extern const size_t rainier_bb_fruid_len; +extern const uint8_t rainier_bmc_fruid[]; +extern const size_t rainier_bmc_fruid_len; +#endif
Hello Cedric,
Quoted 5 lines · Cédric Le Goater
Hello Ninad,
Quoted 2 lines · Ninad Palsule
From: Ninad Palsule <[email protected]>
Quoted 8 lines
Quoted 6 lines
The VPD data is added for system and BMC FRU. This data is fabricated.
Tested:
- The system-vpd.service is active.
- VPD service related to bmc is active.Signed-off-by Ninad Palsule <[email protected]>Could you please resend a v2 copying qemu-devel@ as Peter pointed out ?
Sorry about that. I have sent the V2.
Quoted 140 lines
Reviewed-by Cédric Le Goater <[email protected]>Thanks,
C.
Quoted 131 lines
---
hw/arm/aspeed.c | 6 ++++--
hw/arm/aspeed_eeprom.c| 45 +++++++++++++++++++++++++++++++++++++++++-hw/arm/aspeed_eeprom.h| 5 +++++3 files changed, 53 insertions(+), 3 deletions(-)hw/arm/aspeed.c +2
-2@@ -788,8 +788,10 @@ static voidrainier_bmc_i2c_init (AspeedMachineState *bmc) 0x48);i2c_slave_create_simple (aspeed_i2c_get_bus (&soc->i2c,8 ),TYPE_TMP105 , 0x4a); - at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 8), 0x50, 64 * KiB); - at24c_eeprom_init(aspeed_i2c_get_bus(&soc->i2c, 8), 0x51, 64 * KiB); + at24c_eeprom_init_rom(aspeed_i2c_get_bus(&soc->i2c, 8), 0x50, + 64 * KiB, rainier_bb_fruid,
rainier_bb_fruid_len);
+ at24c_eeprom_init_rom(aspeed_i2c_get_bus(&soc->i2c, 8),0x51, + 64 * KiB,rainier_bmc_fruid,rainier_bmc_fruid_len);
create_pca9552(soc, 8, 0x60);
create_pca9552(soc, 8, 0x61);
/* Bus 8: ucd90320@11 */hw/arm/aspeed_eeprom.c +7
-0@@ -119,9 +119,52 @@ const uint8_t yosemitev2_bmc_fruid[] = { 0x6e, 0x66, 0x69, 0x67, 0x20, 0x41, 0xc1, 0x45, }; +const uint8_t rainier_bb_fruid[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,0x00 ,0x84 , + 0x28, 0x00, 0x52, 0x54, 0x04, 0x56, 0x48, 0x44, 0x52, 0x56,0x44 ,0x02 , + 0x01, 0x00, 0x50, 0x54, 0x0e, 0x56, 0x54, 0x4f, 0x43, 0x00,0x00 ,0x37 , + 0x00, 0x4a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x46, 0x08,0x00 ,0x00 , + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00,0x52 ,0x54 , + 0x04, 0x56, 0x54, 0x4f, 0x43, 0x50, 0x54, 0x38, 0x56, 0x49,0x4e ,0x49 , + 0x00, 0x00, 0x81, 0x00, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00,
0x56,0x53,
+0x59,0x53,0x00,0x00,0xbb,0x00,0x27,0x00,0x00,0x00,0x00,0x00,
+0x56,0x43,0x45,0x4e,0x00,0x00,0xe2,0x00,0x27,0x00,0x00,0x00,
+0x00,0x00,0x56,0x53,0x42,0x50,0x00,0x00,0x09,0x01,0x19,0x00,
+0x00,0x00,0x00,0x00,0x50,0x46,0x01,0x00,0x00,0x00,0x36,0x00,
+0x52,0x54,0x04,0x56,0x49,0x4e,0x49,0x44,0x52,0x04,0x44,0x45,
+0x53,0x43,0x48,0x57,0x02,0x30,0x31,0x43,0x43,0x04,0x33,0x34,
+0x35,0x36,0x46,0x4e,0x04,0x46,0x52,0x34,0x39,0x53,0x4e,0x04,
+0x53,0x52,0x31,0x32,0x50,0x4e,0x04,0x50,0x52,0x39,0x39,0x50,
+0x46,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x23,0x00,0x52,0x54,
+0x04,0x56,0x53,0x59,0x53,0x53,0x45,0x07,0x49,0x42,0x4d,0x53,
+0x59,0x53,0x31,0x54,0x4d,0x08,0x32,0x32,0x32,0x32,0x2d,0x32,
+0x32,0x32,0x50,0x46,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x23,
+0x00,0x52,0x54,0x04,0x56,0x43,0x45,0x4e,0x53,0x45,0x07,0x31,
+0x32,0x33,0x34,0x35,0x36,0x37,0x46,0x43,0x08,0x31,0x31,0x31,
+0x31,0x2d,0x31,0x31,0x31,0x50,0x46,0x04,0x00,0x00,0x00,0x00,
+0x00,0x00,0x15,0x00,0x52,0x54,0x04,0x56,0x53,0x42,0x50,0x49,
+0x4d,0x04,0x50,0x00,0x10,0x01,0x50,0x46,0x04,0x00,0x00,0x00,
+0x00,0x00,hw/arm/aspeed_eeprom.c +5
-0+}; + +/* Rainier BMC FRU */ +const uint8_t rainier_bmc_fruid[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00,0x84,
+0x28,0x00,0x52,0x54,0x04,0x56,0x48,0x44,0x52,0x56,0x44,0x02,
+0x01,0x00,0x50,0x54,0x0e,0x56,0x54,0x4f,0x43,0x00,0x00,0x37,
+0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x50,0x46,0x08,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0x00,0x52,0x54,
+0x04,0x56,0x54,0x4f,0x43,0x50,0x54,0x0e,0x56,0x49,0x4e,0x49,
+0x00,0x00,0x57,0x00,0x1e,0x00,0x00,0x00,0x00,0x00,0x50,0x46,
+0x01,0x00,0x00,0x00,0x1a,0x00,0x52,0x54,0x04,0x56,0x49,0x4e,
+0x49,0x44,0x52,0x04,0x44,0x45,0x53,0x43,0x48,0x57,0x02,0x30,
+0x31,0x50,0x46,0x04,0x00,0x00,0x00,0x00,0x00,hw/arm/aspeed_eeprom.c +2
-0+}; +const
size_ttiogapass_bmc_fruid_len=sizeof(tiogapass_bmc_fruid); constsize_tfby35_nic_fruid_len=sizeof(fby35_nic_fruid); constsize_tfby35_bb_fruid_len=sizeof(fby35_bb_fruid); constsize_tfby35_bmc_fruid_len=sizeof(fby35_bmc_fruid); -
constsize_tyosemitev2_bmc_fruid_len=sizeof(yosemitev2_bmc_fruid);hw/arm/aspeed_eeprom.c +2
-0+const size_t rainier_bb_fruid_len =sizeof (rainier_bb_fruid); +const size_t rainier_bmc_fruid_len =sizeof (rainier_bmc_fruid);hw/arm/aspeed_eeprom.h +4
-0@@ -22,4 +22,9 @@ extern const size_t fby35_bmc_fruid_len; extern const uint8_t yosemitev2_bmc_fruid[]; extern const size_t yosemitev2_bmc_fruid_len; +extern const uint8_t rainier_bb_fruid[]; +extern const size_t rainier_bb_fruid_len; +extern const uint8_t rainier_bmc_fruid[]; +extern const size_t rainier_bmc_fruid_len; + #endif
Hello Peter,
Quoted 10 lines · Peter Maydell
Quoted 6 lines · Ninad Palsule
From: Ninad Palsule <[email protected]>
Please review the change for vpd data for rainier.
Ninad Palsule (1):
Add vpd data for Rainier machinePlease can you send all patchsets to qemu-devel (cc'ing qemu-arm) -- we have automated tooling which only looks on the main list for patches.
Sorry about that. I have sent the V2.
Quoted 3 lines
thanks
-- PMM