Skip to content

Commit

Permalink
[Mellanox] Update SN5640-simx enabled processes (#21478)
Browse files Browse the repository at this point in the history
- Why I did it
Support running hw-management service on SN5640 emulation platform.

- How I did it
Use physical EEPROM instead of the fake one
Do not skip PSUd, PCId, thermal control daemon
Adjust PCIe and thermal configuration files

- How to verify it
Run Nvidia simulation on SN5640 (ASIC and Platform)
  • Loading branch information
noaOrMlnx authored Jan 23, 2025
1 parent 9b9da85 commit 7af2cc9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"skip_ledd": true,
"skip_xcvrd": true,
"skip_psud": true,
"skip_pcied": true,
"skip_thermalctld": true
"skip_fancontrol": true
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
# Copyright (c) 2020-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -162,6 +162,13 @@ class DpuInterfaceEnum(Enum):
'fw_control_ports': [64] # 0 based sfp index list
}
},
'x86_64-nvidia_sn5640_simx-r0': {
'thermal': {
"capability": {
"comex_amb": False,
}
}
},
'x86_64-nvidia_sn4280_simx-r0': {
'thermal': {
"capability": {
Expand Down
5 changes: 3 additions & 2 deletions platform/mellanox/mlnx-platform-api/sonic_platform/eeprom.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#
# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES.
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
# Copyright (c) 2019-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -41,7 +42,7 @@
#
EEPROM_SYMLINK = "/var/run/hw-management/eeprom/vpd_info"
platform_name = DeviceDataManager.get_platform_name()
platform_supporting_simx = ['x86_64-nvidia_sn4280_simx-r0', 'x86_64-mlnx_msn4700_simx-r0']
platform_supporting_simx = ['x86_64-nvidia_sn4280_simx-r0', 'x86_64-mlnx_msn4700_simx-r0', 'x86_64-mlnx_msn5640_simx-r0']
if platform_name and 'simx' in platform_name and not platform_name in platform_supporting_simx:
if not os.path.exists(EEPROM_SYMLINK):
if is_host():
Expand Down

0 comments on commit 7af2cc9

Please # to comment.