Skip to content

Commit

Permalink
GTI Hack: remove to monitoring optic sensor with thor nic
Browse files Browse the repository at this point in the history
Summary:
# Description
Thor2 uses a QSFP connector instead of an OSFP connector and does not have optical sensors.

The mapping table for the result of  "kv get swb_nic_source": 0: CX7
1: IB CX7
2: Thor2

X-link: facebookexternal/openbmc.quanta#4426

Test Plan:
Build and test pass with GTI MI300 system and thor2 NIC

root@bmc-oob:~# kv get swb_nic_source
2

root@bmc-oob:~# fw-util swb --version swb_nic0
SWB_NIC0 Version: 230.2.53.0

root@bmc-oob:~# sensor-util swb
swb:
SWB_NIC0_TEMP_C              (0x1) :  51.000 C     | (ok)
SWB_NIC0_VOLT_V              (0x2) :  12.120 Volts | (ok)
SWB_NIC0_CURR_A              (0x3) :   1.123 Amps  | (ok)
SWB_NIC0_PWR_W               (0x4) :  13.574 Watts | (ok)

Reviewed By: wangx6f

Differential Revision: D62035071

fbshipit-source-id: a628fa322fbaf1ef7e03a93e646e699d4bb13ee0
  • Loading branch information
JimmyHuang777 authored and facebook-github-bot committed Sep 3, 2024
1 parent 7ae90dc commit 707a25f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ if [ $mb_product != "GTA" ]; then
val=$((16#${array[3]}))
if [ "$val" -eq 1 ]; then
kv set swb_nic_source "$SWB_1ST_SOURCE"
elif [ "$val" -eq 0 ] && [ "$mb_product" == "GTI" ]; then
kv set swb_nic_source "$SWB_3RD_SOURCE"
else
kv set swb_nic_source "$SWB_2ND_SOURCE"
#Support Fan table config3
Expand Down

0 comments on commit 707a25f

Please sign in to comment.