]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Do not allocate initial ring scan buffer
authorZhi Wang <zhi.a.wang@intel.com>
Sun, 10 Sep 2017 14:01:10 +0000 (22:01 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 16 Nov 2017 03:46:51 +0000 (11:46 +0800)
commitf8c8d00bfe51bdfee9f9c535575b819aae4cfb00
treeb4633f1e115f3d4312a84caba3c03194dd489a79
parentcc261eb24abf5eaaf5af53a8ebf6a4fcf64cc3fd
drm/i915/gvt: Do not allocate initial ring scan buffer

Theoretically, the largest bulk of commands in the ring buffer of an
engine might be the first submission, which usually contains a lot
of commands to initialize the HW. After removing the initial allocation
of the ring scan buffer and let krealloc() do everything we need, we
still have a big chance to get the buffer of suitable size in the first
submission.

Tested on my SKL NUC.

Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/execlist.c
drivers/gpu/drm/i915/gvt/gvt.h