Skip to content

Commit

Permalink
Add mlxbf-ptm driver load. This driver implements debugfs interface for
Browse files Browse the repository at this point in the history
sodimm, cpu_core temperature reading on Bluefield systems

Signed-off-by: Oleksandr Shamray <[email protected]>
  • Loading branch information
sholeksandr committed Oct 22, 2023
1 parent c635ee7 commit a4f997e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions usr/usr/bin/hw-management.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2243,6 +2243,12 @@ load_modules()
modprobe drivetemp
fi
fi

if ! lsmod | grep -q "mlxbf-ptm"; then
if [ -f /lib/modules/`uname -r`/kernel/drivers/platform/mellanox/mlxbf-ptm.ko ]; then
modprobe mlxbf-ptm
fi
fi
}

set_config_data()
Expand Down

0 comments on commit a4f997e

Please sign in to comment.