drm/i915: fix backlight invert for non-zero minimum brightness
Subsystems (3)
PATCH 1/1 drm/i915: fix backlight invert for non-zero minimum brightness
When we started following the backlight minimum brightness in 6dda730e55f4 ("drm/i915: respect the VBT minimum backlight brightness") we overlooked the brightness invert quirk. Even if we invert the brightness, we need to take the min limit into account. We probably missed this because the invert has only been required on gen4 for proper operation.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101127
--- drivers/gpu/drm/i915/intel_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_panel.c +1 -1
@@ -469,7 +469,7 @@ static u32 intel_panel_compute_brightness(struct intel_connector *connector,if (i915.invert_brightness >0 || dev_priv->quirks &QUIRK_INVERT_BRIGHTNESS ) { -return panel->backlight.max - val; +return panel->backlight.max - val + panel->backlight.min; }return val;
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: fix backlight invert for non-zero minimum brightness
== Series Details ==
== Series Details ==
Series: drm/i915: fix backlight invert for non-zero minimum brightness
URL : https://patchwork.freedesktop.org/series/25085/
State : success
== Summary ==
Series 25085v1 drm/i915: fix backlight invert for non-zero minimum brightness
https://patchwork.freedesktop.org/api/1.0/series/25085/revisions/1/mbox/
Test kms_cursor_legacy:
Subgroup basic-busy-flip-before-cursor-atomic:
fail -> PASS (fi-snb-2600) fdo#100215fdo#100215 https://bugs.freedesktop.org/show_bug.cgi?id=100215
fi-bdw-5557u total:278 pass:267 dwarn:0 dfail:0 fail:0 skip:11 time:441s fi-bdw-gvtdvm total:278 pass:256 dwarn:8 dfail:0 fail:0 skip:14 time:438s fi-bsw-n3050 total:278 pass:242 dwarn:0 dfail:0 fail:0 skip:36 time:585s fi-bxt-j4205 total:278 pass:259 dwarn:0 dfail:0 fail:0 skip:19 time:512s fi-byt-j1900 total:278 pass:254 dwarn:0 dfail:0 fail:0 skip:24 time:487s fi-byt-n2820 total:278 pass:250 dwarn:0 dfail:0 fail:0 skip:28 time:481s fi-hsw-4770 total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time:434s fi-hsw-4770r total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time:413s fi-ilk-650 total:278 pass:228 dwarn:0 dfail:0 fail:0 skip:50 time:416s fi-ivb-3520m total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time:496s fi-ivb-3770 total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time:464s fi-kbl-7500u total:278 pass:255 dwarn:5 dfail:0 fail:0 skip:18 time:468s fi-skl-6260u total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time:456s fi-skl-6700hq total:278 pass:239 dwarn:0 dfail:1 fail:17 skip:21 time:433s fi-skl-6700k total:278 pass:256 dwarn:4 dfail:0 fail:0 skip:18 time:465s fi-skl-6770hq total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time:500s fi-skl-gvtdvm total:278 pass:265 dwarn:0 dfail:0 fail:0 skip:13 time:434s fi-snb-2520m total:278 pass:250 dwarn:0 dfail:0 fail:0 skip:28 time:537s fi-snb-2600 total:278 pass:249 dwarn:0 dfail:0 fail:0 skip:29 time:411s
d6dcb2fc7dc2ca874a0f0063f21fcca6a3e61fac drm-tip: 2017y-05m-31d-07h-35m-12s UTC integration manifest 294ea2a drm/i915: fix backlight invert for non-zero minimum brightness
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_4837/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 11 lines · Jani Nikula
When we started following the backlight minimum brightness in
6dda730e55f4("drm/i915: respect the VBT minimum backlight brightness") we overlooked the brightness invert quirk. Even if we invert the brightness, we need to take the min limit into account. We probably missed this because the invert has only been required on gen4 for proper operation.Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101127
Fixes 6dda730e55f4 ("drm/i915: respect the VBT minimum backlight brightness")Cc Daniel Vetter <[email protected]>Cc <[email protected]> # v3.17+
Not sure the cc: stable is justified, but makes sense otherwise
Quoted 21 lines
Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/i915/intel_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_panel.c +1
-1@@ -469,7 +469,7 @@ static u32 intel_panel_compute_brightness(struct intel_connector *connector,if (i915.invert_brightness >0 || dev_priv->quirks &QUIRK_INVERT_BRIGHTNESS ) { -return panel->backlight.max - val; +return panel->backlight.max - val + panel->backlight.min; }return val;Signature · 1 line
2.11.0
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Quoted 8 lines · Daniel Vetter
Quoted 7 lines · Jani Nikula
When we started following the backlight minimum brightness in
6dda730e55f4("drm/i915: respect the VBT minimum backlight brightness") we overlooked the brightness invert quirk. Even if we invert the brightness, we need to take the min limit into account. We probably missed this because the invert has only been required on gen4 for proper operation.
Quoted 8 lines
Quoted 4 lines
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101127
Fixes 6dda730e55f4 ("drm/i915: respect the VBT minimum backlight brightness")Cc Daniel Vetter <[email protected]>Cc <[email protected]> # v3.17+Not sure the cc: stable is justified, but makes sense otherwise
Reviewed-by Daniel Vetter <[email protected]>
Had forgotten about this, pushed now, without cc: stable.
Thanks for the review.
BR,
Jani.
Quoted 22 lines
Quoted 22 lines
Signed-off-by Jani Nikula <[email protected]>--- drivers/gpu/drm/i915/intel_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_panel.c +1
-1@@ -469,7 +469,7 @@ static u32 intel_panel_compute_brightness(struct intel_connector *connector,if (i915.invert_brightness >0 || dev_priv->quirks &QUIRK_INVERT_BRIGHTNESS ) { -return panel->backlight.max - val; +return panel->backlight.max - val + panel->backlight.min; }return val;Signature · 1 line
2.11.0
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center