All of lore.kernel.org
 help / color / mirror / Atom feed
* IMPORTANT : Regression since kernel > 3.4 as regards suspend to RAM while using 3D accel
@ 2013-06-30 17:42 Eric F
       [not found] ` <CA+T9nP8sBKxafn0szfpDcfudvJvMTsEvCL8eYzcV+EfYfX+3rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Eric F @ 2013-06-30 17:42 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 568 bytes --]

Hello,

Been wondering why I could never resume from s2r. That's because I always
use 3D accel (compiz, cairo-dock). I have tested each Arch kernel releases,
hoping each time to get s2r to work.

Tired of this, I decided to use 3.4 LTS... 3.4.50
... And guess what ? I could resume from suspend to RAM 100% of the time !!!

I know it may be a hard work for you, but suspend to RAM while using 3D
accel only works with this kernel (and maybe 3.4.51, will give a try).

Suspend to RAM is important for battery saving for laptops.
I use GT555M nvc3.

Best regards,

Eric

[-- Attachment #1.2: Type: text/html, Size: 732 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IMPORTANT : Regression since kernel > 3.4 as regards suspend to RAM while using 3D accel
       [not found] ` <CA+T9nP8sBKxafn0szfpDcfudvJvMTsEvCL8eYzcV+EfYfX+3rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-06-30 18:16   ` Ilia Mirkin
  2013-07-06  7:27   ` Eric F
  1 sibling, 0 replies; 4+ messages in thread
From: Ilia Mirkin @ 2013-06-30 18:16 UTC (permalink / raw)
  To: Eric F; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Sun, Jun 30, 2013 at 1:42 PM, Eric F <3rik.gm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hello,
>
> Been wondering why I could never resume from s2r. That's because I always
> use 3D accel (compiz, cairo-dock). I have tested each Arch kernel releases,
> hoping each time to get s2r to work.
>
> Tired of this, I decided to use 3.4 LTS... 3.4.50
> ... And guess what ? I could resume from suspend to RAM 100% of the time !!!
>
> I know it may be a hard work for you, but suspend to RAM while using 3D
> accel only works with this kernel (and maybe 3.4.51, will give a try).
>
> Suspend to RAM is important for battery saving for laptops.
> I use GT555M nvc3.

It appears that some of the information was left out above from an
investigation session we had over IRC.

Resume actually works fine (from a strict kernel standpoint). However
some (all?) of the channels that were active at the time of the
suspend are now hung, and there are "failing to idle channel" messages
for compiz and cairo-dock when X is killed (and X has the appearance
of being hung, since compiz has hung): http://ix.io/6qt (hm, also note
that the channel values are identical for compiz and cairo-dock, not
sure if that's expected). If compiz and cairo-dock aren't running,
then the resume works fine.

It seems like some fence work went into v3.5 (e.g.
5e120f6e4b3f35b741c5445dfc755f50128c3c44, others), which could be
related. Other invasive changes like
c420b2dc8dc3cdd507214f4df5c5f96f08812cbe which affect FIFO handling
could be related as well.

My guess is that some semaphore write never happens, and the channels
are forever stuck waiting for some semaphore.

  -ilia

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IMPORTANT : Regression since kernel > 3.4 as regards suspend to RAM while using 3D accel
       [not found] ` <CA+T9nP8sBKxafn0szfpDcfudvJvMTsEvCL8eYzcV+EfYfX+3rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2013-06-30 18:16   ` Ilia Mirkin
@ 2013-07-06  7:27   ` Eric F
  2013-07-06 20:57     ` Ilia Mirkin
  1 sibling, 1 reply; 4+ messages in thread
From: Eric F @ 2013-07-06  7:27 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 1748 bytes --]

Hello,

After bisection I found the first bad commit :

5e120f6e4b3f35b741c5445dfc755f50128c3c44 is the first bad commit
commit 5e120f6e4b3f35b741c5445dfc755f50128c3c44
Author: Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Date:   Mon Apr 30 13:55:29 2012 +1000

    drm/nouveau/fence: convert to exec engine, and improve channel sync

    Now have a somewhat simpler semaphore sync implementation for nv17:nv84,
    and a switched to using semaphores as fences on nv84+ and making use of
    the hardware's >= acquire operation.

    Signed-off-by: Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

:040000 040000 8f2ca4ddf4969c75f688a96fdb152e449fda4852
da67a1bd8d608577e659a26715cf8af3644d8efe M    drivers

bad kernel name : 3.4.0-1-ARCH-00591-g5e120f6-dirty

Strangely, when I git checkout with the bad commit, it says :
"HEAD is now at 5e120f6... drm/nouveau/fence: convert to exec engine, and
improve channel sync"

But I checked, this commit 5e120f6e4b3f35b741c5445dfc755f50128c3c44 is the
first bad one.

Thanks for your future help,

Eric


2013/6/30 Eric F <3rik.gm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Hello,
>
> Been wondering why I could never resume from s2r. That's because I always
> use 3D accel (compiz, cairo-dock). I have tested each Arch kernel releases,
> hoping each time to get s2r to work.
>
> Tired of this, I decided to use 3.4 LTS... 3.4.50
> ... And guess what ? I could resume from suspend to RAM 100% of the time
> !!!
>
> I know it may be a hard work for you, but suspend to RAM while using 3D
> accel only works with this kernel (and maybe 3.4.51, will give a try).
>
> Suspend to RAM is important for battery saving for laptops.
> I use GT555M nvc3.
>
> Best regards,
>
> Eric
>

[-- Attachment #1.2: Type: text/html, Size: 2451 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IMPORTANT : Regression since kernel > 3.4 as regards suspend to RAM while using 3D accel
  2013-07-06  7:27   ` Eric F
@ 2013-07-06 20:57     ` Ilia Mirkin
  0 siblings, 0 replies; 4+ messages in thread
From: Ilia Mirkin @ 2013-07-06 20:57 UTC (permalink / raw)
  To: Eric F; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Sat, Jul 6, 2013 at 3:27 AM, Eric F <3rik.gm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hello,
>
> After bisection I found the first bad commit :
>
> 5e120f6e4b3f35b741c5445dfc755f50128c3c44 is the first bad commit
> commit 5e120f6e4b3f35b741c5445dfc755f50128c3c44
> Author: Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> Date:   Mon Apr 30 13:55:29 2012 +1000
>
>     drm/nouveau/fence: convert to exec engine, and improve channel sync
>
>     Now have a somewhat simpler semaphore sync implementation for nv17:nv84,
>     and a switched to using semaphores as fences on nv84+ and making use of
>     the hardware's >= acquire operation.
>
>     Signed-off-by: Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>
> :040000 040000 8f2ca4ddf4969c75f688a96fdb152e449fda4852
> da67a1bd8d608577e659a26715cf8af3644d8efe M    drivers
>
> bad kernel name : 3.4.0-1-ARCH-00591-g5e120f6-dirty
>
> Strangely, when I git checkout with the bad commit, it says :
> "HEAD is now at 5e120f6... drm/nouveau/fence: convert to exec engine, and
> improve channel sync"
>
> But I checked, this commit 5e120f6e4b3f35b741c5445dfc755f50128c3c44 is the
> first bad one.

It looks as though there were a few follow-on fixes to the nvc0 fence
code, at least one of them directly suspend-related. What if you try
them together, i.e. something like

git branch testing 5e120f6e4
git checkout testing
git cherry-pick 906c033e2
git cherry-pick d6ba6d215

and then test that kernel? Do you still see the issues? If so, then
the fixes were incomplete. If the issues go away, then some second
issue was introduced at some later point.

  -ilia

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-06 20:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-30 17:42 IMPORTANT : Regression since kernel > 3.4 as regards suspend to RAM while using 3D accel Eric F
     [not found] ` <CA+T9nP8sBKxafn0szfpDcfudvJvMTsEvCL8eYzcV+EfYfX+3rQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-30 18:16   ` Ilia Mirkin
2013-07-06  7:27   ` Eric F
2013-07-06 20:57     ` Ilia Mirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.