[ycable] add definitions of some new API's for Y-Cable infrastructure#301
Merged
vdahiya12 merged 6 commits intosonic-net:masterfrom Sep 17, 2022
Merged
[ycable] add definitions of some new API's for Y-Cable infrastructure#301vdahiya12 merged 6 commits intosonic-net:masterfrom
vdahiya12 merged 6 commits intosonic-net:masterfrom
Conversation
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
xinyulin
reviewed
Aug 26, 2022
sonic_y_cable/y_cable_base.py
Outdated
|
|
||
| raise NotImplementedError | ||
|
|
||
| def mem_read(self): |
Contributor
There was a problem hiding this comment.
def mem_read(self, target, addr, length):
Could we add additional three input parameters:
- target : local (TOR) or remote (NIC) MCU
- addr : the starting address of the MCU's memory space
- length: length to be read, unit: byte
sonic_y_cable/y_cable_base.py
Outdated
| None | ||
|
|
||
| Returns: | ||
| a Dictionary: |
Contributor
There was a problem hiding this comment.
Should we return bytearray to represent the data or there is another approach is to convert the data to human readable string and return it as dictionary?
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
prgeor
approved these changes
Sep 17, 2022
qiluo-msft
pushed a commit
that referenced
this pull request
Sep 17, 2022
…#301) Signed-off-by: vaibhav-dahiya [email protected] This PR adds the following API's useful for muxcable MCU's debug, these are added as base class for muxcable API's and implemented by vendor def queue_info(self): This API should dump all the meaningful data from the eeprom which can help vendor debug the queue info currently relevant to the MCU using this API the vendor could check how many txns are currently in the queue etc for debugging purpose def reset_cause(self): This API should return the reset cause for the NIC MCU. This should help ascertain whether a reset was caused by soft reboot or cable poweroff def operation_time(self): This API should return the time since the cable is powered on from NIC MCU side This should be helpful in debugging purposes as to if/when the cable has been powered on def mem_read(self): This API should return the memory contents/as well as pointers/counters for DMA or hardware FIFO's which could be useful for debugging the state of the MCU
7 tasks
yxieca
pushed a commit
that referenced
this pull request
Aug 10, 2023
…#301) Signed-off-by: vaibhav-dahiya [email protected] This PR adds the following API's useful for muxcable MCU's debug, these are added as base class for muxcable API's and implemented by vendor def queue_info(self): This API should dump all the meaningful data from the eeprom which can help vendor debug the queue info currently relevant to the MCU using this API the vendor could check how many txns are currently in the queue etc for debugging purpose def reset_cause(self): This API should return the reset cause for the NIC MCU. This should help ascertain whether a reset was caused by soft reboot or cable poweroff def operation_time(self): This API should return the time since the cable is powered on from NIC MCU side This should be helpful in debugging purposes as to if/when the cable has been powered on def mem_read(self): This API should return the memory contents/as well as pointers/counters for DMA or hardware FIFO's which could be useful for debugging the state of the MCU
oleksandrivantsiv
pushed a commit
to oleksandrivantsiv/sonic-platform-common
that referenced
this pull request
Oct 25, 2024
…PI's (sonic-net#301) This PR adds a try/catch block for some abstract muxcable API's. In particular the exception logic is added for all the API's where there is a possibility for exceptions to be passed by Vendor API's implementation, in this regard ycabled will have all abstract muxcable API's covered by exception logic with this PR. If the exception is caught it will be just logged and daemon will resume its normal operation. Description Motivation and Context How Has This Been Tested? Unit-tests and deploying changes on testbed Signed-off-by: vaibhav-dahiya <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: vaibhav-dahiya [email protected]
This PR adds the following API's useful for muxcable MCU's debug, these are added as base class for muxcable API's and implemented by vendor
Description
Motivation and Context
How Has This Been Tested?
Additional Information (Optional)