Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-02-07 Thread Deucher, Alexander
We haven't had a chance to look yet. Alex From: Luís Mendes Sent: Wednesday, February 7, 2018 10:50:48 AM To: Koenig, Christian Cc: Alex Deucher; Deucher, Alexander; Zhou, David(ChunMing); Michel Dänzer; amd-gfx@lists.freedesktop.org

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-02-05 Thread Luís Mendes
Hi everyone, I have some updates. I left the system idle most of the time during the weekend and from time to time I played a video on youtube and turned off the screen. Yesterday night I did the same and today morning I checked the system and it got hung up during the night. This time it took a

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-02-02 Thread Luís Mendes
Hi Christian, Alexander, I have enabled kmemleak, but memleak didn't detect anything special, in fact this time, I don't know why, I didn't get any allocation failure at all, but the GPU did hang after around 4h 6m of uptime with Xorg. The log can be found in attachment. I will try again to see

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-02-01 Thread Christian König
Hi Luis, please enable kmemleak in your build and watch out for any suspicious messages in the system log. Regards, Christian. Am 02.02.2018 um 00:03 schrieb Luís Mendes: Hi Alexander, I didn't notice improvements on this issue with that particular patch applied. It still ends up failing

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-02-01 Thread Luís Mendes
Hi Alexander, I didn't notice improvements on this issue with that particular patch applied. It still ends up failing to allocate kernel memory after a few hours of uptime with Xorg. I will try to upgrade to mesa 18.0.0-rc3 and to amd-staging-drm-next head, to see if the issue still occurs with

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-31 Thread Alex Deucher
On Wed, Jan 31, 2018 at 6:57 PM, Luís Mendes wrote: > Hi everyone, > > I am getting a new issue with amdgpu with RX460, that is, now I can > play any videos with Kodi or play web videos with firefox and run > OpenGL applications without running into any issues, however

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-31 Thread Luís Mendes
Hi everyone, I am getting a new issue with amdgpu with RX460, that is, now I can play any videos with Kodi or play web videos with firefox and run OpenGL applications without running into any issues, however after some uptime with XOrg even when almost inactive I get a kmalloc allocation failure,

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-30 Thread Deucher, Alexander
Fixed with this patch: https://lists.freedesktop.org/archives/amd-gfx/2018-January/018472.html Alex From: Luís Mendes Sent: Tuesday, January 30, 2018 1:30 PM To: Michel Dänzer; Koenig, Christian Cc: Deucher, Alexander; Zhou,

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-30 Thread Luís Mendes
Hi everyone, I've tested the kernel from amd-drm-next-4.17-wip at commit 9ab2894122275a6d636bb2654a157e88a0f7b9e2 ( drm/amdgpu: set DRIVER_ATOMIC flag early) on ARMv7l, and the reported issues seem now to have gone. I haven't checked from which commit this is fixed, but it is now fixed! I also

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-03 Thread Luís Mendes
Hi Michel, Christian, Michel, I have tested amd-staging-drm-next at commit "drm/amdgpu/gfx9: only init the apertures used by KGD (v2)" - 0e4946409d11913523d30bc4830d10b388438c7a and the issues remain, both on ARMv7 and on x86 amd64. Christian, in fact if I replay the apitraces obtained on the

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-03 Thread Luís Mendes
Hi Michel, Christian, Christian, I have followed your suggestion and I have just submitted a bug to fdo at https://bugs.freedesktop.org/show_bug.cgi?id=104481 - GPU lockup Polaris 11 - AMD RX 460 and RX 550 on amd64 and on ARMv7 platforms while playing video. Michel, amdgpu.dc=0 seems to make no

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-03 Thread Michel Dänzer
On 2018-01-03 12:02 PM, Luís Mendes wrote: > > 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:3D089 2 0x > [ 243.693232] Workqueue: events_unbound commit_work

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-03 Thread Christian König
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

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-03 Thread 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 wrote: > Hi Christian, > > Replies

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-03 Thread Luís Mendes
Hi Christian, Replies follow in between. Regards, Luís On Wed, Jan 3, 2018 at 9:37 AM, Christian König 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

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-03 Thread Christian König
Hi Luis, In general please add information like /proc/iomem and dmesg as attachment and not mangled inside the mail. 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. I don't think that apitrace would be much

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-02 Thread Luís Mendes
Just a small update, regarding to what I have posted... I've made additional tests with mesa-17.4 at commit "radv: Implement binning on GFX9" - 6a36bfc64d2096aa338958c4605f5fc6372c07b8 and I was able to gather a smaller apitrace of kodi playing a video with about 1GB that hangs the GPU, almost

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-02 Thread Luís Mendes
Ok... I've done some of the suggested tests. I still haven't tested on x86, but I'll get to that. I've recompiled the kernel to disable Power Management as much as possible at all levels, including the PCIe, I've also modified /include/drm/drm_cache.h - static inline bool

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-02 Thread Christian König
when you refer to API traces, you're suggesting to strace kodi, or what do you mean? What I meant was apitrace (https://github.com/apitrace/apitrace), but when even the lightdm login screen crashes than this won't be much helpful. That strongly sounds like a ARM specific problem, maybe USWC

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-02 Thread Luís Mendes
Dear Mr. David, Mr. Christian, First of all, thanks for your replies! David, I will try the same software versions on x86 to see if I am able to replicate the problem on x86, but I suspect it is ARM specific... I'll report back when I have more details. Christian, I'll collect the data you've

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-02 Thread Christian König
Hi Luis, well first of all that isn't a deadlock, but just a hardware lockup. So the traces and logs you tried to attach are not really useful. What we need instead is a full dmesg and/or some kodi logs, API trace etc.. what exactly is happening when the problem occurs. Please also try

Re: Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-01 Thread Chunming Zhou
Did you try it on x86 board? Is there same issue? We should identify it is ARM specific or genera issue for amdgpu driver. Thanks, David Zhou On 2018年01月02日 00:32, Luís Mendes wrote: I am currently testing the amdgpu driver with AMD RX460 and RX550 graphics cards on an ARM Cortex-A9 with

Deadlocks with multiple applications on AMD RX 460 and RX 550 - Update 2

2018-01-01 Thread Luís Mendes
I am currently testing the amdgpu driver with AMD RX460 and RX550 graphics cards on an ARM Cortex-A9 with 1GB RAM and I am consistently getting deadlocks when playing videos with Kodi or other applications. I'm using Linux kernel from https://cgit.freedesktop.org/~agd5f/linux/, branch