From: bugzilla-daemon@freedesktop.org
Subject: [Bug 100712] ring 0 stalled after bytes_moved_threshold reached -
Cap Verde - HD 7770
Date: Wed, 19 Apr 2017 03:48:45 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0368290589=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 084376E26E
for ; Wed, 19 Apr 2017 03:48:45 +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
--===============0368290589==
Content-Type: multipart/alternative; boundary="14925737240.6dcf7.10414";
charset="UTF-8"
--14925737240.6dcf7.10414
Date: Wed, 19 Apr 2017 03:48:44 +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=3D100712
--- Comment #4 from Michel D=C3=A4nzer ---
(In reply to Julien Isorce from comment #0)
> In kernel radeon_object.c::radeon_bo_list_validate, once "bytes_moved >
> bytes_moved_threshold" is reached (this is the case for 850 bo in the same
> list_for_each_entry loop), I can see that radeon_ib_schedule emits a fence
> that it takes more than the radeon.lockup_timeout to be signaled.
radeon_ib_schedule is called for submitting the command stream from userspa=
ce,
not for any BO moves directly, right?
How did you determine that this hang is directly related to bytes_moved /
bytes_moved_threshold? Maybe it's only indirectly related, e.g. due to the
threshold preventing a BO from being moved to VRAM despite userspace's
preference.
> Also it seems the fence is signaled by swapper after more than 10 seconds
> but it is too late. I requires to reduce the "15" param above to 4 to see
> that.
How does "swapper" (what is that exactly?) signal the fence?
> Is it normal that radeon_bo_list_validate still tries to move the bo if
> bytes_moved_threshold is reached ?
There are circumstances where a BO has to be moved even though the threshol=
d is
reached.
> Indeed ttm_bo_validate is always called
ttm_bo_validate must be called for every BO referenced by the command stream
from userspace for correct lifetime management of its memory.
> (it blits from vram to vram).
It might be worth looking into why this happens, though. If domain =3D=3D
current_domain =3D=3D RADEON_GEM_DOMAIN_VRAM, I wouldn't expect ttm_bo_vali=
date to
trigger a blit.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--14925737240.6dcf7.10414
Date: Wed, 19 Apr 2017 03:48:44 +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 # 4
on bug 10071=
2
from Michel D=C3=A4nzer
(In reply to Julien Isorce from comment #0)
> In kernel radeon_object.c::radeon_bo_list_valida=
te, once "bytes_moved >
> bytes_moved_threshold" is reached (this is the case for 850 bo in=
the same
> list_for_each_entry loop), I can see that radeon_ib_schedule emits a f=
ence
> that it takes more than the radeon.lockup_timeout to be signaled.
radeon_ib_schedule is called for submitting the command stream from userspa=
ce,
not for any BO moves directly, right?
How did you determine that this hang is directly related to bytes_moved /
bytes_moved_threshold? Maybe it's only indirectly related, e.g. due to the
threshold preventing a BO from being moved to VRAM despite userspace's
preference.
> Also it seems the fence is signaled by swapper a=
fter more than 10 seconds
> but it is too late. I requires to reduce the "15" param abov=
e to 4 to see
> that.
How does "swapper" (what is that exactly?) signal the fence?
> Is it normal that radeon_bo_list_validate still =
tries to move the bo if
> bytes_moved_threshold is reached ?
There are circumstances where a BO has to be moved even though the threshol=
d is
reached.
> Indeed ttm_bo_validate is always called
ttm_bo_validate must be called for every BO referenced by the command stream
from userspace for correct lifetime management of its memory.
> (it blits from vram to vram).
It might be worth looking into why this happens, though. If domain =3D=3D
current_domain =3D=3D RADEON_GEM_DOMAIN_VRAM, I wouldn't expect ttm_bo_vali=
date to
trigger a blit.
You are receiving this mail because:
- You are the assignee for the bug.
=
--14925737240.6dcf7.10414--
--===============0368290589==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0368290589==--