]> 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)
commitf68205c45f89a86e86dc9dd12a4745852c286b7f
tree256b812f686a36a1d0158a8be0625b38c820e2b7
parentaf025306e6b8bf1c8dfcf8761a530df342a12777
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