All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>,
	intel-gfx@lists.freedesktop.org, mahesh.meena@intel.com
Cc: kbuild-all@lists.01.org
Subject: Re: [Intel-gfx] [PATCH 1/1] drm/i915/gt: Declare when we enabled timeslicing
Date: Wed, 26 May 2021 01:09:33 +0800	[thread overview]
Message-ID: <202105260155.ngtdV9G2-lkp@intel.com> (raw)
In-Reply-To: <20210525140156.244831-2-tejaskumarx.surendrakumar.upadhyay@intel.com>

[-- Attachment #1: Type: text/plain, Size: 5890 bytes --]

Hi Tejas,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip linus/master v5.13-rc3 next-20210525]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Tejas-Upadhyay/drm-i915-gt-Introduce-timeslicing-for-userspace/20210525-221509
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-r005-20210525 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/f2b7eecbbed425bfed1aea378181b5629bbcb34f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Tejas-Upadhyay/drm-i915-gt-Introduce-timeslicing-for-userspace/20210525-221509
        git checkout f2b7eecbbed425bfed1aea378181b5629bbcb34f
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:13,
                    from include/linux/list.h:9,
                    from drivers/gpu/drm/i915/gt/intel_engine_user.c:6:
   drivers/gpu/drm/i915/gt/intel_engine_user.c: In function 'set_scheduler_caps':
>> drivers/gpu/drm/i915/gt/intel_engine_user.c:97:27: error: 'I915_ENGINE_TIMESLICE_BIT' undeclared (first use in this function); did you mean 'I915_ENGINE_HAS_TIMESLICES'?
      97 | #define MAP(x, y) { ilog2(I915_ENGINE_##x), ilog2(I915_SCHEDULER_CAP_##y) }
         |                           ^~~~~~~~~~~~
   include/linux/log2.h:158:23: note: in definition of macro 'ilog2'
     158 |  __builtin_constant_p(n) ? \
         |                       ^
   drivers/gpu/drm/i915/gt/intel_engine_user.c:101:3: note: in expansion of macro 'MAP'
     101 |   MAP(TIMESLICE_BIT, TIMESLICING),
         |   ^~~
   drivers/gpu/drm/i915/gt/intel_engine_user.c:97:27: note: each undeclared identifier is reported only once for each function it appears in
      97 | #define MAP(x, y) { ilog2(I915_ENGINE_##x), ilog2(I915_SCHEDULER_CAP_##y) }
         |                           ^~~~~~~~~~~~
   include/linux/log2.h:158:23: note: in definition of macro 'ilog2'
     158 |  __builtin_constant_p(n) ? \
         |                       ^
   drivers/gpu/drm/i915/gt/intel_engine_user.c:101:3: note: in expansion of macro 'MAP'
     101 |   MAP(TIMESLICE_BIT, TIMESLICING),
         |   ^~~


vim +97 drivers/gpu/drm/i915/gt/intel_engine_user.c

750e76b4f9f63c Chris Wilson   2019-08-06   90  
750e76b4f9f63c Chris Wilson   2019-08-06   91  static void set_scheduler_caps(struct drm_i915_private *i915)
750e76b4f9f63c Chris Wilson   2019-08-06   92  {
750e76b4f9f63c Chris Wilson   2019-08-06   93  	static const struct {
750e76b4f9f63c Chris Wilson   2019-08-06   94  		u8 engine;
750e76b4f9f63c Chris Wilson   2019-08-06   95  		u8 sched;
750e76b4f9f63c Chris Wilson   2019-08-06   96  	} map[] = {
750e76b4f9f63c Chris Wilson   2019-08-06  @97  #define MAP(x, y) { ilog2(I915_ENGINE_##x), ilog2(I915_SCHEDULER_CAP_##y) }
750e76b4f9f63c Chris Wilson   2019-08-06   98  		MAP(HAS_PREEMPTION, PREEMPTION),
750e76b4f9f63c Chris Wilson   2019-08-06   99  		MAP(HAS_SEMAPHORES, SEMAPHORES),
750e76b4f9f63c Chris Wilson   2019-08-06  100  		MAP(SUPPORTS_STATS, ENGINE_BUSY_STATS),
f2b7eecbbed425 Tejas Upadhyay 2021-05-25  101  		MAP(TIMESLICE_BIT, TIMESLICING),
750e76b4f9f63c Chris Wilson   2019-08-06  102  #undef MAP
750e76b4f9f63c Chris Wilson   2019-08-06  103  	};
750e76b4f9f63c Chris Wilson   2019-08-06  104  	struct intel_engine_cs *engine;
750e76b4f9f63c Chris Wilson   2019-08-06  105  	u32 enabled, disabled;
750e76b4f9f63c Chris Wilson   2019-08-06  106  
750e76b4f9f63c Chris Wilson   2019-08-06  107  	enabled = 0;
750e76b4f9f63c Chris Wilson   2019-08-06  108  	disabled = 0;
750e76b4f9f63c Chris Wilson   2019-08-06  109  	for_each_uabi_engine(engine, i915) { /* all engines must agree! */
750e76b4f9f63c Chris Wilson   2019-08-06  110  		int i;
750e76b4f9f63c Chris Wilson   2019-08-06  111  
750e76b4f9f63c Chris Wilson   2019-08-06  112  		if (engine->schedule)
750e76b4f9f63c Chris Wilson   2019-08-06  113  			enabled |= (I915_SCHEDULER_CAP_ENABLED |
750e76b4f9f63c Chris Wilson   2019-08-06  114  				    I915_SCHEDULER_CAP_PRIORITY);
750e76b4f9f63c Chris Wilson   2019-08-06  115  		else
750e76b4f9f63c Chris Wilson   2019-08-06  116  			disabled |= (I915_SCHEDULER_CAP_ENABLED |
750e76b4f9f63c Chris Wilson   2019-08-06  117  				     I915_SCHEDULER_CAP_PRIORITY);
750e76b4f9f63c Chris Wilson   2019-08-06  118  
750e76b4f9f63c Chris Wilson   2019-08-06  119  		for (i = 0; i < ARRAY_SIZE(map); i++) {
750e76b4f9f63c Chris Wilson   2019-08-06  120  			if (engine->flags & BIT(map[i].engine))
750e76b4f9f63c Chris Wilson   2019-08-06  121  				enabled |= BIT(map[i].sched);
750e76b4f9f63c Chris Wilson   2019-08-06  122  			else
750e76b4f9f63c Chris Wilson   2019-08-06  123  				disabled |= BIT(map[i].sched);
750e76b4f9f63c Chris Wilson   2019-08-06  124  		}
750e76b4f9f63c Chris Wilson   2019-08-06  125  	}
750e76b4f9f63c Chris Wilson   2019-08-06  126  
750e76b4f9f63c Chris Wilson   2019-08-06  127  	i915->caps.scheduler = enabled & ~disabled;
750e76b4f9f63c Chris Wilson   2019-08-06  128  	if (!(i915->caps.scheduler & I915_SCHEDULER_CAP_ENABLED))
750e76b4f9f63c Chris Wilson   2019-08-06  129  		i915->caps.scheduler = 0;
750e76b4f9f63c Chris Wilson   2019-08-06  130  }
750e76b4f9f63c Chris Wilson   2019-08-06  131  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32835 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [Intel-gfx] [PATCH 1/1] drm/i915/gt: Declare when we enabled timeslicing
Date: Wed, 26 May 2021 01:09:33 +0800	[thread overview]
Message-ID: <202105260155.ngtdV9G2-lkp@intel.com> (raw)
In-Reply-To: <20210525140156.244831-2-tejaskumarx.surendrakumar.upadhyay@intel.com>

[-- Attachment #1: Type: text/plain, Size: 5991 bytes --]

Hi Tejas,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip linus/master v5.13-rc3 next-20210525]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Tejas-Upadhyay/drm-i915-gt-Introduce-timeslicing-for-userspace/20210525-221509
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-r005-20210525 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/f2b7eecbbed425bfed1aea378181b5629bbcb34f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Tejas-Upadhyay/drm-i915-gt-Introduce-timeslicing-for-userspace/20210525-221509
        git checkout f2b7eecbbed425bfed1aea378181b5629bbcb34f
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:13,
                    from include/linux/list.h:9,
                    from drivers/gpu/drm/i915/gt/intel_engine_user.c:6:
   drivers/gpu/drm/i915/gt/intel_engine_user.c: In function 'set_scheduler_caps':
>> drivers/gpu/drm/i915/gt/intel_engine_user.c:97:27: error: 'I915_ENGINE_TIMESLICE_BIT' undeclared (first use in this function); did you mean 'I915_ENGINE_HAS_TIMESLICES'?
      97 | #define MAP(x, y) { ilog2(I915_ENGINE_##x), ilog2(I915_SCHEDULER_CAP_##y) }
         |                           ^~~~~~~~~~~~
   include/linux/log2.h:158:23: note: in definition of macro 'ilog2'
     158 |  __builtin_constant_p(n) ? \
         |                       ^
   drivers/gpu/drm/i915/gt/intel_engine_user.c:101:3: note: in expansion of macro 'MAP'
     101 |   MAP(TIMESLICE_BIT, TIMESLICING),
         |   ^~~
   drivers/gpu/drm/i915/gt/intel_engine_user.c:97:27: note: each undeclared identifier is reported only once for each function it appears in
      97 | #define MAP(x, y) { ilog2(I915_ENGINE_##x), ilog2(I915_SCHEDULER_CAP_##y) }
         |                           ^~~~~~~~~~~~
   include/linux/log2.h:158:23: note: in definition of macro 'ilog2'
     158 |  __builtin_constant_p(n) ? \
         |                       ^
   drivers/gpu/drm/i915/gt/intel_engine_user.c:101:3: note: in expansion of macro 'MAP'
     101 |   MAP(TIMESLICE_BIT, TIMESLICING),
         |   ^~~


vim +97 drivers/gpu/drm/i915/gt/intel_engine_user.c

750e76b4f9f63c Chris Wilson   2019-08-06   90  
750e76b4f9f63c Chris Wilson   2019-08-06   91  static void set_scheduler_caps(struct drm_i915_private *i915)
750e76b4f9f63c Chris Wilson   2019-08-06   92  {
750e76b4f9f63c Chris Wilson   2019-08-06   93  	static const struct {
750e76b4f9f63c Chris Wilson   2019-08-06   94  		u8 engine;
750e76b4f9f63c Chris Wilson   2019-08-06   95  		u8 sched;
750e76b4f9f63c Chris Wilson   2019-08-06   96  	} map[] = {
750e76b4f9f63c Chris Wilson   2019-08-06  @97  #define MAP(x, y) { ilog2(I915_ENGINE_##x), ilog2(I915_SCHEDULER_CAP_##y) }
750e76b4f9f63c Chris Wilson   2019-08-06   98  		MAP(HAS_PREEMPTION, PREEMPTION),
750e76b4f9f63c Chris Wilson   2019-08-06   99  		MAP(HAS_SEMAPHORES, SEMAPHORES),
750e76b4f9f63c Chris Wilson   2019-08-06  100  		MAP(SUPPORTS_STATS, ENGINE_BUSY_STATS),
f2b7eecbbed425 Tejas Upadhyay 2021-05-25  101  		MAP(TIMESLICE_BIT, TIMESLICING),
750e76b4f9f63c Chris Wilson   2019-08-06  102  #undef MAP
750e76b4f9f63c Chris Wilson   2019-08-06  103  	};
750e76b4f9f63c Chris Wilson   2019-08-06  104  	struct intel_engine_cs *engine;
750e76b4f9f63c Chris Wilson   2019-08-06  105  	u32 enabled, disabled;
750e76b4f9f63c Chris Wilson   2019-08-06  106  
750e76b4f9f63c Chris Wilson   2019-08-06  107  	enabled = 0;
750e76b4f9f63c Chris Wilson   2019-08-06  108  	disabled = 0;
750e76b4f9f63c Chris Wilson   2019-08-06  109  	for_each_uabi_engine(engine, i915) { /* all engines must agree! */
750e76b4f9f63c Chris Wilson   2019-08-06  110  		int i;
750e76b4f9f63c Chris Wilson   2019-08-06  111  
750e76b4f9f63c Chris Wilson   2019-08-06  112  		if (engine->schedule)
750e76b4f9f63c Chris Wilson   2019-08-06  113  			enabled |= (I915_SCHEDULER_CAP_ENABLED |
750e76b4f9f63c Chris Wilson   2019-08-06  114  				    I915_SCHEDULER_CAP_PRIORITY);
750e76b4f9f63c Chris Wilson   2019-08-06  115  		else
750e76b4f9f63c Chris Wilson   2019-08-06  116  			disabled |= (I915_SCHEDULER_CAP_ENABLED |
750e76b4f9f63c Chris Wilson   2019-08-06  117  				     I915_SCHEDULER_CAP_PRIORITY);
750e76b4f9f63c Chris Wilson   2019-08-06  118  
750e76b4f9f63c Chris Wilson   2019-08-06  119  		for (i = 0; i < ARRAY_SIZE(map); i++) {
750e76b4f9f63c Chris Wilson   2019-08-06  120  			if (engine->flags & BIT(map[i].engine))
750e76b4f9f63c Chris Wilson   2019-08-06  121  				enabled |= BIT(map[i].sched);
750e76b4f9f63c Chris Wilson   2019-08-06  122  			else
750e76b4f9f63c Chris Wilson   2019-08-06  123  				disabled |= BIT(map[i].sched);
750e76b4f9f63c Chris Wilson   2019-08-06  124  		}
750e76b4f9f63c Chris Wilson   2019-08-06  125  	}
750e76b4f9f63c Chris Wilson   2019-08-06  126  
750e76b4f9f63c Chris Wilson   2019-08-06  127  	i915->caps.scheduler = enabled & ~disabled;
750e76b4f9f63c Chris Wilson   2019-08-06  128  	if (!(i915->caps.scheduler & I915_SCHEDULER_CAP_ENABLED))
750e76b4f9f63c Chris Wilson   2019-08-06  129  		i915->caps.scheduler = 0;
750e76b4f9f63c Chris Wilson   2019-08-06  130  }
750e76b4f9f63c Chris Wilson   2019-08-06  131  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32835 bytes --]

  reply	other threads:[~2021-05-25 17:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25 14:01 [Intel-gfx] [PATCH 0/1] drm/i915/gt: Introduce timeslicing for userspace Tejas Upadhyay
2021-05-25 14:01 ` [Intel-gfx] [PATCH 1/1] drm/i915/gt: Declare when we enabled timeslicing Tejas Upadhyay
2021-05-25 17:09   ` kernel test robot [this message]
2021-05-25 17:09     ` kernel test robot
2021-05-25 15:51 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/gt: Introduce timeslicing for userspace Patchwork

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=202105260155.ngtdV9G2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=kbuild-all@lists.01.org \
    --cc=mahesh.meena@intel.com \
    --cc=tejaskumarx.surendrakumar.upadhyay@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.