]> 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)
commit099515a2de8506a9343c182ee22953e10c789d36
tree0b98a47497a570efd886724b7494f8fe8043e780
parentf715249f17133da7f5155669d8be0eed1e5a01c8
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