• Tomer Tayar's avatar
    accel/habanalabs/gaudi2: avoid overriding existing undefined opcode data · bc5f15ab
    Tomer Tayar authored
    Part of the undefined opcode data is updated in
    gaudi2_handle_qman_err_generic() and some in
    handle_lower_qman_data_on_err().
    However, the 'write_enable' flag is checked only in
    gaudi2_handle_qman_err_generic(), and information of more than a single
    error can be mixed there.
    
    Moreover, handle_lower_qman_data_on_err() is called only for the lower
    QMAN, so for an error in the upper QMAN there is only a partial info.
    
    Move all the data update to be done in a single place, protected by the
    'write_enable' flag.
    As mainly the lower QMAN's info is interesting, avoid saving the partial
    info for the upper QMAN.
    Signed-off-by: default avatarTomer Tayar <ttayar@habana.ai>
    Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
    Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
    bc5f15ab
gaudi2.c 386 KB