]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Create a kmem_cache to allocate struct i915_priolist from
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 May 2017 12:10:04 +0000 (13:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 May 2017 12:38:12 +0000 (13:38 +0100)
commitc5cf9a9147ff6fc9f87251a8f8a5b6ac8b8bdcdc
tree702c41615fc385f7bef80a5c7e564cbb8d343705
parent6c067579e69b42bff476959fd7bb561ffa3f11e0
drm/i915: Create a kmem_cache to allocate struct i915_priolist from

The i915_priolist are allocated within an atomic context on a path where
we wish to minimise latency. If we use a dedicated kmem_cache, we have
the advantage of a local freelist from which to service new requests
that should keep the latency impact of an allocation small. Though
currently we expect the majority of requests to be at default priority
(and so hit the preallocate priolist), once userspace starts using
priorities they are likely to use many fine grained policies improving
the utilisation of a private slab.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170517121007.27224-9-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c