Hi,<div><br></div><div>Add more information.</div><div><br></div><div>We got occasionally "<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">GPU lockup" after</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "> resuming from suspend(on mipsel platform with a </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">mips64 compatible CPU and rs780e, the kernel is 3.1.0-rc8 64bit</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">). </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Related kernel message:</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">/* return from STR */</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">[ 156.152343] radeon 0000:01:05.0: WB enabled<br>
[ 156.187500] [drm] ring test succeeded in 0 usecs<br>[ 156.187500] [drm] ib test succeeded in 0 usecs<br>[ 156.398437] ata2: SATA link down (SStatus 0 SControl 300)<br>[ 156.398437] ata3: SATA link down (SStatus 0 SControl 300)<br>
[ 156.398437] ata4: SATA link down (SStatus 0 SControl 300)<br>[ 156.578125] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)<br>[ 156.597656] ata1.00: configured for UDMA/133<br>[ 156.613281] usb 1-5: reset high speed USB device number 4 using ehci_hcd<br>
[ 157.027343] usb 3-2: reset low speed USB device number 2 using ohci_hcd<br>[ 157.609375] usb 3-3: reset low speed USB device number 3 using ohci_hcd<br>[ 157.683593] r8169 0000:02:00.0: eth0: link up<br>[ 165.621093] PM: resume of devices complete after 9679.556 msecs<br>
[ 165.628906] Restarting tasks ... done.</span></div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">[ 177.085937] radeon 0000:01:05.0: GPU lockup CP stall for more than<br>
10019msec<br>[ 177.089843] ------------[ cut here ]------------<br>[ 177.097656] WARNING: at drivers/gpu/drm/radeon/radeon_fence.c:267<br>radeon_fence_wait+0x25c/0x33c()<br>[ 177.105468] GPU lockup (waiting for 0x000013C3 last fence id 0x000013AD)<br>
[ 177.113281] Modules linked in: psmouse serio_raw<br>[ 177.117187] Call Trace:<br>[ 177.121093] [<ffffffff806f3e7c>] dump_stack+0x8/0x34<br>[ 177.125000] [<ffffffff8022e4f4>] warn_slowpath_common+0x78/0xa0<br>
[ 177.132812] [<ffffffff8022e5b8>] warn_slowpath_fmt+0x38/0x44<br>[ 177.136718] [<ffffffff80522ed8>] radeon_fence_wait+0x25c/0x33c<br>[ 177.144531] [<ffffffff804e9e70>] ttm_bo_wait+0x108/0x220<br>[ 177.148437] [<ffffffff8053b478>] radeon_gem_wait_idle_ioctl+0x80/0x114<br>
[ 177.156250] [<ffffffff804d2fe8>] drm_ioctl+0x2e4/0x3fc<br>[ 177.160156] [<ffffffff805a1820>] radeon_kms_compat_ioctl+0x28/0x38<br>[ 177.167968] [<ffffffff80311a04>] compat_sys_ioctl+0x120/0x35c<br>
[ 177.171875] [<ffffffff80211d18>] handle_sys+0x118/0x138</span><div>
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">[ 177.179687] ---[ end trace 92f63d998efe4c6d ]---<br>[ 177.187500] radeon 0000:01:05.0: GPU softreset<br>
[ 177.191406] radeon 0000:01:05.0: R_008010_GRBM_STATUS=0xF57C2030<br>[ 177.195312] radeon 0000:01:05.0: R_008014_GRBM_STATUS2=0x00111103<br>[ 177.203125] radeon 0000:01:05.0: R_000E50_SRBM_STATUS=0x20023040<br>
[ 177.363281] radeon 0000:01:05.0: Wait for MC idle timedout !<br>
[ 177.367187] radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00007FEE<br>[ 177.390625] radeon 0000:01:05.0: R_008020_GRBM_SOFT_RESET=0x00000001<br>[ 177.414062] radeon 0000:01:05.0: R_008010_GRBM_STATUS=0xA0003030<br>
[ 177.417968] radeon 0000:01:05.0: R_008014_GRBM_STATUS2=0x00000003<br>[ 177.425781] radeon 0000:01:05.0: R_000E50_SRBM_STATUS=0x2002B040<br>[ 177.433593] radeon 0000:01:05.0: GPU reset succeed<br>[ 177.605468] radeon 0000:01:05.0: Wait for MC idle timedout !<br>
[ 177.761718] radeon 0000:01:05.0: Wait for MC idle timedout !<br>[ 177.804687] radeon 0000:01:05.0: WB enabled</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">[ 178.000000] [drm:r600_ring_test] *ERROR* radeon: ring test failed<br>
(scratch(0x8504)=0xCAFEDEAD)<br>[ 178.007812] [drm:r600_resume] *ERROR* r600 startup failed on resume</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">[ 178.988281] [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule<br>
IB(5).<br>[ 178.996093] [drm:radeon_cs_ioctl] *ERROR* Failed to schedule IB !<br>[ 179.003906] [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule<br>IB(6).</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">...</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">What may cause a </span>"<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">GPU lockup"? Why reset didn't work? Any idea?</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">BTW, one question:</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">I got 'RADEON_IS_PCI | RADEON_IS_IGP' in rdev->flags, which causes need_dma32 was set.</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Is it correct? (</span><span class="Apple-style-span" style="font-family: arial, sans-serif; background-color: rgb(255, 255, 255); ">drivers/char/agp is not available on mips, could that be the reason?)</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">[ 177.179687]</span>在 2011年9月28日 下午3:23, <span dir="ltr"><<a href="mailto:chenhc@lemote.com">chenhc@lemote.com</a>></span>写道:</div>
<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Alex,<br>
<br>
When we do STR (S3) with a RS780E radeon card on MIPS platform. "GPU<br>
reset" may happen after resume (the possibility is about 5%). After that,<br>
X is unusuable.<br>
<br>
We know there is a "ring test" at system resume time and GPU reset time.<br>
Whether GPU reset happens, the "ring test" at system resume time is always<br>
successful. But the "ring test" at GPU reset time usually fails.<br>
<br>
We use the latest kernel (3.1.0-RC8 from git) and X.org is 7.6.<br>
<br>
Any ideas?<br>
<br>
Best regards,<br>
Huacai Chen<br>
<br></blockquote><div><br></div><div><br></div></div>Regards,</div></div><div>- Chen Jie</div>