[PATCH] [RFC] drm/i915/dpt: Test patch to restrict shrinker to DPT object not pinned
Vidya Srinivas
vidya.srinivas at intel.com
Wed Nov 20 12:29:14 UTC 2024
Signed-off-by: Vidya Srinivas <vidya.srinivas at intel.com>
---
drivers/gpu/drm/i915/gem/i915_gem_object.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object.h b/drivers/gpu/drm/i915/gem/i915_gem_object.h
index 3dc61cbd2e11..9b8c0b5617d6 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_object.h
+++ b/drivers/gpu/drm/i915/gem/i915_gem_object.h
@@ -285,7 +285,7 @@ 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;
+ ((obj->is_dpt && !obj->mm.dirty) || !obj->is_dpt);
}
static inline bool
--
2.34.1
More information about the Intel-gfx-trybot
mailing list