]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: add validation cs counter, fix misplaced counters
authorAlon Mizrahi <amizrahi@habana.ai>
Tue, 8 Dec 2020 14:14:01 +0000 (16:14 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Dec 2020 06:47:39 +0000 (08:47 +0200)
commit30c156f9694a69cd13f3bcb420d1aedc803dd854
tree0b98a47497a570efd886724b7494f8fe8043e780
parentf8f67dbf7aaf24f733e54adf9411a9a77ff55e9a
habanalabs: add validation cs counter, fix misplaced counters

Up until now validation errors were counted in the parsing field
of the cs_counters struct, so we added a new counter and increased
it when needed.

In addition, there were some locations where only one of the counters
was updated (ctx or aggregate) so add the second one to be updated
as well.

Signed-off-by: Alon Mizrahi <amizrahi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_ioctl.c
include/uapi/misc/habanalabs.h