Skip to content

Commit

Permalink
npu2-opencapi: Train links on fundamental reset
Browse files Browse the repository at this point in the history
Reorder our link training steps so that they are executed on
fundamental reset instead of during the initial setup. Skiboot always
call a fundamental reset on all the PHBs during pci init.

It is done through a state machine, similarly to what is done for
'real' PHBs.

This is the first step for a longer term goal to be able to trigger an
adapter reset from linux. We'll need the reset callbacks of the PHB to
be defined. We have to handle the various delays differently, since a
linux thread shouldn't stay stuck waiting in opal for too long.

No functional changes.

Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
Frederic Barrat authored and stewartsmith committed Jun 1, 2018
1 parent baa4156 commit 465bc3c
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 113 deletions.

0 comments on commit 465bc3c

Please sign in to comment.