Debian Bug report logs - #1041591
iris: Retry DRM_IOCTL_I915_GEM_EXECBUFFER2 on ENOMEM

version graph

Package: libgl1-mesa-dri; Maintainer for libgl1-mesa-dri is Debian X Strike Force <[email protected]>; Source for libgl1-mesa-dri is src:mesa (PTS, buildd, popcon).

Reported by: SuperCat <[email protected]>

Date: Fri, 21 Jul 2023 06:21:02 UTC

Severity: normal

Tags: patch

Found in version mesa/22.3.6-1+deb12u1

Fixed in version mesa/23.1.3-1

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#1041591: iris: Retry DRM_IOCTL_I915_GEM_EXECBUFFER2 on ENOMEM
Reply-To: SuperCat <[email protected]>, [email protected]
Resent-From: SuperCat <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian X Strike Force <[email protected]>
X-Loop: [email protected]
Resent-Date: Thu, 03 Aug 2023 13:15:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 1041591
X-Debian-PR-Package: libgl1-mesa-dri
X-Debian-PR-Keywords: patch
References: <[email protected]>
X-Debian-PR-Source: mesa
Received: via spool by [email protected] id=B1041591.16910682221131868
          (code B ref 1041591); Thu, 03 Aug 2023 13:15:02 +0000
Received: (at 1041591) by bugs.debian.org; 3 Aug 2023 13:10:22 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,
	HTML_MESSAGE,LONGWORD,MULTALT,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_NONE,
	SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no
	autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 84; neutral, 24; spammy, 0.
	spammytokens: hammytokens:0.000-+--100644, 0.000-+--backported,
	0.000-+--errno, 0.000-+--struct, 0.000-+--sk:drm_ioc
Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]:46271)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1qRY5u-004kRh-Ld
	for [email protected]; Thu, 03 Aug 2023 13:10:22 +0000
Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1bf0c4489feso658838fac.0
        for <[email protected]>; Thu, 03 Aug 2023 06:10:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20221208; t=1691068219; x=1691673019;
        h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
         :date:message-id:reply-to;
        bh=86e/34QsA1AEH2Gj9PGFYqwy16OGIfURFhvXWyX8FME=;
        b=etABjUX0kq+3uotdZtUs6abqxhToPiWTn/320tLtfqC8dTX50lyPAEXotpuFdCvwoF
         lhk156pnGdUUbaRHFq13XP4PhxREEPFyy6vm2ilh1Mh+xCb8aNM48pRWqvz52v8FunbF
         ZYsmzP/P43tuc1xbDMvQR2wDLsO3O+dA/f3ZhLRv5ZvxegFGsj24SAsk1Ge2f9ylLu7e
         OzvXkK44EsQeIbAoZNm1+ZFtZmz71dCtdhsQlAHl1+z+eC1PLt8EsH8+yExZKJDLavNL
         B6XJblkHo0vd6qs/sw2gYE4+rqd5xKcLjxQuaiEPjwYkPPdPeJgoIxGDSqGm7+1oQwLi
         +P9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20221208; t=1691068219; x=1691673019;
        h=to:subject:message-id:date:from:mime-version:x-gm-message-state
         :from:to:cc:subject:date:message-id:reply-to;
        bh=86e/34QsA1AEH2Gj9PGFYqwy16OGIfURFhvXWyX8FME=;
        b=ZGCAbVqsGMvEkeaBrBWwMoBd+RZE2hcUBPKeBfiFKJW7mjWctOPc0S0cPrLP51ygsK
         YM1b4cSGGnHVSoWlGoB3daOQh5HFLoRgwLuNqfjEfsG0rZF5Aax53mVkjGWHloSMIZzH
         /bx1Xent3ti3amflA5g/O28G+VdDBw710Tm4VmHTqLK1P/q0gWCR1Y2cQ9GzlPHbWTsD
         Z9aD/i2W4EphCzZq5b8PXBYfPQlfY+BgmW9/fUHH9U24u6RiWn97jkVYQQ9uxzzpy4LF
         Z3Ji6+xPj4/0PQs4EPUTGbfJo+6GUhhJ0e5/E5/WmllTl6d3Vmdz+XSy4Jk0hbg61NUx
         Bggg==
X-Gm-Message-State: ABy/qLZkT944hhImQ0rgIVhI4rYMqImP6d5hnBVq+WygDSrFktsKl4nO
	8EUaqOgY4/kV6lebeDg1VgEXiry4Fs7ptIw99vMwSa/mcJI9Fd93
X-Google-Smtp-Source: APBJJlHQlrXFca/GjldHQ9er+z7D3igKzrFsx4tTh21GmEH4tnzzBR90nEm9GHjR79BbZri0PHU2CApnMSppNOqqCcA=
X-Received: by 2002:a05:6870:d792:b0:1ba:2c95:a168 with SMTP id
 bd18-20020a056870d79200b001ba2c95a168mr19534250oab.35.1691068218866; Thu, 03
 Aug 2023 06:10:18 -0700 (PDT)
MIME-Version: 1.0
From: SuperCat <[email protected]>
Date: Thu, 3 Aug 2023 22:10:07 +0900
Message-ID: <CAO1WHCF7AWFN6=AZzD1mVFiBGaoYYB3EZeoFvrj4S+73A+gXHA@mail.gmail.com>
To: [email protected]
Content-Type: multipart/alternative; boundary="0000000000007a02a7060204800e"
[Message part 1 (text/plain, inline)]
I have backported this patch and applied it to my system. Tested for more
than 2 weeks and no crashes anymore.

diff --git a/src/gallium/drivers/iris/iris_batch.c
b/src/gallium/drivers/iris/iris_batch.c
index c7a08a0e1f5f0..deab85ce4aaf3 100644
--- a/src/gallium/drivers/iris/iris_batch.c
+++ b/src/gallium/drivers/iris/iris_batch.c
@@ -981,9 +981,14 @@ submit_batch(struct iris_batch *batch)
    }

    int ret = 0;
-   if (!batch->screen->devinfo.no_hw &&
-       intel_ioctl(batch->screen->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2,
&execbuf))
-      ret = -errno;
+   if (!batch->screen->devinfo.no_hw) {
+      do {
+         ret = intel_ioctl(batch->screen->fd,
DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf);
+      } while (ret && errno == ENOMEM);
+
+      if (ret)
+ ret = -errno;
+   }

    simple_mtx_unlock(bo_deps_lock);
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:46:56 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.