public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: joao.santos@intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [RFC] Remove cause of 'primary plane already enabled' kernel warning
Date: Wed, 12 Mar 2014 18:14:23 +0200	[thread overview]
Message-ID: <20140312161423.GI20292@intel.com> (raw)
In-Reply-To: <1394639710-6540-2-git-send-email-joao.santos@intel.com>

On Wed, Mar 12, 2014 at 03:55:10PM +0000, joao.santos@intel.com wrote:
> From: Joao Santos <joao.santos@intel.com>
> 
> Remove code which is trigerring a kernel warning. The kernel sets the
> primary_enable flag prior to calling intel_enable_primary_plane() which also
> sets it. This causes the WARN to assert everytime.
> 
> ------------[ cut here ]------------
> [    5.458511] WARNING: at i915/intel_display.c:2004 intel_enable_primary_plane+0xd8/0xe0()
> [    5.458511] Primary plane already enabled
> [    5.458513] Modules linked in:
> [    5.458516] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.20-263878-g086400b #10
> [    5.458517] Hardware name: Intel Corporation Shark Bay Client platform/WhiteTip Mountain 1, BIOS HSWLPTU1.86C.0119.R00.1303230105 03/23/2013
> [    5.458521]  ffffffff81d0dbc8 ffff8801488c3378 ffffffff8189d7a4 ffff8801488c33b8
> [    5.458523]  ffffffff8105bc60 ffff8801488c33e8 ffff880147118000 0000000000000000
> [    5.458525]  0000000000000000 ffff8801478bc000 ffff880147118000 ffff8801488c3418
> 
> This patch changes the code to call only intel_enable_primary_plane().
> 
> Change-Id: I0fa323e5f5ac330f88a78e7cb2f5ceefeff7d4fd
> Signed-off-by: Joao Santos <joao.santos@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_display.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index ae9b5a1..8953b7c 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -3950,7 +3950,6 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc)
>  	 */
>  	intel_crtc_load_lut(crtc);
>  
> -	intel_crtc->primary_enabled = true;
>  	intel_update_watermarks(crtc);
>  	intel_enable_pipe(dev_priv, pipe,
>  			  intel_crtc->config.has_pch_encoder, false);

There's no code like this in the driver. Are you using one of my old WIP
watermark branches or something?

-- 
Ville Syrjälä
Intel OTC

      reply	other threads:[~2014-03-12 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12 15:55 [RFC] Remove cause of 'primary plane already enabled' kernel warning joao.santos
2014-03-12 15:55 ` joao.santos
2014-03-12 16:14   ` Ville Syrjälä [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=20140312161423.GI20292@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=joao.santos@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