diff mbox series

[1/2] Revert "drm/i915/dpt: Make DPT object unshrinkable"

Message ID 20241125062804.412536-1-vidya.srinivas@intel.com (mailing list archive)
State New
Headers show
Series [1/2] Revert "drm/i915/dpt: Make DPT object unshrinkable" | expand

Commit Message

Vidya Srinivas Nov. 25, 2024, 6:28 a.m. UTC
Reason for revert: Restricting the DPT object to not be
shrunk makes some chromebooks run out of memory and
causes DMA remap failures.

This reverts commit 43e2b37e2ab660c3565d4cff27922bc70e79c3f1.
Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
---
 drivers/gpu/drm/i915/gem/i915_gem_object.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object.h b/drivers/gpu/drm/i915/gem/i915_gem_object.h
index 3dc61cbd2e11..bb713e096db2 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_object.h
+++ b/drivers/gpu/drm/i915/gem/i915_gem_object.h
@@ -283,9 +283,7 @@  bool i915_gem_object_has_iomem(const struct drm_i915_gem_object *obj);
 static inline bool
 i915_gem_object_is_shrinkable(const struct drm_i915_gem_object *obj)
 {
-	/* TODO: make DPT shrinkable when it has no bound vmas */
-	return i915_gem_object_type_has(obj, I915_GEM_OBJECT_IS_SHRINKABLE) &&
-		!obj->is_dpt;
+	return i915_gem_object_type_has(obj, I915_GEM_OBJECT_IS_SHRINKABLE);
 }
 
 static inline bool