drm/xe/display: fix i915_gem_object_is_shmem() wrapper
authorMatthew Auld <matthew.auld@intel.com>
Mon, 5 Feb 2024 15:31:11 +0000 (15:31 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 9 Feb 2024 10:28:48 +0000 (10:28 +0000)
commit63fb531fbfda81bda652546a39333b565aea324d
tree55fb378c625bc13b579f4086be44f6990bde404c
parent82bd83a0cf7ab1e92bd100fb91081a6855bd3545
drm/xe/display: fix i915_gem_object_is_shmem() wrapper

shmem ensures the memory is cleared on allocation, however here we are
using TTM, which doesn't natively support shmem (other than for swap),
but instead just allocates normal system memory. And we only zero such
memory for userspace allocations. In the case of intel_fbdev we are
missing the memset_io() since display path incorrectly thinks object is
shmem based.

Fixes: 44e694958b95 ("drm/xe/display: Implement display support")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240205153110.38340-2-matthew.auld@intel.com
drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h