From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 90537] radeonsi bo/va conflict on RADEON_GEM_VA (rscreen->ws->buffer_from_handle returns NULL) Date: Fri, 22 May 2015 08:53:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0660606159==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id D3FFA6EA37 for ; Fri, 22 May 2015 01:53:14 -0700 (PDT) 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 --===============0660606159== Content-Type: multipart/alternative; boundary="1432284794.Fcf00f0.1786"; charset="UTF-8" --1432284794.Fcf00f0.1786 Date: Fri, 22 May 2015 08:53:14 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D90537 --- Comment #6 from Christian K=C3=B6nig --- (In reply to pstglia from comment #5)=20 > Thanks for pointing this out. Just a question: In this case (bug on > application on mapping BOs/VAs) shouldn't we have a crash using other > drivers? With r600g we don't have this problem (tested with an ARUBA A10 > 5800K), just on radeonsi (at least on the tests I performed, which are > basically running "Antutu Benchmark" and some other apps). No crash, but just no more memory after a while. The reason why it works wi= th X and other desktop environments for randeonsi is that when mesa drops the la= st reference the VA range is freed automatically as well. But in your case it looks like that mesa drops the last reference and the buffer isn't freed. This means that somebody has still a reference to the buffer which is a bit odd. It probably points to a bug somewhere. >=20 > However r600g/other drivers/hardwares can handle this in a different mann= er > of course, which could explain why we don't experience this on other > hardwares. R600 hardware uses command stream patching instead of virtual memory, so you never run into this issue. Regards, Christian. --=20 You are receiving this mail because: You are the assignee for the bug. --1432284794.Fcf00f0.1786 Date: Fri, 22 May 2015 08:53:14 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 6 on bug 90537<= /a> from Christian K=C3=B6nig
(In reply to pstglia from comment #5)=20
> Thanks for pointing this out. Just a question: I=
n this case (bug on
> application on mapping BOs/VAs) shouldn't we have a crash using other
> drivers? With r600g we don't have this problem (tested with an ARUBA A=
10
> 5800K), just on radeonsi (at least on the tests I performed, which are
> basically running "Antutu Benchmark" and some other apps).

No crash, but just no more memory after a while. The reason why it works wi=
th X
and other desktop environments for randeonsi is that when mesa drops the la=
st
reference the VA range is freed automatically as well.

But in your case it looks like that mesa drops the last reference and the
buffer isn't freed. This means that somebody has still a reference to the
buffer which is a bit odd.

It probably points to a bug somewhere.

>=20
> However r600g/other drivers/hardwares can handle this in a different m=
anner
> of course, which could explain why we don't experience this on other
> hardwares.

R600 hardware uses command stream patching instead of virtual memory, so you
never run into this issue.

Regards,
Christian.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1432284794.Fcf00f0.1786-- --===============0660606159== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0660606159==--