All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vivi, Rodrigo" <rodrigo.vivi@intel.com>
To: lkp <lkp@intel.com>
Cc: "intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"kbuild-all@01.org" <kbuild-all@01.org>
Subject: Re: [PATCH] drm/i915: Avoid vblank counter for gen9+
Date: Fri, 12 Feb 2016 15:51:51 +0000	[thread overview]
Message-ID: <1455292357.5591.408.camel@intel.com> (raw)
In-Reply-To: <201602120909.aVrUZQpk%fengguang.wu@intel.com>

doh!! sent the wrong version... going to sent the right one now...

On Fri, 2016-02-12 at 09:32 +0800, kbuild test robot wrote:
> Hi Rodrigo,
> 
> [auto build test WARNING on drm-intel/for-linux-next]
> [also build test WARNING on v4.5-rc3 next-20160211]
> [if your patch is applied to the wrong git tree, please drop us a 
> note to help improving the system]
> 
> url:    https://github.com/0day-ci/linux/commits/Rodrigo-Vivi/drm-i91
> 5-Avoid-vblank-counter-for-gen9/20160212-090608
> base:   git://anongit.freedesktop.org/drm-intel for-linux-next
> config: x86_64-randconfig-x000-201606 (attached as .config)
> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=x86_64 
> 
> All warnings (new ones prefixed by >>):
> 
>    In file included from include/uapi/linux/stddef.h:1:0,
>                     from include/linux/stddef.h:4,
>                     from include/uapi/linux/posix_types.h:4,
>                     from include/uapi/linux/types.h:13,
>                     from include/linux/types.h:5,
>                     from include/linux/sysrq.h:18,
>                     from drivers/gpu/drm/i915/i915_irq.c:31:
>    drivers/gpu/drm/i915/i915_irq.c: In function 'intel_irq_init':
>    drivers/gpu/drm/i915/i915_irq.c:4578:55: warning: comparison of 
> constant '9' with boolean expression is always false [-Wbool-compare]
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>                                                           ^
>    include/linux/compiler.h:147:28: note: in definition of macro 
> '__trace_if'
>      if (__builtin_constant_p((cond)) ? !!(cond) :   \
>                                ^
> > > drivers/gpu/drm/i915/i915_irq.c:4578:2: note: in expansion of 
> > > macro 'if'
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>      ^
>    drivers/gpu/drm/i915/i915_irq.c:4578:55: warning: logical not is 
> only applied to the left hand side of comparison [-Wlogical-not
> -parentheses]
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>                                                           ^
>    include/linux/compiler.h:147:28: note: in definition of macro 
> '__trace_if'
>      if (__builtin_constant_p((cond)) ? !!(cond) :   \
>                                ^
> > > drivers/gpu/drm/i915/i915_irq.c:4578:2: note: in expansion of 
> > > macro 'if'
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>      ^
>    drivers/gpu/drm/i915/i915_irq.c:4578:55: warning: comparison of 
> constant '9' with boolean expression is always false [-Wbool-compare]
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>                                                           ^
>    include/linux/compiler.h:147:40: note: in definition of macro 
> '__trace_if'
>      if (__builtin_constant_p((cond)) ? !!(cond) :   \
>                                            ^
> > > drivers/gpu/drm/i915/i915_irq.c:4578:2: note: in expansion of 
> > > macro 'if'
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>      ^
>    drivers/gpu/drm/i915/i915_irq.c:4578:55: warning: logical not is 
> only applied to the left hand side of comparison [-Wlogical-not
> -parentheses]
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>                                                           ^
>    include/linux/compiler.h:147:40: note: in definition of macro 
> '__trace_if'
>      if (__builtin_constant_p((cond)) ? !!(cond) :   \
>                                            ^
> > > drivers/gpu/drm/i915/i915_irq.c:4578:2: note: in expansion of 
> > > macro 'if'
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>      ^
>    drivers/gpu/drm/i915/i915_irq.c:4578:55: warning: comparison of 
> constant '9' with boolean expression is always false [-Wbool-compare]
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>                                                           ^
>    include/linux/compiler.h:158:16: note: in definition of macro 
> '__trace_if'
>       ______r = !!(cond);     \
>                    ^
> > > drivers/gpu/drm/i915/i915_irq.c:4578:2: note: in expansion of 
> > > macro 'if'
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>      ^
>    drivers/gpu/drm/i915/i915_irq.c:4578:55: warning: logical not is 
> only applied to the left hand side of comparison [-Wlogical-not
> -parentheses]
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>                                                           ^
>    include/linux/compiler.h:158:16: note: in definition of macro 
> '__trace_if'
>       ______r = !!(cond);     \
>                    ^
> > > drivers/gpu/drm/i915/i915_irq.c:4578:2: note: in expansion of 
> > > macro 'if'
>      if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)->gen >= 9)
>      ^
> 
> vim +/if +4578 drivers/gpu/drm/i915/i915_irq.c
> 
>   4562		} else if (IS_GEN2(dev_priv)) {
>   4563			dev->max_vblank_count = 0;
>   4564			dev->driver->get_vblank_counter = 
> i8xx_get_vblank_counter;
>   4565		} else if (IS_G4X(dev_priv) || 
> INTEL_INFO(dev_priv)->gen >= 5) {
>   4566			dev->max_vblank_count = 0xffffffff; /* 
> full 32 bit counter */
>   4567			dev->driver->get_vblank_counter = 
> g4x_get_vblank_counter;
>   4568		} else {
>   4569			dev->driver->get_vblank_counter = 
> i915_get_vblank_counter;
>   4570			dev->max_vblank_count = 0xffffff; /* 
> only 24 bits of frame count */
>   4571		}
>   4572	
>   4573		/*
>   4574		 * Opt out of the vblank disable timer on 
> everything except gen2.
>   4575		 * Gen2 doesn't have a hardware frame counter 
> and so depends on
>   4576		 * vblank interrupts to produce sane vblank 
> seuquence numbers.
>   4577		 */
> > 4578		if (!IS_GEN2(dev_priv) && !INTEL_INFO(dev_priv)
> > ->gen >= 9)
>   4579			dev->vblank_disable_immediate = true;
>   4580	
>   4581		dev->driver->get_vblank_timestamp = 
> i915_get_vblank_timestamp;
>   4582		dev->driver->get_scanout_position = 
> i915_get_crtc_scanoutpos;
>   4583	
>   4584		if (IS_CHERRYVIEW(dev_priv)) {
>   4585			dev->driver->irq_handler = 
> cherryview_irq_handler;
>   4586			dev->driver->irq_preinstall = 
> cherryview_irq_preinstall;
> 
> ---
> 0-DAY kernel test infrastructure                Open Source 
> Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Cor
> poration
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-02-12 15:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 17:00 [PATCH] drm/i915: Avoid vblank counter for gen9+ Rodrigo Vivi
2016-02-12  1:19 ` kbuild test robot
2016-02-12  1:32 ` kbuild test robot
2016-02-12 15:51   ` Vivi, Rodrigo [this message]
2016-02-12  9:34 ` David Weinehall
2016-02-12 15:57   ` Vivi, Rodrigo
2016-02-12 16:21     ` Vivi, Rodrigo
2016-02-12 16:04 ` Ville Syrjälä
2016-02-16  8:09 ` ✗ Fi.CI.BAT: failure for " Patchwork
2016-02-16 15:50 ` [PATCH] " Daniel Vetter
2016-02-17 23:14   ` Rodrigo Vivi
2016-02-18 16:56     ` Fwd: " Rodrigo Vivi
2016-02-18 17:55       ` Imre Deak
2016-02-22 14:33       ` Imre Deak
2016-02-26 18:02         ` Rodrigo Vivi
2016-03-02 17:13           ` Imre Deak
2016-03-03 10:14             ` Patrik Jakobsson

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=1455292357.5591.408.camel@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=kbuild-all@01.org \
    --cc=lkp@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 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.