From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 100024] [radeonsi] Failed to find memory space for buffer eviction when calling glTexSubImage2D with 16384 / 2 Date: Thu, 02 Mar 2017 09:50:38 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0976736779==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id DCCCB6EAAF for ; Thu, 2 Mar 2017 09:50:37 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0976736779== Content-Type: multipart/alternative; boundary="14884482370.331Cd60FE.21474"; charset="UTF-8" --14884482370.331Cd60FE.21474 Date: Thu, 2 Mar 2017 09:50:37 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D100024 --- Comment #12 from Julien Isorce --- Hi Michel. Thx you for your comment. In a way it is a good and only my atta= ched mesa will be needed to fix the test. I will send it to the mailing list. But I still do not properly understand why there is not enough graphic memo= ry because lspci reports 2048M. And there are some contradictions depending on= the subSize for the test sequence which is: for i in 0 1: glGenTextures glTexImage2D maxSize glTexSubImage2D subSize =3D maxSize / 2. glDeleteTextures A: The kernel trace ENOMEM appears with: subSize =3D maxSize - 1 -> "radeon: Failed to allocate a buffer" subSize =3D 3 * maxSize / 4 -> "radeon: Failed to allocate a buffer" subSize =3D maxSize / 2 -> "radeon: Not enough memory for command submiss= ion" B: It works with: subSize =3D maxSize subSize =3D maxSize / 4 Isn't A and B a contradiction ? For me A should succeeds because glDeteteTextures should . Also note that on other=20 Also by calling glFush() within an additional loop iteration i =3D 2, it can recover so it will fail for iteration i =3D 1 but succeeds for i =3D 2.=20 So what could the explanation here ? Should the driver just flush the cs automatically in that case like it does for subSize =3D maxSize ? Sorry I a= m just trying to understand :). Thx! --=20 You are receiving this mail because: You are the assignee for the bug.= --14884482370.331Cd60FE.21474 Date: Thu, 2 Mar 2017 09:50:37 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 12 on bug 10002= 4 from Julien Isorce
Hi Michel. Thx you for your comment. In a way it is a good and=
 only my attached
mesa will be needed to fix the test. I will send it to the mailing list.

But I still do not properly understand why there is not enough graphic memo=
ry
because lspci reports 2048M. And there are some contradictions depending on=
 the
subSize for the test sequence which is:

for i in 0 1:
  glGenTextures
  glTexImage2D    maxSize
  glTexSubImage2D subSize =3D maxSize / 2.
  glDeleteTextures

A: The kernel trace ENOMEM appears with:
  subSize =3D maxSize - 1 -> "radeon: Failed to allocate a buffer&q=
uot;
  subSize =3D 3 * maxSize / 4 -> "radeon: Failed to allocate a buff=
er"
  subSize =3D maxSize / 2 -> "radeon: Not enough memory for command=
 submission"

B: It works with:
  subSize =3D maxSize
  subSize =3D maxSize / 4

Isn't A and B a contradiction ? For me A should succeeds because
glDeteteTextures should . Also note that on other=20

Also by calling glFush() within an additional loop iteration i =3D 2, it can
recover so it will fail for iteration i =3D 1 but succeeds for i =3D 2.=20
So what could the explanation here ? Should the driver just flush the cs
automatically in that case like it does for subSize =3D maxSize ? Sorry I a=
m just
trying to understand :). Thx!


You are receiving this mail because:
  • You are the assignee for the bug.
= --14884482370.331Cd60FE.21474-- --===============0976736779== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0976736779==--