]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1967f0f9eef81d9ed248eaf7a5566fee8fb938ce
tree447fa550a55576d967ea439be1b4ac49e11c92de
parent50e3c239b4f574854356a57fc83c9a13ca10bd4e
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