From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 108625] AMDGPU - Can't even get Xorg to start - Kernel driver
hangs with ring buffer timeout on ARM64
Date: Mon, 05 Nov 2018 15:32:20 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2031077762=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id E2E706E21A
for ; Mon, 5 Nov 2018 15:32:19 +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
--===============2031077762==
Content-Type: multipart/alternative; boundary="15414319390.6c9c94d0.12031"
Content-Transfer-Encoding: 7bit
--15414319390.6c9c94d0.12031
Date: Mon, 5 Nov 2018 15:32:19 +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=3D108625
--- Comment #12 from Alex Deucher ---
(In reply to Carsten Haitzler from comment #10)
> so wouldn't that make it a necessity then if its even glamor needing it? i
> guess i can turn off glamor accel but realistically gl is a necessity so =
the
> problem needs to be addressed sooner or later.
>=20
If you were starting a bare x server, you usually don't hit the glamor paths
too extensively compared to a full desktop environment.
> the ring gfx timeout smells to me of "not a mesa bug" in that an ioctl go=
ing
> to the drm driver never returns qhen doing a simple query. it hangs, thus
> something lower down that is having a bad day, if something as simple as
> querying a fence causes a hang... :)
>=20
> what is this ring gfx thing exactly (seems to be some command queue) and =
why
> would it be timing out? all the way back at seq 10/11 ... like right at t=
he
> start of its use? it's almost like some interrupt or in memory semaphore
> thing mapped from the card is messing up? i'm looking for something to lo=
ok
> into more specifically.
Each engine on the GPU (gfx, compute, video decode, encode, dma, etc.) has a
ring buffer used to feed it. The work sent to the engines is managed by a =
sw
scheduler in the kernel. The kernel driver tests the rings as part of the
driver init sequence. The driver won't come up if the ring tests fail so t=
hey
are working at least until you start X. Presumably X submits (via glamor) =
some
work to the GPU which causes the GPU to hang. The fence never signals beca=
use
the GPU never finished processing the job due to the hang.
Another simplier test would be to boot up to a console (no X) and then try
running some of the libdrm amdgpu tests. They are really simple (copying d=
ata
and round and verifying it using different engines, allocating freeing memo=
ry,
etc.).
https://cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu
See if some of the simple copy or write tests work.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15414319390.6c9c94d0.12031
Date: Mon, 5 Nov 2018 15:32:19 +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 10862=
5
from Alex Deucher
(In reply to Carsten Haitzler from comment #10)
> so wouldn't that make it a necessity then if its=
even glamor needing it? i
> guess i can turn off glamor accel but realistically gl is a necessity =
so the
> problem needs to be addressed sooner or later.
>
If you were starting a bare x server, you usually don't hit the glamor paths
too extensively compared to a full desktop environment.
> the ring gfx timeout smells to me of "not a=
mesa bug" in that an ioctl going
> to the drm driver never returns qhen doing a simple query. it hangs, t=
hus
> something lower down that is having a bad day, if something as simple =
as
> querying a fence causes a hang... :)
>=20
> what is this ring gfx thing exactly (seems to be some command queue) a=
nd why
> would it be timing out? all the way back at seq 10/11 ... like right a=
t the
> start of its use? it's almost like some interrupt or in memory semapho=
re
> thing mapped from the card is messing up? i'm looking for something to=
look
> into more specifically.
Each engine on the GPU (gfx, compute, video decode, encode, dma, etc.) has a
ring buffer used to feed it. The work sent to the engines is managed by a =
sw
scheduler in the kernel. The kernel driver tests the rings as part of the
driver init sequence. The driver won't come up if the ring tests fail so t=
hey
are working at least until you start X. Presumably X submits (via glamor) =
some
work to the GPU which causes the GPU to hang. The fence never signals beca=
use
the GPU never finished processing the job due to the hang.
Another simplier test would be to boot up to a console (no X) and then try
running some of the libdrm amdgpu tests. They are really simple (copying d=
ata
and round and verifying it using different engines, allocating freeing memo=
ry,
etc.).
https:/=
/cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu
See if some of the simple copy or write tests work.
You are receiving this mail because:
- You are the assignee for the bug.
=
--15414319390.6c9c94d0.12031--
--===============2031077762==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============2031077762==--