> Tested-by: Marco Krüger <[email protected]>
> Tested-by: Alexey Shumitsky <[email protected]>
> Tested-by: Sean Greenslade <[email protected]>
> Tested-by: Emil Andersen Lauridsen <[email protected]>
> Tested-by: Robin Müller <[email protected]>
> Tested-by: [email protected]
> Signed-off-by: Ville Syrjälä <[email protected]>
> Acked-by: Jani Nikula <[email protected]>
> Tested-by: James Hogan <[email protected]>

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

Tested-by: Adrien Vergé <[email protected]>

> ---
>  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
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to