]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only setup private tmpfs mount when needed and fix logging
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 29 Apr 2022 10:04:14 +0000 (11:04 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 9 May 2022 13:03:50 +0000 (14:03 +0100)
commitc00514d0e7d37bccde4151d73b1c853874933eec
tree9593f269289514caf58e875c2cd917858c0bfb4a
parent81e17b23318dfa6f05ce616933cd0a047579bcb3
drm/i915: Only setup private tmpfs mount when needed and fix logging

If i915 does not want to use huge pages there is a) no point in setting up
the private mount and b) should former fail, it is misleading to log THP
support is disabled in the caller, which does not even know if callee
tried to enable it.

Fix both by restructuring the flow in i915_gemfs_init and at the same time
note the failure to set it up in all cases.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Eero Tamminen <eero.t.tamminen@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220429100414.647857-2-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_shmem.c
drivers/gpu/drm/i915/gem/i915_gemfs.c
drivers/gpu/drm/i915/gem/i915_gemfs.h