<div dir="ltr"><div><div>Hi Russel,<br><br></div>The requested file follows in attachment.<br><br></div>Luis<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 2, 2017 at 3:20 PM, Russell King - ARM Linux <span dir="ltr"><<a href="mailto:linux@armlinux.org.uk" target="_blank">linux@armlinux.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Nov 02, 2017 at 03:05:38PM +0000, Luís Mendes wrote:<br>
> Hi,<br>
><br>
> Wladimir, Fabio: Thanks for pointing out this patch. I have applied the<br>
> patch and compiled mesa, but it produced no relevant change regarding the<br>
> MMU fault that I am getting. For me it makes sense that it isn't related to<br>
> this issue because I am running no 3D applications, just logging in into<br>
> the Ubuntu MATE Desktop. Since I am using xf86-video-armada It is expected<br>
> that GC320 is the only unit busy, working, during this stage of the desktop<br>
> initialization.<br>
><br>
> Russel, Lucas: The etna-gpu-tools compiled cleanly... I got this log and<br>
> some .bin files with the dumps. I have no clue about the GC320 registers as<br>
> I have no knowledge about the unit, however I if could get the stack of the<br>
> calling process, would be great...<br>
> [ 56.173613] etnaviv-gpu 134000.gpu: MMU fault status<br>
> 0x00000002<br>
> [ 56.179955] etnaviv-gpu 134000.gpu: MMU 0 fault addr<br>
> 0x0803ffc0<br>
> [ 56.185905] etnaviv-gpu 134000.gpu: MMU 1 fault addr<br>
> 0x00000000<br>
> [ 56.191843] etnaviv-gpu 134000.gpu: MMU 2 fault addr<br>
> 0x00000000<br>
> [ 56.197778] etnaviv-gpu 134000.gpu: MMU 3 fault addr<br>
> 0x00000000<br>
> [ 59.258367] etnaviv-gpu 134000.gpu: hangcheck detected gpu<br>
> lockup!<br>
> [ 59.265910] etnaviv-gpu 134000.gpu: completed fence:<br>
> 378<br>
> [ 59.271737] etnaviv-gpu 134000.gpu: active fence:<br>
> 383<br>
> [ 59.277930] etnaviv-gpu 134000.gpu: hangcheck<br>
> recover!<br>
> [ 59.393270] etnaviv-gpu 134000.gpu: MMU fault status<br>
> 0x00000002<br>
> [ 59.399256] etnaviv-gpu 134000.gpu: MMU 0 fault addr<br>
> 0x00343fc0<br>
> [ 59.405207] etnaviv-gpu 134000.gpu: MMU 1 fault addr<br>
> 0x00000000<br>
> [ 59.411143] etnaviv-gpu 134000.gpu: MMU 2 fault addr<br>
> 0x00000000<br>
> [ 59.417082] etnaviv-gpu 134000.gpu: MMU 3 fault addr<br>
> 0x00000000<br>
> [ 61.272368] etnaviv-gpu 134000.gpu: hangcheck detected gpu<br>
> lockup!<br>
> [ 61.278633] etnaviv-gpu 134000.gpu: completed fence:<br>
> 384<br>
> [ 61.284515] etnaviv-gpu 134000.gpu: active fence:<br>
> 387<br>
> [ 61.290110] etnaviv-gpu 134000.gpu: hangcheck<br>
> recover!<br>
> [ 62.278720] etnaviv-gpu 134000.gpu: MMU fault status<br>
> 0x00000002<br>
> [ 62.284699] etnaviv-gpu 134000.gpu: MMU 0 fault addr<br>
> 0x0803ffc0<br>
> [ 62.290681] etnaviv-gpu 134000.gpu: MMU 1 fault addr<br>
> 0x00000000<br>
> [ 62.296644] etnaviv-gpu 134000.gpu: MMU 2 fault addr<br>
> 0x00000000<br>
> [ 62.302603] etnaviv-gpu 134000.gpu: MMU 3 fault addr<br>
> 0x00000000<br>
> [ 64.306760] etnaviv-gpu 134000.gpu: hangcheck detected gpu<br>
> lockup!<br>
> [ 64.313031] etnaviv-gpu 134000.gpu: completed fence:<br>
> 387<br>
> [ 64.318907] etnaviv-gpu 134000.gpu: active fence:<br>
> 403<br>
> [ 64.325477] etnaviv-gpu 134000.gpu: hangcheck recover!<br>
><br>
> === Register dump<br>
> 0000000c = 000000df<br>
> 00000000 = 00040900<br>
> 00000004 = 7ffffff8 Idle: FE- DE- PE- SH+ PA+ SE+ RA+ TX+ VG+ IM+ FP+ TS+<br>
> 00000008 = 00002200<br>
> 00000014 = ffffffff<br>
> 00000018 = 14010000<br>
> 0000001c = e02c7eca<br>
> 00000020 = 00000320<br>
> 00000024 = 00005303<br>
> 00000028 = 20140510<br>
> 0000002c = 20353900<br>
> 00000034 = e9399eff<br>
> 00000038 = e9399eff<br>
> 00000070 = 00000000<br>
> 00000100 = 00140021<br>
> 00000104 = 00000000<br>
> 00000108 = 000000fa<br>
> 0000010c = 00000000<br>
> 00000400 = 00000000<br>
> 00000404 = 00000000<br>
> 00000408 = 00000000<br>
> 0000040c = 00000000<br>
> 00000410 = 00000000<br>
> 00000414 = 3c000000<br>
> 00000418 = 00000000<br>
> 0000041c = 00000000<br>
> 00000420 = 00000000<br>
> 00000424 = 00000000<br>
> 00000428 = 00000000<br>
> 0000042c = 00030000<br>
> 00000480 = 000000a8<br>
> 0000065c = 00000001<br>
> 00000660 = 00000803 Cmd: [load0 DMA: idle Fetch: valid] Req idle Cal idle<br>
> 00000664 = 00001230 Command DMA address<br>
> 00000668 = 00000040 FE fetched word 0<br>
> 0000066c = 00000000 FE fetched word 1<br>
> 00000670 = 00000000<br>
<br>
</div></div>Okay, so we stopped at 0x1230.<br>
<span class=""><br>
> ===<br>
> Buffers<br>
><br>
> Num Name IOVA Size<br>
> 0 reg 00000000 00000128 296<br>
> 1 mmu 00000000 00401000 4198400<br>
> 2 ring 00000000 00001000 4096<br>
> * 3 cmd 00001000 00000320 800<br>
> 4 cmd 00002000 00000190 400<br>
> 5 cmd 00003000 00000320 800<br>
> 6 cmd 00004000 00000190 400<br>
> 7 cmd 00005000 00000188 392<br>
> 8 bomap 00000000 000018f0 6384<br>
> 9 bo 00040000 00300000 3145728<br>
> 10 bo 00340000 00001000 4096<br>
> 11 bo 00341000 00002000 8192<br>
> 12 bo 02e60000 00001000 4096<br>
> 13 bo 030c3000 00001000 4096<br>
> 14 bo 030c4000 00001000 4096<br>
> 15 bo 030c5000 00018000 98304<br>
> Checking MMU entries... ok<br>
<br>
</span>So, buffer 3 is the command buffer we were processing, it's only 800<br>
bytes long. You should find that along side the log file, called<br>
"cmd-00001000.bin". Please send me this file. Thanks.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
RMK's Patch system: <a href="http://www.armlinux.org.uk/developer/patches/" rel="noreferrer" target="_blank">http://www.armlinux.org.uk/<wbr>developer/patches/</a><br>
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up<br>
According to <a href="http://speedtest.net" rel="noreferrer" target="_blank">speedtest.net</a>: 8.21Mbps down 510kbps up<br>
</div></div></blockquote></div><br></div>