From 680daeea63828af16a2ed0a333cdf61dd2a71cd1 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Wed, 1 Oct 2025 14:48:42 -0700 Subject: [PATCH] intel/i915: warn the user about repeated execbuf ENOMEM after ~2s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By this point, the user may have noticed their game is not drawing any new frames, so perhaps an error message might help. This would also, of course, help identifying ENOMEM problems in our CI runs. Reviewed-by: José Roberto de Souza Signed-off-by: Paulo Zanoni Part-of: --- src/intel/common/i915/intel_gem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/common/i915/intel_gem.h b/src/intel/common/i915/intel_gem.h index a614fe00fba..cee299e0cb0 100644 --- a/src/intel/common/i915/intel_gem.h +++ b/src/intel/common/i915/intel_gem.h @@ -160,6 +160,9 @@ i915_gem_execbuf_ioctl(int fd, const struct intel_device_info *info, if (likely(!(ret && errno == ENOMEM))) break; + if (unlikely(retries == 40)) + fprintf(stderr, "intel: the execbuf ioctl keeps returning ENOMEM\n"); + os_time_sleep(100 * retries * retries); }