stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Adrien Vergé" <adrienverge@gmail.com>
To: ville.syrjala@linux.intel.com
Cc: intel-gfx@lists.freedesktop.org,
	"Andrea Arcangeli" <aarcange@redhat.com>,
	"Sean Greenslade" <sean@seangreenslade.com>,
	"Alexey Shumitsky" <alexey.shumitsky@gmail.com>,
	"Martin van Es" <martin@mrvanes.com>,
	"Dave Airlie" <airlied@linux.ie>,
	"James Hogan" <james@albanarts.com>,
	stable@vger.kernel.org, "Marco Krüger" <krgsch@gmail.com>,
	"Rob Kramer" <rob@solution-space.com>,
	"Emil Andersen Lauridsen" <mine809@gmail.com>,
	"Alexander Kobel" <a-kobel@a-kobel.de>,
	oceans112@gmail.com,
	"James Bottomley" <James.Bottomley@HansenPartnership.com>,
	"Robin Müller" <rm1990@gmx.de>,
	"Trudy Tective" <bertslany@gmail.com>
Subject: Re: drm/i915: Ignore OpRegion panel type except on select machines
Date: Thu, 15 Sep 2016 14:10:37 +0200	[thread overview]
Message-ID: <20160915121037.GA5357@terra> (raw)
In-Reply-To: <1473758539-21565-1-git-send-email-ville.syrjala@linux.intel.com>

> Tested-by: Marco Kr�ger <krgsch@gmail.com>
> Tested-by: Alexey Shumitsky <alexey.shumitsky@gmail.com>
> Tested-by: Sean Greenslade <sean@seangreenslade.com>
> Tested-by: Emil Andersen Lauridsen <mine809@gmail.com>
> Tested-by: Robin M�ller <rm1990@gmx.de>
> Tested-by: oceans112@gmail.com
> Signed-off-by: Ville Syrj�l� <ville.syrjala@linux.intel.com>
> Acked-by: Jani Nikula <jani.nikula@intel.com>
> Tested-by: James Hogan <james@albanarts.com>

That works for me too on Terra Mobile Ultrabook 1450 II.
Thanks!

Tested-by: Adrien Verg� <adrienverge@gmail.com>

> ---
>  drivers/gpu/drm/i915/intel_opregion.c | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/intel_opregion.c b/drivers/gpu/drm/i915/intel_opregion.c
> index adca262d591a..7acbbbf97833 100644
> --- a/drivers/gpu/drm/i915/intel_opregion.c
> +++ b/drivers/gpu/drm/i915/intel_opregion.c
> @@ -1047,6 +1047,23 @@ err_out:
>  	return err;
>  }
>  
> +static int intel_use_opregion_panel_type_callback(const struct dmi_system_id *id)
> +{
> +	DRM_INFO("Using panel type from OpRegion on %s\n", id->ident);
> +	return 1;
> +}
> +
> +static const struct dmi_system_id intel_use_opregion_panel_type[] = {
> +	{
> +		.callback = intel_use_opregion_panel_type_callback,
> +		.ident = "Conrac GmbH IX45GM2",
> +		.matches = {DMI_MATCH(DMI_SYS_VENDOR, "Conrac GmbH"),
> +			    DMI_MATCH(DMI_PRODUCT_NAME, "IX45GM2"),
> +		},
> +	},
> +	{ }
> +};
> +
>  int
>  intel_opregion_get_panel_type(struct drm_i915_private *dev_priv)
>  {
> @@ -1073,6 +1090,16 @@ intel_opregion_get_panel_type(struct drm_i915_private *dev_priv)
>  	}
>  
>  	/*
> +	 * So far we know that some machined must use it, others must not use it.
> +	 * There doesn't seem to be any way to determine which way to go, except
> +	 * via a quirk list :(
> +	 */
> +	if (!dmi_check_system(intel_use_opregion_panel_type)) {
> +		DRM_DEBUG_KMS("Ignoring OpRegion panel type (%d)\n", ret - 1);
> +		return -ENODEV;
> +	}
> +
> +	/*
>  	 * FIXME On Dell XPS 13 9350 the OpRegion panel type (0) gives us
>  	 * low vswing for eDP, whereas the VBT panel type (2) gives us normal
>  	 * vswing instead. Low vswing results in some display flickers, so

      parent reply	other threads:[~2016-09-15 12:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13  9:22 [PATCH] drm/i915: Ignore OpRegion panel type except on select machines ville.syrjala
2016-09-13  9:37 ` [Intel-gfx] " Jani Nikula
2016-09-14  7:45   ` Ville Syrjälä
2016-09-14  8:29 ` James Hogan
2016-09-15 12:10 ` Adrien Vergé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160915121037.GA5357@terra \
    --to=adrienverge@gmail.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=a-kobel@a-kobel.de \
    --cc=aarcange@redhat.com \
    --cc=airlied@linux.ie \
    --cc=alexey.shumitsky@gmail.com \
    --cc=bertslany@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=james@albanarts.com \
    --cc=krgsch@gmail.com \
    --cc=martin@mrvanes.com \
    --cc=mine809@gmail.com \
    --cc=oceans112@gmail.com \
    --cc=rm1990@gmx.de \
    --cc=rob@solution-space.com \
    --cc=sean@seangreenslade.com \
    --cc=stable@vger.kernel.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).