Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2016 14:16:50 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        am_dxer@fastmail.fm
Cc:        "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org>
Subject:   Re: i915 update to Linux 3.8 ready!
Message-ID:  <CAPyFy2CA6QnLvOAyFXQuXQ3cjRH=5X8uLQm5gdWhHH5Zm4wBXA@mail.gmail.com>
In-Reply-To: <CAPyFy2BBa_RdS-5vz9y1vgOoAfe9PzWKvMpg0%2BK7i9uqJ%2Bo4Qg@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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2CA6QnLvOAyFXQuXQ3cjRH=5X8uLQm5gdWhHH5Zm4wBXA>