Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2016 20:54:16 -0400
From:      am_dxer@fastmail.fm
To:        Ed Maste <emaste@freebsd.org>
Cc:        "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org>
Subject:   Re: i915 update to Linux 3.8 ready!
Message-ID:  <1458262456.542489.552574226.316C2F67@webmail.messagingengine.com>
In-Reply-To: <CAPyFy2CA6QnLvOAyFXQuXQ3cjRH=5X8uLQm5gdWhHH5Zm4wBXA@mail.gmail.com>
References:  <1457974114.3576662.548762770.0E1628BF@webmail.messagingengine.com> <CAPyFy2C-oPqrrWTvx_CsMN6EX-kG-HmWJELUAw1Zp5hO9h6XSg@mail.gmail.com> <20160315171920.GZ1741@kib.kiev.ua> <1458086366.4068324.550308746.4DBF0576@webmail.messagingengine.com> <CAPyFy2BBa_RdS-5vz9y1vgOoAfe9PzWKvMpg0%2BK7i9uqJ%2Bo4Qg@mail.gmail.com> <CAPyFy2CA6QnLvOAyFXQuXQ3cjRH=5X8uLQm5gdWhHH5Zm4wBXA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 17, 2016, at 02:16 PM, Ed Maste wrote:
> On 17 March 2016 at 11:20, Ed Maste <emaste@freebsd.org> wrote:
> > On 15 March 2016 at 19:59,  <am_dxer@fastmail.fm> wrote:
> >>
> >> Thank you both for the suggestions. After suspending and resuming the
> >> machine, I find that the power used by the GPU is significantly less.
> >
> > Thank you for testing, and I see the same behaviour on my Thinkpad
> > X220: after loading i915kms.ko only RC6 is nonzero and RC6+ and RC6++
> > remain at zero, while after
> > boot RC6++ is much higher.
> 
> I tried reverting the Sandy Bridge part of the change that was
> identified as the source of the similar problem in Linux, and it fixes
> the power consumption issue for me.
> 
> My partial revert is just removes the write to the GEN6_MBCTL register
> in gen6_init_clock_gating(). Of course there's some reason it was
> added in Linux, but the driver was functional on Sandy Bridge and
> earlier hardware for years prior to the recent FreeBSD i915 update,
> without that register write. Thus I think it's reasonable to disable
> it until we either fully understand the problem or (more likely) just
> update to a later Linux i915 version and verify normal Sandy Bridge
> power consumption.
> 
> The patch: https://people.freebsd.org/~emaste/D5665.diff
> 
> Code review: https://reviews.freebsd.org/D5665

I applied your patch today and compiled a new kernel. The power
consumption in the EliteBook is also back to normal after loading the
i915kms driver. Suspending and resuming the machine is no longer
required. Thank you for the help and suggestions and for solving this
issue.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1458262456.542489.552574226.316C2F67>