AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Luís Mendes"
	<luis.p.mendes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Christian König" <christian.koenig-5C7GfCeVMHo@public.gmane.org>
Cc: alexander.deucher-5C7GfCeVMHo@public.gmane.org,
	Chunming Zhou <zhoucm1-5C7GfCeVMHo@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2
Date: Wed, 3 Jan 2018 13:34:02 +0100	[thread overview]
Message-ID: <127b049a-21a3-4314-e5a1-7e2fc67833ce@gmail.com> (raw)
In-Reply-To: <CAEzXK1pFk_VvOnWXnaLdUcgHeGLZ=+E5fE-+GP1gkfWbQB0OWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

In this case please open a bug report on fdo and describe exactly how to 
reproduce it.

Marek should be able to take a look then.

Thanks,
Christian.

Am 03.01.2018 um 12:56 schrieb Luís Mendes:
> Hi Christian, David,
>
> David, replying to your question... The issue is indeed reproducible
> on x86, I just did it with kodi and the same VP9 video. So it is not
> arm specific.
>
> Regards,
> Luís
>
> On Wed, Jan 3, 2018 at 11:02 AM, Luís Mendes <luis.p.mendes@gmail.com> wrote:
>> Hi Christian,
>>
>> Replies follow in between.
>>
>> Regards,
>> Luís
>>
>> On Wed, Jan 3, 2018 at 9:37 AM, Christian König
>> <ckoenig.leichtzumerken@gmail.com> wrote:
>>> Hi Luis,
>>>
>>> In general please add information like /proc/iomem and dmesg as attachment
>>> and not mangled inside the mail.
>> Ok, I'll take that into account next time. Sorry for the inconvenience.
>>
>>> The good news is that your ARM board at least has a memory layout which
>>> should work in theory. So at least one problem rules out.
>> Ok, nice.
>>
>>> I don't think that apitrace would be much helpful in this case as long as no
>>> developer has access to one of those ARM boards. But it is interesting that
>>> the apitrace reliable reproduces the issue. This means that it isn't
>>> something random, but rather a specific timing of things.
>> I am afraid, I currently don't have boards that I can send yet. I am
>> developing one, but it will still take some time, before I have one
>> ready.
>>
>> I've checked the apitrace and there is a common call
>> glXSwapBuffers(dpy=0x1389f00, drawable=52428803) that I believe will
>> trigger the page flip. I suspect there is a race condition with
>> glXSwapBuffers in mesa or amdgpu, that corrupts some of the data sent
>> to the GPU causing an hang.
>> What I believe it seems to be the case is that the GPU lock up only
>> happens when doing a page flip, since the kernel locks with:
>> [  243.693200] kworker/u4:3    D    0    89      2 0x00000000
>> [  243.693232] Workqueue: events_unbound commit_work [drm_kms_helper]
>> [  243.693251] [<80b8c6d4>] (__schedule) from [<80b8cdd0>] (schedule+0x4c/0xac)
>> [  243.693259] [<80b8cdd0>] (schedule) from [<80b91024>]
>> (schedule_timeout+0x228/0x444)
>> [  243.693270] [<80b91024>] (schedule_timeout) from [<80886738>]
>> (dma_fence_default_wait+0x2b4/0x2d8)
>> [  243.693276] [<80886738>] (dma_fence_default_wait) from [<80885d60>]
>> (dma_fence_wait_timeout+0x40/0x150)
>> [  243.693284] [<80885d60>] (dma_fence_wait_timeout) from [<80887b1c>]
>> (reservation_object_wait_timeout_rcu+0xfc/0x34c)
>> [  243.693509] [<80887b1c>] (reservation_object_wait_timeout_rcu) from
>> [<7f331988>] (amdgpu_dm_do_flip+0xec/0x36c [amdgpu])
>> [  243.693789] [<7f331988>] (amdgpu_dm_do_flip [amdgpu]) from
>> [<7f33309c>] (amdgpu_dm_atomic_commit_tail+0xbfc/0xe58 [amdgpu])
>> ...
>>
>> I will try to reproduce this on x86 with a similar software stack...
>> and the apitrace traces I got.
>> What do you think, does this makes sense? Do you have further
>> suggestions that may help pin down the problem?
>>
>> Another strange thing... the traces that were consistently causing
>> hangs yesterday, today are having a bit more difficulty causing them,
>> but if I play the video with kodi it hangs easily again. Both kodi and
>> glretarce always hangs with similar kernel backtraces, like the one
>> above.
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2018-01-03 12:34 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-01 16:32 Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2 Luís Mendes
     [not found] ` <CAEzXK1o+FewfiG84pCj8c_1Xz5KVsOOU7EX13LWaFVxK7s66fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-02  2:51   ` Chunming Zhou
     [not found]     ` <1ca083a5-f33c-7be0-a3c8-c2996a087f70-5C7GfCeVMHo@public.gmane.org>
2018-01-02  9:38       ` Christian König
2018-01-02 13:09       ` Luís Mendes
     [not found]         ` <CAEzXK1odkDX-D3MOGHLFJuKNHh0RjSfsFL8PtB=6YQRDf1+Tkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-02 13:17           ` Christian König
     [not found]             ` <d755cd12-1a1e-ce98-2b0d-ea4b5eafc483-5C7GfCeVMHo@public.gmane.org>
2018-01-02 22:29               ` Luís Mendes
     [not found]                 ` <CAEzXK1qCfnHUvnuuViTP5fZQx2StjecV6o_QfJ2uJk603_9nhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-03  0:36                   ` Luís Mendes
     [not found]                     ` <CAEzXK1oUyHsSGHeXS9qzWBSDL-FfRq2h-EiQMCfa=5BroO50gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-03  9:37                       ` Christian König
     [not found]                         ` <8bcdc933-050b-12ca-46e6-54bb66b6824d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-03 11:02                           ` Luís Mendes
     [not found]                             ` <CAEzXK1pPzRM=EpL8fKQ5SdDvEePR+_KPhrtPMPiArt==BsJspA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-03 11:56                               ` Luís Mendes
     [not found]                                 ` <CAEzXK1pFk_VvOnWXnaLdUcgHeGLZ=+E5fE-+GP1gkfWbQB0OWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-03 12:34                                   ` Christian König [this message]
2018-01-03 17:09                               ` Michel Dänzer
     [not found]                                 ` <99a9e27e-f166-f969-416f-f128b0673388-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-01-03 17:47                                   ` Luís Mendes
     [not found]                                     ` <CAEzXK1rb6ngg=3MHo6yT+ed-a_1xr3ASwLPtsK4CpSMBk3xKgw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-03 23:08                                       ` Luís Mendes
     [not found]                                         ` <CAEzXK1qFh-Y6zCoVpRVRcLEe_hLFueqntrjaAwgfKyLGd2u27A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-30 18:30                                           ` Luís Mendes
     [not found]                                             ` <CAEzXK1rixP9spSTBY4V5GWxyUWJdf23Nbis2gbKgfxz4A6w2rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-30 18:44                                               ` Deucher, Alexander
     [not found]                                                 ` <BN6PR12MB1652E01048ABD6A307E80B8DF7E40-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-01-31 12:47                                                   ` Luís Mendes
     [not found]                                                     ` <CAEzXK1rbmaNifg00RY+GPdUgLtysLsF1mciPekbotWfT0gagJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-31 23:57                                                       ` Luís Mendes
     [not found]                                                         ` <CAEzXK1ok5BsSMY2t4+D0575QSAqEkzKPC7cnWEVmg0OhCFcgcA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-01  2:30                                                           ` Alex Deucher
     [not found]                                                             ` <CADnq5_NPWa5s+dJwinBFLTzcGfycuuuin_YFp7CJnt_8A2p9eA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-01 23:03                                                               ` Luís Mendes
     [not found]                                                                 ` <CAEzXK1rsnm318e6tE+9f=A3pAB4fHw3XUY0dMgvno4yUcoxgjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-02  7:48                                                                   ` Christian König
     [not found]                                                                     ` <c9d12d8c-a186-4041-ea41-1ccabe41eb29-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-02-02 18:46                                                                       ` Luís Mendes
     [not found]                                                                         ` <CAEzXK1rWeUYoSvd-T5JRSZnZSMcSCdpHDy6Eh5wkH=Qr=Gz2Bw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-05 12:40                                                                           ` Luís Mendes
     [not found]                                                                             ` <CAEzXK1p3feNO1O-Kf=TCqU8sq1Xz=z3Sav1kfDB6e-1hxe+YMQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-07 15:50                                                                               ` Luís Mendes
     [not found]                                                                                 ` <CAEzXK1rni05EQGJaZVFc08LqwdbAX-8no-ARK255WCVt7AcH9A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-07 16:41                                                                                   ` Deucher, Alexander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=127b049a-21a3-4314-e5a1-7e2fc67833ce@gmail.com \
    --to=ckoenig.leichtzumerken-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=alexander.deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=christian.koenig-5C7GfCeVMHo@public.gmane.org \
    --cc=luis.p.mendes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=zhoucm1-5C7GfCeVMHo@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox