Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Issue 2830015: Implement direct pineview backlight control. (Closed)

Created:
10 years, 6 months ago by bfreed
Modified:
9 years, 4 months ago
CC:
chromium-os-reviews_chromium.org, mbligh, sleffler+cc_chromium.org, Mandeep Singh Baines, vb, Olof Johansson
Base URL:
ssh://git@chromiumos-git/kernel.git
Visibility:
Public.

Description

Implement direct pineview backlight control. This adds a Kconfig variable CONFIG_DRM_I915_DIRECT_BACKLIGHT to optionally include the new source file i915_backlight.c. This file registers a couple backlight set/get routines with the standard drivers/video/backlight interface to add a directory under /sys/class/backlight/. The big problem I see with this modification is that the i915 driver _already_ supports backlight level adjustment in i915_opregion.c. Unfortunately, that requires an IRQ to occur as the result of writing some ASLE (ACPI Source Language Event) register, and this requires BIOS support for the ACPI hook. It looks like we will not have such support in our initial custom BIOS. So I copy a small amount of code from i915_opregion.c to make backlight adjustment directly available to the backlight framework. Another problem is that I do not cover all the cases handled by the i915_opregion.c code. It would be too much untested code copying to do so. I enforce the lack of support by checking for IS_PINEVIEW() in i915_backlight_init().

Patch Set 1 #

Total comments: 5

Patch Set 2 : Changes to backlight control as per review. #

Patch Set 3 : Move config file changes to another patch for upstreamability, as per msb. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -0 lines) Patch
M drivers/gpu/drm/Kconfig View 1 chunk +12 lines, -0 lines 0 comments Download
M drivers/gpu/drm/i915/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A drivers/gpu/drm/i915/i915_backlight.c View 1 1 chunk +120 lines, -0 lines 0 comments Download
M drivers/gpu/drm/i915/i915_dma.c View 2 chunks +5 lines, -0 lines 0 comments Download
M drivers/gpu/drm/i915/i915_drv.h View 1 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bfreed
10 years, 6 months ago (2010-06-18 22:40:34 UTC) #1
jrbarnette
http://codereview.chromium.org/2830015/diff/1/4 File drivers/gpu/drm/Kconfig (right): http://codereview.chromium.org/2830015/diff/1/4#newcode127 drivers/gpu/drm/Kconfig:127: config DRM_I915_DIRECT_BACKLIGHT I have questions about why we need ...
10 years, 6 months ago (2010-06-21 15:51:38 UTC) #2
jrbarnette
On Jun 21, 2010, at 8:51 AM, jrbarnette@chromium.org wrote: > http://codereview.chromium.org/2830015/diff/1/4#newcode127 > drivers/gpu/drm/Kconfig:127: config DRM_I915_DIRECT_BACKLIGHT ...
10 years, 6 months ago (2010-06-21 20:21:42 UTC) #3
bfreed
10 years, 6 months ago (2010-06-21 23:35:48 UTC) #4
bfreed
Yes, the two i915 backlight controling methods (i915_opregion.c and i915_backlight.c) do indeed play nicely together. ...
10 years, 6 months ago (2010-06-21 23:45:21 UTC) #5
jrbarnette
On 2010/06/21 23:45:21, bfreed wrote: > Yes, the two i915 backlight controling methods (i915_opregion.c and ...
10 years, 6 months ago (2010-06-22 16:38:49 UTC) #6
bfreed
10 years, 6 months ago (2010-06-22 21:17:16 UTC) #7
jrbarnette
10 years, 6 months ago (2010-06-22 21:33:56 UTC) #8
OK.  S(till)LGTM!

Powered by Google App Engine
This is Rietveld 408576698