From: Jani Nikula <jani.nikula@intel.com>
To: Scot Doyle <lkml14@scotdoyle.com>,
intel-gfx@lists.freedesktop.org, James Duley <jagduley@gmail.com>
Subject: Re: [PATCH 1/5] quirk asserts controllable backlight presence, overriding VBT
Date: Sat, 28 Jun 2014 16:52:28 +0300 [thread overview]
Message-ID: <877g41jg4j.fsf@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1406271739110.6382@scotdoyle.com>
On Fri, 27 Jun 2014, Scot Doyle <lkml14@scotdoyle.com> wrote:
> Add a quirk to assert the presence of a controllable backlight. Use it to
> ignore the VBT backlight presence check during backlight setup.
>
> Tested-by: James Duley <jagduley@gmail.com>
> Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>
> CC: Jani Nikula <jani.nikula@intel.com>
> ---
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 8cea596..723b1fe 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -657,6 +657,7 @@ enum intel_sbi_destination {
> #define QUIRK_PIPEA_FORCE (1<<0)
> #define QUIRK_LVDS_SSC_DISABLE (1<<1)
> #define QUIRK_INVERT_BRIGHTNESS (1<<2)
> +#define QUIRK_BACKLIGHT_PRESENT (1<<3)
>
> struct intel_fbdev;
> struct intel_fbc_work;
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 065984d..c583b07 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -12290,6 +12290,14 @@ static void quirk_invert_brightness(struct drm_device *dev)
> DRM_INFO("applying inverted panel brightness quirk\n");
> }
>
> +/* Some VBT's incorrectly indicate no backlight is present */
> +static void quirk_backlight_present(struct drm_device *dev)
> +{
> + struct drm_i915_private *dev_priv = dev->dev_private;
> + dev_priv->quirks |= QUIRK_BACKLIGHT_PRESENT;
> + DRM_INFO("applying backlight present quirk\n");
> +}
> +
> struct intel_quirk {
> int device;
> int subsystem_vendor;
> diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
> index 38a9857..dfc6b5f 100644
> --- a/drivers/gpu/drm/i915/intel_panel.c
> +++ b/drivers/gpu/drm/i915/intel_panel.c
> @@ -1118,8 +1118,13 @@ int intel_panel_setup_backlight(struct drm_connector *connector)
> int ret;
>
> if (!dev_priv->vbt.backlight.present) {
> - DRM_DEBUG_KMS("native backlight control not available per VBT\n");
> - return 0;
> + if (dev_priv->quirks & QUIRK_BACKLIGHT_PRESENT) {
> + DRM_DEBUG_KMS("no backlight present per VBT, but "
> + "present per quirk\n");
Usually strings are not wrapped so that you can grep the source for
them.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> + } else {
> + DRM_DEBUG_KMS("no backlight present per VBT\n");
> + return 0;
> + }
> }
>
> /* set level and max in panel struct */
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
next prev parent reply other threads:[~2014-06-28 13:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 16:38 [PATCH 0/5] drm/i915: Fix backlight regression caused by misconfigured VBT Scot Doyle
2014-06-27 16:42 ` [PATCH 1/5] quirk asserts controllable backlight presence, overriding VBT Scot Doyle
2014-06-28 13:52 ` Jani Nikula [this message]
2014-06-27 16:45 ` [PATCH 2/5] Acer C720 has a controllable backlight Scot Doyle
2014-06-27 16:50 ` [PATCH 3/5] Dell 11 Chromebook " Scot Doyle
2014-06-28 13:49 ` Jani Nikula
2014-06-27 16:53 ` [PATCH 4/5] HP 14 " Scot Doyle
2014-06-27 16:56 ` [PATCH 5/5] Toshiba CB35 " Scot Doyle
2014-06-28 13:54 ` [PATCH 0/5] drm/i915: Fix backlight regression caused by misconfigured VBT Jani Nikula
2014-06-30 15:53 ` [PATCH v2 0/3] drm/i915: fix " Scot Doyle
2014-06-30 15:55 ` [PATCH v2 1/3] drm/i915: quirk asserts controllable backlight presence, overriding VBT Scot Doyle
2014-06-30 15:59 ` [PATCH v2 2/3] drm/i915: Acer C720 and C720P have controllable backlights Scot Doyle
2014-06-30 16:02 ` [PATCH v2 3/3] drm/i915: Toshiba CB35 has a controllable backlight Scot Doyle
2014-07-03 23:27 ` [PATCH v3 0/3] drm/i915: fix backlight regression caused by misconfigured VBT Scot Doyle
2014-07-03 23:27 ` [PATCH v3 1/3] drm/i915: quirk asserts controllable backlight presence, overriding VBT Scot Doyle
2014-07-03 23:27 ` [PATCH v3 2/3] drm/i915: Acer C720 and C720P have controllable backlights Scot Doyle
2014-07-03 23:27 ` [PATCH v3 3/3] drm/i915: Toshiba CB35 has a controllable backlight Scot Doyle
2014-07-04 12:17 ` [PATCH v3 0/3] drm/i915: fix backlight regression caused by misconfigured VBT Jani Nikula
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=877g41jg4j.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jagduley@gmail.com \
--cc=lkml14@scotdoyle.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