Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GT/GTI: fix_hgx_gpu_model_missing_issue
Summary: # Description Per Nv doc#1069815 NVIDIA HGX Baseboard Redfish Design Collaterals and doc#1108844 Blackwell HGX 8-GPU Redfish Design Collateral, gpu model name should be retrived by the below refish command: curl -X GET http://192.168.31.1/redfish/v1/Chassis/HGX_Chassis_0/Assembly Here are the changes in the PR: 1. Use the above command to retrieve GPU model 2. store gpu model name into kv file once read successfully 3. If can't retrieve gpu model, return the default model (H100) Example: root@bmc-oob:~# curl -X GET http://192.168.31.1/redfish/v1/Chassis/HGX_Chassis_0/Assembly { "odata.id": "/redfish/v1/Chassis/HGX_Chassis_0/Assembly", "odata.type": "#Assembly.v1_3_0.Assembly", "Assemblies": [ { "odata.id": "/redfish/v1/Chassis/HGX_Chassis_0/Assembly#/Assemblies/0", "Location": { "PartLocation": { "LocationType": "Embedded" } }, "MemberId": "0", "Model": "P5612-B00", "Name": "Board FRU Assembly", "PartNumber": "699-25612-0002-204", "PhysicalContext": "GPUSubsystem", "ProductionDate": "2022-12-17T08:54:00Z", "SerialNumber": "1665022550432", "Vendor": "NVIDIA" }, { "odata.id": "/redfish/v1/Chassis/HGX_Chassis_0/Assembly#/Assemblies/1", "Location": { "PartLocation": { "LocationType": "Embedded" } }, "MemberId": "1", "Model": "NVIDIA HGX H100 8-GPU", . . . X-link: facebookexternal/openbmc.quanta#4429 Test Plan: Build and test pass on GTI system with FW bundle v1.3, v1.4 and v1.5 root@bmc-oob:~# rm /tmp/cache_store/gpu_model root@bmc-oob:~# fw-util hgx --version erot-fpga Version: 00.02.0150.0000_n00 root@bmc-oob:~# kv get gpu_model "NVIDIA HGX H100 8-GPU" root@bmc-oob:~# sensor-util hgx hgx: HGX_HSC_0_Power_W (0x1) : 88.292 Watts | (ok) HGX_HSC_1_Power_W (0x Reviewed By: amithash Differential Revision: D62107276 fbshipit-source-id: 0cf70a50647340a4124431a589b4574cb00248fe
- Loading branch information