All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/4] drm/i915: Restrict SNB LP3+ disable to Thinkpad X220 tablet
Date: Mon, 25 Feb 2019 17:45:38 +0200	[thread overview]
Message-ID: <20190225154538.GC20097@intel.com> (raw)
In-Reply-To: <20190222155251.16730-4-ville.syrjala@linux.intel.com>

On Fri, Feb 22, 2019 at 05:52:51PM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> The only machine we know for sure to require the LP3+ disable
> is the Lenovo Thinkpad X220 tablet. Originally in commit
> 03981c6ebec4 ("drm/i915: Disable LP3 watermarks on all SNB
> machines") I disabled LP3+ watermarks on all SNB machines,
> partially for safety, and partially since I didn't want to
> add a quirk. But since we now have another watermark quirk
> anyway let's reduce the SNB LP3+ disable scope to the x220
> tablet only.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  drivers/gpu/drm/i915/intel_pm.c | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 2a4b5014f56e..b225461455c2 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -3038,7 +3038,7 @@ static void ilk_wm_disable_quirk(struct drm_i915_private *dev_priv,
>  	intel_print_wm_latency(dev_priv, "Cursor", dev_priv->wm.cur_latency);
>  }
>  
> -static void snb_wm_lp3_irq_quirk(struct drm_i915_private *dev_priv)
> +static void ilk_wm_disable_lp3(struct drm_i915_private *dev_priv)
>  {
>  	/*
>  	 * On some SNB machines (Thinkpad X220 Tablet at least)
> @@ -3060,6 +3060,11 @@ static void ilk_wm_disable_lp1_quirk(struct drm_i915_private *dev_priv)
>  }
>  
>  static const struct intel_pci_quirk ilk_wm_quirks[] = {
> +	/*
> +	 * Lenovo ThinkPad X220 Tablet (snb)
> +	 * CPU doesn't wake up for vblank interrupts with LP3.
> +	 */
> +	{ 0x0126, 0x17aa, 0x21db, ilk_wm_disable_lp3 },

Hmm. Somehow I had convinced myself that this would also cover the second
bugreport (https://bugs.freedesktop.org/show_bug.cgi?id=101269) we had
about this. But looks like we'd need another quirk entry here for that
machine (a Thinkpad T420). I'll respin with. *hopefully* there aren't
many more.

>  	/*
>  	 * Lenovo Thinkpad T431s (ivb)
>  	 * Massive underruns with LP1+.
> @@ -3084,10 +3089,8 @@ static void ilk_setup_wm_latency(struct drm_i915_private *dev_priv)
>  	intel_print_wm_latency(dev_priv, "Sprite", dev_priv->wm.spr_latency);
>  	intel_print_wm_latency(dev_priv, "Cursor", dev_priv->wm.cur_latency);
>  
> -	if (IS_GEN(dev_priv, 6)) {
> +	if (IS_GEN(dev_priv, 6))
>  		snb_wm_latency_quirk(dev_priv);
> -		snb_wm_lp3_irq_quirk(dev_priv);
> -	}
>  
>  	intel_apply_pci_quirks(dev_priv, ilk_wm_quirks);
>  }
> -- 
> 2.19.2

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2019-02-25 15:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22 15:52 [PATCH 1/4] drm/i915: Disable LP1+ watermarks on Lenovo Thinkpad T431s Ville Syrjala
2019-02-22 15:52 ` Ville Syrjala
2019-02-22 15:52 ` [PATCH 2/4] drm/i915: Generalize pci quirks Ville Syrjala
2019-02-25 13:12   ` Jani Nikula
2019-02-25 13:28     ` Jani Nikula
2019-02-25 13:38       ` Ville Syrjälä
2019-02-22 15:52 ` [PATCH 3/4] drm/i915: Use intel_apply_pci_quirks() to apply ILK+ wm quirks Ville Syrjala
2019-02-25 13:14   ` Jani Nikula
2019-02-25 13:28     ` Ville Syrjälä
2019-02-22 15:52 ` [PATCH 4/4] drm/i915: Restrict SNB LP3+ disable to Thinkpad X220 tablet Ville Syrjala
2019-02-25 13:18   ` Jani Nikula
2019-02-25 15:45   ` Ville Syrjälä [this message]
2019-02-25 16:11     ` Ville Syrjälä
2019-02-22 16:02 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] drm/i915: Disable LP1+ watermarks on Lenovo Thinkpad T431s Patchwork
2019-02-22 16:29 ` ✓ Fi.CI.BAT: success " Patchwork
2019-02-23  1:58 ` ✓ Fi.CI.IGT: " Patchwork
2019-02-25 13:19 ` [PATCH 1/4] " Jani Nikula
2019-02-25 13:19   ` [Intel-gfx] " 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=20190225154538.GC20097@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.