Re: Lag after resume culprit found

2018-05-17 Thread Konstantin Belousov
On Thu, May 17, 2018 at 11:06:42AM +0300, Andriy Gapon wrote: > On 17/05/2018 10:56, Johannes Lundberg wrote: > > > > > > On Thu, May 17, 2018 at 8:46 AM, Johannes Lundberg > > wrote: > > > > > > > > On Thu, May 17, 2018 at 7:43 AM, Andriy

Re: Lag after resume culprit found

2018-05-17 Thread Andriy Gapon
On 17/05/2018 10:56, Johannes Lundberg wrote: > > > On Thu, May 17, 2018 at 8:46 AM, Johannes Lundberg > wrote: > > > > On Thu, May 17, 2018 at 7:43 AM, Andriy Gapon > wrote: > > On

Re: Lag after resume culprit found

2018-05-17 Thread Andriy Gapon
On 17/05/2018 10:56, Andriy Gapon wrote: > On 17/05/2018 10:46, Johannes Lundberg wrote: >> On Thu, May 17, 2018 at 7:43 AM, Andriy Gapon > > wrote: >> >> On 17/05/2018 02:07, Johannes Lundberg wrote: >> > >>

Re: Lag after resume culprit found

2018-05-17 Thread Andriy Gapon
On 17/05/2018 10:46, Johannes Lundberg wrote: > On Thu, May 17, 2018 at 7:43 AM, Andriy Gapon > wrote: > > On 17/05/2018 02:07, Johannes Lundberg wrote: > > > https://github.com/freebsd/freebsd/commit/66f063557f257baa9c8aeab9f933171eaa6e1cfa >

Re: Lag after resume culprit found

2018-05-17 Thread Johannes Lundberg
On Thu, May 17, 2018 at 8:46 AM, Johannes Lundberg wrote: > > > On Thu, May 17, 2018 at 7:43 AM, Andriy Gapon wrote: > >> On 17/05/2018 02:07, Johannes Lundberg wrote: >> > https://github.com/freebsd/freebsd/commit/66f063557f257baa9c >>

Re: Lag after resume culprit found

2018-05-17 Thread Johannes Lundberg
On Thu, May 17, 2018 at 7:43 AM, Andriy Gapon wrote: > On 17/05/2018 02:07, Johannes Lundberg wrote: > > https://github.com/freebsd/freebsd/commit/66f063557f257baa9c8aeab9f93317 > 1eaa6e1cfa > > x86 cpususpend_handler: call wbinvd after setting suspend state bits > > That's

Re: Lag after resume culprit found

2018-05-17 Thread Andriy Gapon
On 17/05/2018 02:07, Johannes Lundberg wrote: > https://github.com/freebsd/freebsd/commit/66f063557f257baa9c8aeab9f933171eaa6e1cfa > x86 cpususpend_handler: call wbinvd after setting suspend state bits That's very interesting and surprising. That commit changes something that happens before

Lag after resume culprit found

2018-05-16 Thread Johannes Lundberg
https://github.com/freebsd/freebsd/commit/66f063557f257baa9c8aeab9f933171eaa6e1cfa x86 cpususpend_handler: call wbinvd after setting suspend state bits How to test (i915kms) Start X with glxgears Confirm running stable at 60 fps suspend/resume (S3) glxgears is now fluctuating between 10-40 fps.