]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gemfs: don't mark huge_opt as static
authorMatthew Auld <matthew.auld@intel.com>
Fri, 26 Nov 2021 11:08:43 +0000 (11:08 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 26 Nov 2021 14:46:01 +0000 (14:46 +0000)
commite362f4f4855c6dd69ecd1dfcf29cd190deb8e7b9
treeb78dde3f7cdfacd4aeccf8da4262a6c63b1a0568
parentf0c6a4af9015e6a7b1ae7169a6a376acc602fbc2
drm/i915/gemfs: don't mark huge_opt as static

vfs_kernel_mount() modifies the passed in mount options, leaving us with
"huge", instead of "huge=within_size". Normally this shouldn't matter
with the usual module load/unload flow, however with the core_hotunplug
IGT we are hitting the following, when re-probing the memory regions:

i915 0000:00:02.0: [drm] Transparent Hugepage mode 'huge'
tmpfs: Bad value for 'huge'
[drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-22).

References: https://gitlab.freedesktop.org/drm/intel/-/issues/4651
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211126110843.2028582-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gemfs.c