]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:23:19 +0000 (10:23 +0200)
commit0a18515cc03f5425f70dfe2f1de91674541b276f
tree6b58eacd3beb22cd9006020d6ed306eae38e979c
parentc041ddb7569821131954e63e2c5ced0ab297d78a
habanalabs: fix DRAM usage accounting on context tear down

[ Upstream commit c8113756ba27298d6e95403c087dc5881b419a99 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/memory.c