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)
commitc216f12bed33f779b974cb2d69206d6202bde572
tree256b812f686a36a1d0158a8be0625b38c820e2b7
parent5e822e44cecec1ea48925630aa31dfac827fd202
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