diff options
author | Ofir Bitton <obitton@habana.ai> | 2020-09-10 08:40:35 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2020-11-30 09:47:28 +0100 |
commit | 2992c1dcd314b8140131298d3ad245de1ba1821b (patch) | |
tree | 420f9323e6e99daf552874b8aec0c987ea55f5bf /drivers/misc/habanalabs/goya/goya.c | |
parent | habanalabs: sync stream structures refactor (diff) | |
download | linux-2992c1dcd314b8140131298d3ad245de1ba1821b.tar.xz linux-2992c1dcd314b8140131298d3ad245de1ba1821b.zip |
habanalabs: add support for multiple SOBs per monitor
Support advanced monitor functionality to monitor more than a
single SOB. In addition expand all CB generation functions
with buffer offset in order to put in them multiple packets that are
generated by different functions.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/misc/habanalabs/goya/goya.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c index c0ab91592744..d873f613acb0 100644 --- a/drivers/misc/habanalabs/goya/goya.c +++ b/drivers/misc/habanalabs/goya/goya.c @@ -5288,15 +5288,16 @@ static u32 goya_get_wait_cb_size(struct hl_device *hdev) return 0; } -static void goya_gen_signal_cb(struct hl_device *hdev, void *data, u16 sob_id) +static u32 goya_gen_signal_cb(struct hl_device *hdev, void *data, u16 sob_id, + u32 size) { - + return 0; } -static void goya_gen_wait_cb(struct hl_device *hdev, +static u32 goya_gen_wait_cb(struct hl_device *hdev, struct hl_gen_wait_properties *prop) { - + return 0; } static void goya_reset_sob(struct hl_device *hdev, void *data) |