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

Refactor DPU Tools into a uniform interface #27

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

Commits on Nov 5, 2024

  1. Reorganize the tools for a unified interface

    This is in preparation for making a unified interface for dpu tools that
    is able to detected the hardware its running on an call its respective
    tools
    
    ipu: Remove IPU dir
    SamD2021 committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    1b8d461 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. Remove redundant bf package

    Remove redundant fwversion
    
    Remove redundant fwup
    
    Remove redundant fwdefaults
    
    Remove listbf script
    
    The list bf script has been integrated into the list dpus command and
    function. Now we can use this information to auto detect hardware and
    have the tool behave accordingly depending on its hardware
    SamD2021 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    30a5163 View commit details
    Browse the repository at this point in the history
  2. dpu-tools: Modify ipu and common related imports

    Make the imports match the new structure
    SamD2021 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    acfa23f View commit details
    Browse the repository at this point in the history
  3. Move common hardware agnostic logic from common_ipu.py into common.py

    Many of these functions aren't necessarily tied to the ipu so moving it
    to the common module makes more sense
    SamD2021 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    2243e79 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31e94e6 View commit details
    Browse the repository at this point in the history
  5. ipu/fwutils.py: Update import to match new structure

    Matching imports to new structure
    SamD2021 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    427147f View commit details
    Browse the repository at this point in the history
  6. Dockerfile: Merge the Dockerfiles into one

    Since we want to unify the scripts behind dpu-tools we should also build
    the tools using the same Dockerfile
    SamD2021 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    c229421 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    421a76e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d46d7ce View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    94da5a2 View commit details
    Browse the repository at this point in the history
  10. utils/common.py: Add DPU Types

    This enum keeps us with a structured way to track different DPU types.
    Previously we would just use hardcoded strings, but with this class we
    can even validate if the DPU Type is within our tracked types
    SamD2021 committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    e2fd01c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    26de962 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    d48d01c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff9fa58 View commit details
    Browse the repository at this point in the history
  3. dpu-tools: Refactor DPUTools into a class

    Since DPU tools often relies passing the args to each function, it would
    be nice to have a data structure to bundle all of this in. Likewise it
    would be good if we could also keep track of what DPU type are working
    with.
    SamD2021 committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    c2cd274 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e0f4097 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c8f77f1 View commit details
    Browse the repository at this point in the history
  6. entry.sh: Add a script to start rshim and run dpu-tools

    This script is useful because it lets rshim run in the background, which
    the Bluefields DPUs need to console into them.
    SamD2021 committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    029db7b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    557188e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    933012d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    261f19b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    09ae8c0 View commit details
    Browse the repository at this point in the history
  11. utils/fwutils.py: Add BFFirmware

    By making this class we can keep together related logic to reset,
    upgrade and version firmware across dpu types
    SamD2021 committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    b10178e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a60e53b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    71220fd View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    bc4be6c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5b5f1a5 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e631493 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    0852296 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a47b4b0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2acee81 View commit details
    Browse the repository at this point in the history
  20. utils/common.py: Make capture_output default to true

    Many of the Bluefield scripts requires capturing the output. It would be
    better to have it default to capturing output and have an option to turn
    it off when we think its not useful
    SamD2021 committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    d5e470e View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    bf7f054 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    8d71462 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    dedae0d View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    0cc8f03 View commit details
    Browse the repository at this point in the history
  25. dpu-tools: Consume set_mode in the main interface

    Here we are using a single mode subcommand that can be used to retrieve
    the mode and set if passed the set-mode flag
    SamD2021 committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    b780a41 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    d4aee3e View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7913a1a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    61a28d5 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    296546d View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    bcd218a View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    6f05dd5 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3a75d5d View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    034e60b View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    05032ff View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    65ee3dd View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    0d4c92b View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    c885804 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    c440661 View commit details
    Browse the repository at this point in the history