Merge tag 'drm-intel-fixes-2014-11-19' into drm-intel-next-queued
So with all the code movement and extraction in intel_pm.c in -next
git is hopelessly confused with
commit 2208d655a9
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Fri Nov 14 09:25:29 2014 +0100
drm/i915: drop WaSetupGtModeTdRowDispatch:snb
from -fixes. Worse even small changes in -next move around the
conflict context so rerere is equally useless. Let's just backmerge
and be done with it.
Conflicts:
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_pm.c
Except for git getting lost no tricky conflicts really.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
@@ -1120,12 +1120,25 @@ static u32 get_backlight_min_vbt(struct intel_connector *connector)
|
||||
struct drm_device *dev = connector->base.dev;
|
||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||
struct intel_panel *panel = &connector->panel;
|
||||
int min;
|
||||
|
||||
WARN_ON(panel->backlight.max == 0);
|
||||
|
||||
/*
|
||||
* XXX: If the vbt value is 255, it makes min equal to max, which leads
|
||||
* to problems. There are such machines out there. Either our
|
||||
* interpretation is wrong or the vbt has bogus data. Or both. Safeguard
|
||||
* against this by letting the minimum be at most (arbitrarily chosen)
|
||||
* 25% of the max.
|
||||
*/
|
||||
min = clamp_t(int, dev_priv->vbt.backlight.min_brightness, 0, 64);
|
||||
if (min != dev_priv->vbt.backlight.min_brightness) {
|
||||
DRM_DEBUG_KMS("clamping VBT min backlight %d/255 to %d/255\n",
|
||||
dev_priv->vbt.backlight.min_brightness, min);
|
||||
}
|
||||
|
||||
/* vbt value is a coefficient in range [0..255] */
|
||||
return scale(dev_priv->vbt.backlight.min_brightness, 0, 255,
|
||||
0, panel->backlight.max);
|
||||
return scale(min, 0, 255, 0, panel->backlight.max);
|
||||
}
|
||||
|
||||
static int bdw_setup_backlight(struct intel_connector *connector, enum pipe unused)
|
||||
|
Reference in New Issue
Block a user