Skip to content

Add front end recovery to AMC configure action

Mykhailo Dalchenko requested to merge feature/detector-cold-start into develop

Description

Add front end recovery procedure to ensure proper cold start operation. This is temporary measure as multiple things would be updated in future. Current iteration of code relies on existing functionality under gemrpc, the only change is a bugfix in the daq monitor code. Perhaps we will want to rearrange things in future. The functionality approximately implements a diagram discussed in #11 (closed) at the level of AMC manager. It performs:

  • GBT link reset
  • Retrieves status information for all possible GBT links of the system (thus, does not rely on supplied configuration)
  • Reprograms GBTs on optical links where all GBTs are locked (so non-powered or non-connected links are ignored)
  • Performs SCA reset on those active optical links
  • Issues internal Hard Reset to program FPGAs

Related Issue

Closes #11 (closed)

How Has This Been Tested?

Tested in private installation on gem904daq04 with coffin setup. Note that additional env variable pointing to the location of GBT configuration files is required now. Corresponding snippet has been updated.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Merge request reports