]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: fix high-order allocation failure on late load
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Wed, 22 Jan 2020 20:10:24 +0000 (20:10 +0000)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 10 Feb 2020 02:04:21 +0000 (10:04 +0800)
commit4c30805c07032144de9eeaef3bcd348d8f30c7a9
tree256b812f686a36a1d0158a8be0625b38c820e2b7
parent779bc61ac92764a0e011932f1f5822ce17b590ce
drm/i915/gvt: fix high-order allocation failure on late load

If the module happens to be loaded later at runtime there is a chance
memory is already fragmented enough to fail allocation of firmware
blob storage and consequently GVT init. Since it doesn't seem to be
necessary to have the blob contiguous, use vmalloc() instead to avoid
the issue.

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1579723824-25711-1-git-send-email-igor.druzhinin@citrix.com
drivers/gpu/drm/i915/gvt/firmware.c