Skip to content

Commit 659a306

Browse files
nirmoyjnikula
authored andcommitted
drm/i915/selftests: Set always_coherent to false when reading from CPU
Commit 8d4ba9f ("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 <[email protected]> Cc: Janusz Krzysztofik <[email protected]> Cc: Jonathan Cavitt <[email protected]> Fixes: 8d4ba9f ("drm/i915/selftests: Pick correct caching mode.") Reviewed-by: Jonathan Cavitt <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Nirmoy Das <[email protected]> (cherry picked from commit 007ed70) Signed-off-by: Jani Nikula <[email protected]>
1 parent d4f36db commit 659a306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static int verify_access(struct drm_i915_private *i915,
196196
if (err)
197197
goto out_file;
198198

199-
mode = intel_gt_coherent_map_type(to_gt(i915), native_obj, true);
199+
mode = intel_gt_coherent_map_type(to_gt(i915), native_obj, false);
200200
vaddr = i915_gem_object_pin_map_unlocked(native_obj, mode);
201201
if (IS_ERR(vaddr)) {
202202
err = PTR_ERR(vaddr);

0 commit comments

Comments
 (0)