+64
−21
Loading
Added a simple controller enablement state machine based on the CC.EN and CSTS.RDY bits. The admin queue registers are also filled during this process, so it's now possible to send admin requests. To simplify the code, there are no timeouts for a controller to transition from a specific state to the next one or for the whole initialization process. This means that if a controller gets stuck, the code will hang indefinitely too. Signed-off-by:Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I93f5a5931d7b24780da242e601dcdf2bec5f6552 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6673 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>