diff mbox series

drm/i915: Remove unwanted ghost obj check

Message ID 20221024144558.27747-1-nirmoy.das@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915: Remove unwanted ghost obj check | expand

Commit Message

Nirmoy Das Oct. 24, 2022, 2:45 p.m. UTC
vm_fault_ttm() should not expect ttm ghost obj so remove that check.

Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
---
 drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Matthew Auld Oct. 24, 2022, 2:50 p.m. UTC | #1
On 24/10/2022 15:45, Nirmoy Das wrote:
> vm_fault_ttm() should not expect ttm ghost obj so remove that check.
> 
> Suggested-by: Matthew Auld <matthew.auld@intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
index 84c91a4228a1..4a5f9e8ee877 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
@@ -1040,9 +1040,6 @@  static vm_fault_t vm_fault_ttm(struct vm_fault *vmf)
 	vm_fault_t ret;
 	int idx;
 
-	if (i915_ttm_is_ghost_object(bo))
-		return VM_FAULT_SIGBUS;
-
 	/* Sanity check that we allow writing into this object */
 	if (unlikely(i915_gem_object_is_readonly(obj) &&
 		     area->vm_flags & VM_WRITE))