diff mbox

RFT gem_mmap_gtt/gdg Throw in a wmb

Message ID 20180510074731.9829-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson May 10, 2018, 7:47 a.m. UTC
---
 drivers/gpu/drm/i915/i915_gem.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Chris Wilson May 10, 2018, 8:26 a.m. UTC | #1
Quoting Chris Wilson (2018-05-10 08:47:31)
> ---
>  drivers/gpu/drm/i915/i915_gem.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index 89bf5d67cb74..4c26e1fed6c6 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -2089,6 +2089,7 @@ int i915_gem_fault(struct vm_fault *vmf)
>         GEM_BUG_ON(!obj->userfault_count);
>  
>         i915_vma_set_ggtt_write(vma);
> +       wmb();

gdg still fails.
-Chris
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 89bf5d67cb74..4c26e1fed6c6 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2089,6 +2089,7 @@  int i915_gem_fault(struct vm_fault *vmf)
 	GEM_BUG_ON(!obj->userfault_count);
 
 	i915_vma_set_ggtt_write(vma);
+	wmb();
 
 err_fence:
 	i915_vma_unpin_fence(vma);