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

Discussion about initial PSM state #53

Open
bluecmd opened this issue Sep 10, 2020 · 1 comment
Open

Discussion about initial PSM state #53

bluecmd opened this issue Sep 10, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation fc Affects the Fibre Channel part question Further information is requested

Comments

@bluecmd
Copy link
Owner

bluecmd commented Sep 10, 2020

The protocol state machine is defined with these edge states:

  • Link Initialization OL1 7.8.2
  • Link Reset LR1 7.8.3
  • Link Failure LF2 7.8.4
  • Online-to-Offline OL1 7.8.5

The standard says:

7.8.2 Link Initialization Protocol

The Link Initialization Protocol shall be performed by an LCF after one of the following events has
occurred:

a) powered-on;
b) internal reset (the definition of internal reset is beyond the scope of this standard); or
c) has been offline and desires to come back online.

The Link Initialization Protocol begins when the LCF enters the OL1 State after one of the above events has been detected and is complete when the LCF enters the Active State.

The Link Initialization Protocol results in implicit Fabric Logout (see FC-LS-4).

7.8.3 Link Reset Protocol

The Link Reset Protocol shall be performed when any of the following conditions are detected:

a) link timeout (see 22.5.2); or
b) buffer-to-buffer overrun (i.e., an FC_Port receives a frame subject to buffer-to-buffer flow control without a buffer available).

The Link Reset Protocol begins when the FC_Port enters the LR1 State after one of the above events has
been detected and is complete when the FC_Port enters the Active State.

7.8.4 Link Failure Protocol

The Link Failure Protocol shall be performed after an FC_Port has detected one of the following
conditions:

a) a Loss-of-Synchronization for a period of time greater than R_T_TOV;
b) Loss-of-Signal while not in the Offline State; or
c) Link Reset Protocol timeout error is detected (see 7.8.3).

The Link Failure Protocol begins when the FC_Port enters the LF2 State after one of the above events has
been detected and is complete when the Active State is entered.

Vocabulary:

  • Link Control Facility (LCF) - hardware facility that attaches to an end of a link and manages transmission and reception of data
@bluecmd
Copy link
Owner Author

bluecmd commented Sep 10, 2020

This seems to me to mean that we should:

  • OL1 as state on reset
  • Transition to LF2 if avrx_valid goes low for R_T_TOV, or SFP reports loss of signal.

I have reopened #15 for this.

@bluecmd bluecmd added documentation Improvements or additions to documentation question Further information is requested fc Affects the Fibre Channel part labels Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation fc Affects the Fibre Channel part question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant