• Koby Elbaz's avatar
    accel/habanalabs: add uapi to stall/resume engine · f7f0085e
    Koby Elbaz authored
    The user might want to stall/resume engines to perform power testing
    for various scenarios. Because our current
    HL_CS_FLAGS_ENGINE_CORE_COMMAND command only handles the engines' cores,
    we need to add another opcode for handling entire engine and not just
    its core.
    
    The user supplies an array, where each entry holds the engine's ID and
    the command to send to the engine. The size of the array is limited
    by the number of engines in the ASIC (only Gaudi2 is currently
    supported).
    Signed-off-by: default avatarKoby Elbaz <kelbaz@habana.ai>
    Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
    Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
    f7f0085e
command_submission.c 99.4 KB