]> 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)
commitfcd80b4c4acc519e3783f1805e1d666c8b83553d
tree447fa550a55576d967ea439be1b4ac49e11c92de
parent987745bf23c9ca59154874a2b759a180e9f26c2e
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