Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hw-mgmt: scripts: Fix creation and removal of psuN_i2c_bus files #1554

Open
wants to merge 1 commit into
base: V.7.0040.3000_BR
Choose a base branch
from

Conversation

felixradensky
Copy link
Collaborator

These files are created when PSU cables are plugged in and removed when PSU cable are plugged out. Instead, they should be created and removed when PSUs are plugged in and plugged out respectively. Otherwise there is no way to distingush between dummy PSU and real PSU that was disconnected from power.

Bug: 4176785

These files are created when PSU cables are plugged in
and removed when PSU cable are plugged out. Instead,
they should be created and removed when PSUs are plugged in
and plugged out respectively. Otherwise there is no way to
distingush between dummy PSU and real PSU that was
disconnected from power.

Bug: 4176785

Signed-off-by: Felix Radensky <[email protected]>
sholeksandr
sholeksandr previously approved these changes Jan 16, 2025
fi
find_i2c_bus
i2c_comex_mon_bus_default=$(< $i2c_comex_mon_bus_default_file)
comex_bus=$((i2c_comex_mon_bus_default+i2c_bus_offset))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wonder if we can receive such event with comex_i2c_bus.
Maybe this check is not required.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was copied from hw-management-thermal-events.sh It was added by Vadim in this commit: be275d9. There are many places where comex_i2c_bus is checked

@felixradensky
Copy link
Collaborator Author

RERUN

@felixradensky
Copy link
Collaborator Author

RERUN

@felixradensky
Copy link
Collaborator Author

RERUN

@acoifmannvidia acoifmannvidia self-requested a review January 19, 2025 15:33
@felixradensky
Copy link
Collaborator Author

RERUN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants