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? |
somasun
left a comment
There was a problem hiding this comment.
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. |
|
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
Thanks for the explanation @joywu-coder and @clslucas |
|
@joywu-coder has updated the pull request. You must reimport the pull request before landing. |
|
@mikechoifb merged this pull request in 54f38c3. |
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