]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: safeguard against too high minimum brightness
authorJani Nikula <jani.nikula@intel.com>
Wed, 5 Nov 2014 12:46:31 +0000 (14:46 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 6 Nov 2014 16:20:13 +0000 (18:20 +0200)
commit75bf52c32d7b580cad16ed9b12ef4b7bb2914da4
tree86445652ca3e58279f9f347e881b56cf8a84041e
parentc48d1ef1db6d83668362363c28d2a11cd57678d2
drm/i915: safeguard against too high minimum brightness

Never trust (your interpretation of) the VBT. Regression from

commit 745f20e2bff4e9be6422f10e92a2dc06abce1c00
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Tue Jun 24 18:27:40 2014 +0300

    drm/i915: respect the VBT minimum backlight brightness

causing div by zero if VBT minimum brightness equals maximum brightness.

Despite my attempts I've failed in my detective work to figure out what
the root cause is. This is not the real fix, but we have to do
something.

Reported-by: Mike Auty <mike.auty@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=86551
Cc: stable@vger.kernel.org (v3.17+)
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_panel.c