From: bugzilla-daemon@freedesktop.org Subject: [Bug 107341] [CI][BAT] igt@amdgpu/amd_prime@amd-to-i915 - fail - Failed assertion: __vgem_fence_signal(fd, fence) == 0 due to setup time taking longer than 10s Date: Thu, 14 Feb 2019 15:36:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0849672630==" 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 48C516E956 for ; Thu, 14 Feb 2019 15:36:25 +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 --===============0849672630== Content-Type: multipart/alternative; boundary="15501585850.9A727b9C.10021" Content-Transfer-Encoding: 7bit --15501585850.9A727b9C.10021 Date: Thu, 14 Feb 2019 15:36:25 +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=3D107341 Martin Peres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Martin Peres --- (In reply to Chris Wilson from comment #2) > commit 6e11ea9de9576a644045ffdc2067c09bc2012eda > Author: Chris Wilson > Date: Wed Jan 30 10:55:17 2019 +0000 >=20 > drm/amdgpu: Transfer fences to dmabuf importer >=20=20=20=20=20 > amdgpu only uses shared-fences internally, but dmabuf importers rely = on > implicit write hazard tracking via the reservation_object.fence_excl. > For example, the importer use the write hazard for timing a page flip= to > only occur after the exporter has finished flushing its write into the > surface. As such, on exporting a dmabuf, we must either flush all > outstanding fences (for we do not know which are writes and should ha= ve > been exclusive) or alternatively create a new exclusive fence that is > the composite of all the existing shared fences, and so will only be > signaled when all earlier fences are signaled (ensuring that we can n= ot > be signaled before the completion of any earlier write). >=20=20=20=20=20 > v2: reservation_object is already locked by amdgpu_bo_reserve() > v3: Replace looping with get_fences_rcu and special case the promotion > of a single shared fence directly to an exclusive fence, bypassing the > fence array. > v4: Drop the fence array ref after assigning to reservation_object >=20=20=20=20=20 > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D107341 > Testcase: igt/amd_prime/amd-to-i915 > References: 8e94a46c1770 ("drm/amdgpu: Attach exclusive fence to prime > exported bo's. (v5)") > Signed-off-by: Chris Wilson > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Reviewed-by: "Christian K=C3=B6nig" > Signed-off-by: Alex Deucher This is indeed fixed! Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.= --15501585850.9A727b9C.10021 Date: Thu, 14 Feb 2019 15:36:25 +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 <= span class=3D"fn">Martin Peres changed bug 10734= 1
What Removed Added
Status RESOLVED CLOSED

Commen= t # 3 on bug 10734= 1 from Martin Peres
(In reply to Chris Wilson from comment #2)
> commit 6e11ea9de9576a644045ffdc2067c09bc2012eda
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Wed Jan 30 10:55:17 2019 +0000
>=20
>     drm/amdgpu: Transfer fences to dmabuf importer
>=20=20=20=20=20
>     amdgpu only uses shared-fences internally, but dmabuf importers re=
ly on
>     implicit write hazard tracking via the reservation_object.fence_ex=
cl.
>     For example, the importer use the write hazard for timing a page f=
lip to
>     only occur after the exporter has finished flushing its write into=
 the
>     surface. As such, on exporting a dmabuf, we must either flush all
>     outstanding fences (for we do not know which are writes and should=
 have
>     been exclusive) or alternatively create a new exclusive fence that=
 is
>     the composite of all the existing shared fences, and so will only =
be
>     signaled when all earlier fences are signaled (ensuring that we ca=
n not
>     be signaled before the completion of any earlier write).
>=20=20=20=20=20
>     v2: reservation_object is already locked by amdgpu_bo_reserve()
>     v3: Replace looping with get_fences_rcu and special case the promo=
tion
>     of a single shared fence directly to an exclusive fence, bypassing=
 the
>     fence array.
>     v4: Drop the fence array ref after assigning to reservation_object
>=20=20=20=20=20
>     Bugzilla: https://bugs.freedesktop.org/show_bug.=
cgi?id=3D107341
>     Testcase: igt/amd_prime/amd-to-i915
>     References: 8e94a46c1770 ("drm/amdgpu: Attach exclusive fence=
 to prime
> exported bo's. (v5)")
>     Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>     Cc: Alex Deucher <alexander.deucher@amd.com>
>     Cc: "Christian K=C3=B6nig" <christian.koenig@amd.com>
>     Reviewed-by: "Christian K=C3=B6nig" <christian.koenig@amd.com>
>     Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

This is indeed fixed! Thanks!


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