From: Daniel Vetter <daniel@ffwll.ch>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH] Revert "drm/i915: allow PCH PWM override on IVB"
Date: Wed, 27 Jun 2012 20:28:06 +0200 [thread overview]
Message-ID: <20120627182806.GH5326@phenom.ffwll.local> (raw)
In-Reply-To: <1340808216-1580-1-git-send-email-daniel.vetter@ffwll.ch>
On Wed, Jun 27, 2012 at 04:43:36PM +0200, Daniel Vetter wrote:
> This reverts commit f82cfb6bcda164ef3a66b8c3fc549b1f9bdd09ad.
>
> This breaks the backlight controls on my IVB asus zenbook with an eDP
> panel.
>
> I guess the right fix would be to read this bit and use either the pch
> or the cpu register to frob the backlight values. But that is stuff
> for -next.
>
> Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Jesse acked this on irc, so I've queued this one for -fixes.
-Daniel
> ---
> drivers/gpu/drm/i915/intel_display.c | 16 ----------------
> 1 file changed, 16 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index a7c727d..a8538ac 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -6921,19 +6921,6 @@ static void i915_disable_vga(struct drm_device *dev)
> POSTING_READ(vga_reg);
> }
>
> -static void ivb_pch_pwm_override(struct drm_device *dev)
> -{
> - struct drm_i915_private *dev_priv = dev->dev_private;
> -
> - /*
> - * IVB has CPU eDP backlight regs too, set things up to let the
> - * PCH regs control the backlight
> - */
> - I915_WRITE(BLC_PWM_CPU_CTL2, PWM_ENABLE);
> - I915_WRITE(BLC_PWM_CPU_CTL, 0);
> - I915_WRITE(BLC_PWM_PCH_CTL1, PWM_ENABLE | (1<<30));
> -}
> -
> void intel_modeset_init_hw(struct drm_device *dev)
> {
> struct drm_i915_private *dev_priv = dev->dev_private;
> @@ -6950,9 +6937,6 @@ void intel_modeset_init_hw(struct drm_device *dev)
> gen6_enable_rps(dev_priv);
> gen6_update_ring_freq(dev_priv);
> }
> -
> - if (IS_IVYBRIDGE(dev))
> - ivb_pch_pwm_override(dev);
> }
>
> void intel_modeset_init(struct drm_device *dev)
> --
> 1.7.10.2
>
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
next prev parent reply other threads:[~2012-06-27 18:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 14:43 [PATCH] Revert "drm/i915: allow PCH PWM override on IVB" Daniel Vetter
2012-06-27 18:28 ` Daniel Vetter [this message]
2012-07-14 15:28 ` Paulo Zanoni
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=20120627182806.GH5326@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
/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