-
Notifications
You must be signed in to change notification settings - Fork 341
Janga: config: Adjusted tmp422 sensor position to support 2nd and main source machine #442
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
base: main
Are you sure you want to change the base?
Janga: config: Adjusted tmp422 sensor position to support 2nd and main source machine #442
Conversation
@mikechoifb has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Thank you for the PR @joywu-coder. We are seeing merge errors on our side. Can you please rebase onto the latest main commit? |
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
a4dc071
to
0f02c51
Compare
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
1 similar comment
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
3e0fa2c
to
da9b664
Compare
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
Rebase the code and build. |
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
@mikechoifb, please reimport the pull request, thanks. |
@joywu-coder - Regarding your comment "The problem was that I put tmp422 on SMB_FRU_SLOT, which can only be loaded successfully on the main source." Can you please explain why this is so with more details? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add more details in the PR Summary on why this sensor is being moved to a different PmUnit in the config. Is the sensor physically moved in the case of second source ?
|
@somasun @mikechoifb Regarding this PR I wrote an email "[FBOSS] Minerva Janga PR#442 Confusion and TMP422 limitations" to clarify this case. |
Description
This PR is about tmp422 sensors in the Janga platform config file and sensor config file.
Motivation
In the current platform config file, tmp422 can only run successfully on the main source machine. The problem was that I put tmp422 on SMB_FRU_SLOT, which can only be loaded successfully on the main source.To resolve this issue, tmp422 needs to be repositioned. In this PR, I moved the tmp422 related parts to JANGA_SLOT, so that it can run successfully on both 2nd source and main source machines.
Note: This function has a limitation.The tmp422 sensors are only available in hardware from DVT2 and later. If you run the platform service and sensor service on a machine before this, an error will be reported.
Test Plan
1. In main source machine platform run successfully:
2. In main source machine sensor_service_hw_test run successfully:
3. In 2nd source machine platform run successfully:
4. In 2nd source machine sensor_service_hw_test run successfully:
janga_main_source_platform_test_log_5_14.txt
janga_main_source_sensor_test_log_5_12.txt
janga_2nd_source_platform_test_log_5_12.txt
janga_2nd_source_sensor_test_log_5_12.txt