habanalabs: add SOB information to signal submission uAPI
For debug purpose, add SOB address and SOB initial counter value before current submission to uAPI output. Using SOB address and initial counter, user can calculate how much of the submmision has been completed. Signed-off-by: Dani Liberman <dliberman@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
4fac990f60
commit
1880f7acd7
4 changed files with 47 additions and 8 deletions
|
|
@ -929,9 +929,17 @@ struct hl_cs_out {
|
|||
|
||||
/*
|
||||
* SOB base address offset
|
||||
* Valid only when HL_CS_FLAGS_RESERVE_SIGNALS_ONLY is set
|
||||
* Valid only when HL_CS_FLAGS_RESERVE_SIGNALS_ONLY or HL_CS_FLAGS_SIGNAL is set
|
||||
*/
|
||||
__u32 sob_base_addr_offset;
|
||||
|
||||
/*
|
||||
* Count of completed signals in SOB before current signal submission.
|
||||
* Valid only when (HL_CS_FLAGS_ENCAP_SIGNALS & HL_CS_FLAGS_STAGED_SUBMISSION)
|
||||
* or HL_CS_FLAGS_SIGNAL is set
|
||||
*/
|
||||
__u16 sob_count_before_submission;
|
||||
__u16 pad[3];
|
||||
};
|
||||
|
||||
union hl_cs_args {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue