[Intel-gfx] [RFC PATCH] drm/i915: Suppress page allocation warnings on engine park
Janusz Krzysztofik
janusz.krzysztofik at linux.intel.com
Thu Apr 2 10:19:06 UTC 2020
On memory constrained systems it may happen that no pages are available
for serving object creation attempt during engine park. Since we can
and we do ignore that failure, let's suppress possible warnings from
page allocator to avoid confusion and make CI happy.
Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
---
drivers/gpu/drm/i915/gt/intel_engine_pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/intel_engine_pm.c b/drivers/gpu/drm/i915/gt/intel_engine_pm.c
index 3be679741d22..99626fd02963 100644
--- a/drivers/gpu/drm/i915/gt/intel_engine_pm.c
+++ b/drivers/gpu/drm/i915/gt/intel_engine_pm.c
@@ -186,7 +186,7 @@ static bool switch_to_kernel_context(struct intel_engine_cs *engine)
flags = __timeline_mark_lock(ce);
GEM_BUG_ON(atomic_read(&ce->timeline->active_count) < 0);
- rq = __i915_request_create(ce, GFP_NOWAIT);
+ rq = __i915_request_create(ce, GFP_NOWAIT | __GFP_NOWARN);
if (IS_ERR(rq))
/* Context switch failed, hope for the best! Maybe reset? */
goto out_unlock;
--
2.21.1
More information about the Intel-gfx
mailing list