habanalabs: show the process context dram usage
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 30 Jul 2019 08:48:02 +0000 (11:48 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:26 +0000 (14:55 +0300)
commit02e921e42b277c632ebdce355cc22d145944e968
tree70a636d959d1b91f2bbabf82f87a0a5bac56dd38
parent4aecb05e526a421bff2bf4feeda7687efa74333e
habanalabs: show the process context dram usage

When the user query the dram usage of a context, show it the dram usage of
its context, not the user context that is currently running on the device.

This has no effect right now as we only have a single process and a single
context, but this makes the code more ready for multiple process support.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/habanalabs_ioctl.c