[PATCH] Revert "drm/i915: Run relevant bits of debugfs drop_caches per GT"
Nirmoy Das
nirmoy.das at intel.com
Wed Sep 20 16:00:13 UTC 2023
This reverts commit c795d2f40a29f3aa9a4ed811f7787bf2f78111f4.
---
drivers/gpu/drm/i915/i915_debugfs.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index e9b79c2c37d8..7a90a2e32c9f 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -740,19 +740,15 @@ static int
i915_drop_caches_set(void *data, u64 val)
{
struct drm_i915_private *i915 = data;
- struct intel_gt *gt;
unsigned int flags;
- unsigned int i;
int ret;
drm_dbg(&i915->drm, "Dropping caches: 0x%08llx [0x%08llx]\n",
val, val & DROP_ALL);
- for_each_gt(gt, i915, i) {
- ret = gt_drop_caches(gt, val);
- if (ret)
- return ret;
- }
+ ret = gt_drop_caches(to_gt(i915), val);
+ if (ret)
+ return ret;
fs_reclaim_acquire(GFP_KERNEL);
flags = memalloc_noreclaim_save();
--
2.41.0
More information about the Intel-gfx-trybot
mailing list