]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Don't use memory accounting for kernel-side fence objects
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 2 Dec 2014 11:32:24 +0000 (03:32 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 3 Dec 2014 08:48:14 +0000 (00:48 -0800)
commiteddccdf8703777b938d9e96f5d7893389ee9e062
tree1709bb7a43770826db00b2fe8718063a05fea50a
parent7470d733dc65b4c6216f0cd51458365f11359abd
drm/vmwgfx: Don't use memory accounting for kernel-side fence objects

Kernel side fence objects are used when unbinding resources and may thus be
created as part of a memory reclaim operation. This might trigger recursive
memory reclaims and result in the kernel running out of stack space.

So a simple way out is to avoid accounting of these fence objects.
In principle this is OK since while user-space can trigger the creation of
such objects, it can't really hold on to them. However, their lifetime is
quite long, so some form of accounting should perhaps be implemented in the
future.

Fixes kernel crashes when running, for example viewperf11 ensight-04 test 3
with low system memory settings.

Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c