habanalabs: fix DRAM usage accounting on context tear down
authorTomer Tayar <ttayar@habana.ai>
Sun, 4 Aug 2019 07:03:41 +0000 (07:03 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 12 Aug 2019 06:01:10 +0000 (09:01 +0300)
commitc8113756ba27298d6e95403c087dc5881b419a99
tree447fa550a55576d967ea439be1b4ac49e11c92de
parent508c5849c62d009e03f37ad0f556071fac5112f0
habanalabs: fix DRAM usage accounting on context tear down

The patch fix the DRAM usage accounting by adding a missing update of
the DRAM memory consumption, when a context is being torn down without an
organized release of the allocated memory.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/memory.c