From: bugzilla-daemon@freedesktop.org Subject: [Bug 111236] VA-API radeonsi SIGSEGV __memmove_avx_unaligned Date: Mon, 26 Aug 2019 16:34:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1485936337==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 51F0F89A56 for ; Mon, 26 Aug 2019 16:34:02 +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 --===============1485936337== Content-Type: multipart/alternative; boundary="15668372421.b9fe.15113" Content-Transfer-Encoding: 7bit --15668372421.b9fe.15113 Date: Mon, 26 Aug 2019 16:34:02 +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=3D111236 --- Comment #8 from Michel D=C3=A4nzer --- Created attachment 145171 --> https://bugs.freedesktop.org/attachment.cgi?id=3D145171&action=3Dedit si_video_buffer_create fixups I've traced this to the si_video_buffer_create function, which makes multip= le pipe_resources use the same buffer, but doesn't update the bo_size or make = sure si_can_invalidate_texture returns false for those resources. So si_texture_transfer_map may allocate a new buffer of the original bo_size, which is smaller than the combined size of the resources =3D> its CPU mappi= ng doesn't always cover the calculated address. This quick'n'dirty patch prevents the crash, but now totem just hangs for m= e. --=20 You are receiving this mail because: You are the assignee for the bug.= --15668372421.b9fe.15113 Date: Mon, 26 Aug 2019 16:34:02 +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

Commen= t # 8 on bug 11123= 6 from Michel D=C3=A4nzer
Created attachment=
 145171 [details] [review]
si_video_buffer_create fixups

I've traced this to the si_video_buffer_create function, which makes multip=
le
pipe_resources use the same buffer, but doesn't update the bo_size or make =
sure
si_can_invalidate_texture returns false for those resources. So
si_texture_transfer_map may allocate a new buffer of the original bo_size,
which is smaller than the combined size of the resources =3D> its CPU ma=
pping
doesn't always cover the calculated address.

This quick'n'dirty patch prevents the crash, but now totem just hangs for m=
e.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15668372421.b9fe.15113-- --===============1485936337== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1485936337==--