drm/i915/selftests: Set always_coherent to false when reading from CPU
authorNirmoy Das <nirmoy.das@intel.com>
Thu, 16 May 2024 15:14:03 +0000 (17:14 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 29 May 2024 08:35:32 +0000 (11:35 +0300)
commit659a3062c705753a9ec6fd28a4c67ee4254f9584
tree38f3c9bc06e3d52606d2ecccc05874caed8f6581
parentd4f36db62396b73bed383c0b6e48d36278cafa78
drm/i915/selftests: Set always_coherent to false when reading from CPU

Commit 8d4ba9fc1c6c ("drm/i915/selftests: Pick correct caching mode.")
was not complete  as for non LLC  sharing platforms cpu read can happen
from LLC which probably doesn't have the latest changes made by GPU.

Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Fixes: 8d4ba9fc1c6c ("drm/i915/selftests: Pick correct caching mode.")
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240516151403.2875-1-nirmoy.das@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
(cherry picked from commit 007ed70831426d4cc108d879d688de6b8e3e6d45)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c