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)
commita3fd28306329e8e82efab973aafe81e9001dcf6f
tree0b98a47497a570efd886724b7494f8fe8043e780
parent98e8781f008372057bd5cb059ca6b507371e473d
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