[Intel-gfx] [PATCH 1/4] drm/i915: Add fixed panel mode parsed from EDID for eDP without fixed mode in VBT
Dave Airlie
airlied at gmail.com
Thu Jul 29 03:00:03 CEST 2010
Or any of this series? I'm not seeing them upstream, and I'd really
like to know if they are necessary.
Dave.
On Mon, Jul 19, 2010 at 6:43 PM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> From: Zhao Yakui <yakui.zhao at intel.com>
>
> Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: stable at kernel.org
> ---
> drivers/gpu/drm/i915/intel_dp.c | 16 +++++++++++++++-
> 1 files changed, 15 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index b4f0282..74d026c 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -1325,8 +1325,22 @@ static int intel_dp_get_modes(struct drm_connector *connector)
> */
>
> ret = intel_ddc_get_modes(connector, intel_encoder->ddc_bus);
> - if (ret)
> + if (ret) {
> + if ((IS_eDP(intel_encoder) || IS_PCH_eDP(dp_priv)) &&
> + !dev_priv->panel_fixed_mode) {
> + struct drm_display_mode *newmode;
> + list_for_each_entry(newmode, &connector->probed_modes,
> + head) {
> + if (newmode->type & DRM_MODE_TYPE_PREFERRED) {
> + dev_priv->panel_fixed_mode =
> + drm_mode_duplicate(dev, newmode);
> + break;
> + }
> + }
> + }
> +
> return ret;
> + }
>
> /* if eDP has no EDID, try to use fixed panel mode from VBT */
> if (IS_eDP(intel_encoder) || IS_PCH_eDP(dp_priv)) {
> --
> 1.7.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
More information about the Intel-gfx
mailing list