Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Changes to fix 10G ports for Z9264f
Browse files Browse the repository at this point in the history
Changes to fix show environment for Z9264f
  • Loading branch information
srideepDell committed Sep 6, 2019
1 parent 3d73b8d commit fd2b0d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def print_temperature_sensors():
print ' CPU Near Temp: ',\
(get_pmc_register('CPU_temp'))
print ' PSU FAN AirFlow Temperature 1: ',\
(get_pmc_register('PSU1_AF_temp'))
(get_pmc_register('PSU1AF_temp'))
print ' PSU FAN AirFlow Temperature 2: ',\
(get_pmc_register('PSU2_AF_temp'))
(get_pmc_register('PSU2AF_temp'))

ipmi_sensor_dump()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ switch_board_modsel() {
python /usr/bin/pcisysfs.py --set --offset $hex --val 0x10 --res $resource > /dev/null 2>&1
done
}

switch_board_sfp_tx_en() {
resource="/sys/bus/pci/devices/0000:04:00.0/resource0"
python /usr/bin/pcisysfs.py --set --offset 0x4400 --val 0x60 --res $resource > /dev/null 2>&1
python /usr/bin/pcisysfs.py --set --offset 0x4410 --val 0x60 --res $resource > /dev/null 2>&1
}

# Readout firmware version of the system and
# store in /var/log/firmware_versions
platform_firmware_versions() {
Expand Down Expand Up @@ -164,6 +171,7 @@ if [ "$1" == "init" ]; then
switch_board_qsfp "new_device"
switch_board_sfp "new_device"
switch_board_modsel
switch_board_sfp_tx_en
python /usr/bin/qsfp_irq_enable.py
platform_firmware_versions

Expand Down

0 comments on commit fd2b0d8

Please sign in to comment.