All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: kbuild-all@lists.01.org
Subject: Re: [Intel-gfx] [CI 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies
Date: Thu, 23 Apr 2020 11:43:58 +0800	[thread overview]
Message-ID: <202004231107.heIZcYbh%lkp@intel.com> (raw)
In-Reply-To: <20200421090536.31717-2-chris@chris-wilson.co.uk>

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

Hi Chris,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20200422]
[cannot apply to drm-intel/for-linux-next drm-tip/drm-tip v5.7-rc2 v5.7-rc1 v5.6 v5.7-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-gt-Trace-RPS-events/20200423-050247
base:    a5840f9618a90ecbe1617f7632482563c0ee307e
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/gt/uc/intel_guc.h:9:0,
                    from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9,
                    from drivers/gpu/drm/i915/gt/intel_gt_types.h:16,
                    from drivers/gpu/drm/i915/i915_drv.h:82,
                    from drivers/gpu/drm/i915/gt/intel_rps.c:9:
   drivers/gpu/drm/i915/gt/intel_rps.c: In function 'gen9_rps_enable':
>> drivers/gpu/drm/i915/gt/intel_rps.c:951:10: error: implicit declaration of function 'GT_INTERVAL_FROM_US'; did you mean 'NTP_INTERVAL_FREQ'? [-Werror=implicit-function-declaration]
             GT_INTERVAL_FROM_US(i915, 1000000));
             ^
   drivers/gpu/drm/i915/intel_uncore.h:378:57: note: in definition of macro 'intel_uncore_write_fw'
    #define intel_uncore_write_fw(...) __raw_uncore_write32(__VA_ARGS__)
                                                            ^~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/intel_rps.c:951:30: error: 'i915' undeclared (first use in this function); did you mean 'to_i915'?
             GT_INTERVAL_FROM_US(i915, 1000000));
                                 ^
   drivers/gpu/drm/i915/intel_uncore.h:378:57: note: in definition of macro 'intel_uncore_write_fw'
    #define intel_uncore_write_fw(...) __raw_uncore_write32(__VA_ARGS__)
                                                            ^~~~~~~~~~~
   drivers/gpu/drm/i915/gt/intel_rps.c:951:30: note: each undeclared identifier is reported only once for each function it appears in
             GT_INTERVAL_FROM_US(i915, 1000000));
                                 ^
   drivers/gpu/drm/i915/intel_uncore.h:378:57: note: in definition of macro 'intel_uncore_write_fw'
    #define intel_uncore_write_fw(...) __raw_uncore_write32(__VA_ARGS__)
                                                            ^~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +951 drivers/gpu/drm/i915/gt/intel_rps.c

3e7abf8141935d Andi Shyti   2019-10-24  937  
3e7abf8141935d Andi Shyti   2019-10-24  938  /* See the Gen9_GT_PM_Programming_Guide doc for the below */
3e7abf8141935d Andi Shyti   2019-10-24  939  static bool gen9_rps_enable(struct intel_rps *rps)
3e7abf8141935d Andi Shyti   2019-10-24  940  {
ba8c1ce62dadbf Chris Wilson 2020-04-21  941  	struct intel_gt *gt = rps_to_gt(rps);
ba8c1ce62dadbf Chris Wilson 2020-04-21  942  	struct intel_uncore *uncore = gt->uncore;
3e7abf8141935d Andi Shyti   2019-10-24  943  
3e7abf8141935d Andi Shyti   2019-10-24  944  	/* Program defaults and thresholds for RPS */
ba8c1ce62dadbf Chris Wilson 2020-04-21  945  	if (IS_GEN(gt->i915, 9))
3e7abf8141935d Andi Shyti   2019-10-24  946  		intel_uncore_write_fw(uncore, GEN6_RC_VIDEO_FREQ,
3e7abf8141935d Andi Shyti   2019-10-24  947  				      GEN9_FREQUENCY(rps->rp1_freq));
3e7abf8141935d Andi Shyti   2019-10-24  948  
3e7abf8141935d Andi Shyti   2019-10-24  949  	/* 1 second timeout */
3e7abf8141935d Andi Shyti   2019-10-24  950  	intel_uncore_write_fw(uncore, GEN6_RP_DOWN_TIMEOUT,
3e7abf8141935d Andi Shyti   2019-10-24 @951  			      GT_INTERVAL_FROM_US(i915, 1000000));
3e7abf8141935d Andi Shyti   2019-10-24  952  
3e7abf8141935d Andi Shyti   2019-10-24  953  	intel_uncore_write_fw(uncore, GEN6_RP_IDLE_HYSTERSIS, 0xa);
3e7abf8141935d Andi Shyti   2019-10-24  954  
3e7abf8141935d Andi Shyti   2019-10-24  955  	return rps_reset(rps);
3e7abf8141935d Andi Shyti   2019-10-24  956  }
3e7abf8141935d Andi Shyti   2019-10-24  957  

:::::: The code at line 951 was first introduced by commit
:::::: 3e7abf8141935ded77abeb622480bf4a14241ece drm/i915: Extract GT render power state management

:::::: TO: Andi Shyti <andi@etezian.org>
:::::: CC: Chris Wilson <chris@chris-wilson.co.uk>

---
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: 72605 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: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [Intel-gfx] [CI 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies
Date: Thu, 23 Apr 2020 11:43:58 +0800	[thread overview]
Message-ID: <202004231107.heIZcYbh%lkp@intel.com> (raw)
In-Reply-To: <20200421090536.31717-2-chris@chris-wilson.co.uk>

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

Hi Chris,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20200422]
[cannot apply to drm-intel/for-linux-next drm-tip/drm-tip v5.7-rc2 v5.7-rc1 v5.6 v5.7-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-gt-Trace-RPS-events/20200423-050247
base:    a5840f9618a90ecbe1617f7632482563c0ee307e
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/gt/uc/intel_guc.h:9:0,
                    from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9,
                    from drivers/gpu/drm/i915/gt/intel_gt_types.h:16,
                    from drivers/gpu/drm/i915/i915_drv.h:82,
                    from drivers/gpu/drm/i915/gt/intel_rps.c:9:
   drivers/gpu/drm/i915/gt/intel_rps.c: In function 'gen9_rps_enable':
>> drivers/gpu/drm/i915/gt/intel_rps.c:951:10: error: implicit declaration of function 'GT_INTERVAL_FROM_US'; did you mean 'NTP_INTERVAL_FREQ'? [-Werror=implicit-function-declaration]
             GT_INTERVAL_FROM_US(i915, 1000000));
             ^
   drivers/gpu/drm/i915/intel_uncore.h:378:57: note: in definition of macro 'intel_uncore_write_fw'
    #define intel_uncore_write_fw(...) __raw_uncore_write32(__VA_ARGS__)
                                                            ^~~~~~~~~~~
>> drivers/gpu/drm/i915/gt/intel_rps.c:951:30: error: 'i915' undeclared (first use in this function); did you mean 'to_i915'?
             GT_INTERVAL_FROM_US(i915, 1000000));
                                 ^
   drivers/gpu/drm/i915/intel_uncore.h:378:57: note: in definition of macro 'intel_uncore_write_fw'
    #define intel_uncore_write_fw(...) __raw_uncore_write32(__VA_ARGS__)
                                                            ^~~~~~~~~~~
   drivers/gpu/drm/i915/gt/intel_rps.c:951:30: note: each undeclared identifier is reported only once for each function it appears in
             GT_INTERVAL_FROM_US(i915, 1000000));
                                 ^
   drivers/gpu/drm/i915/intel_uncore.h:378:57: note: in definition of macro 'intel_uncore_write_fw'
    #define intel_uncore_write_fw(...) __raw_uncore_write32(__VA_ARGS__)
                                                            ^~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +951 drivers/gpu/drm/i915/gt/intel_rps.c

3e7abf8141935d Andi Shyti   2019-10-24  937  
3e7abf8141935d Andi Shyti   2019-10-24  938  /* See the Gen9_GT_PM_Programming_Guide doc for the below */
3e7abf8141935d Andi Shyti   2019-10-24  939  static bool gen9_rps_enable(struct intel_rps *rps)
3e7abf8141935d Andi Shyti   2019-10-24  940  {
ba8c1ce62dadbf Chris Wilson 2020-04-21  941  	struct intel_gt *gt = rps_to_gt(rps);
ba8c1ce62dadbf Chris Wilson 2020-04-21  942  	struct intel_uncore *uncore = gt->uncore;
3e7abf8141935d Andi Shyti   2019-10-24  943  
3e7abf8141935d Andi Shyti   2019-10-24  944  	/* Program defaults and thresholds for RPS */
ba8c1ce62dadbf Chris Wilson 2020-04-21  945  	if (IS_GEN(gt->i915, 9))
3e7abf8141935d Andi Shyti   2019-10-24  946  		intel_uncore_write_fw(uncore, GEN6_RC_VIDEO_FREQ,
3e7abf8141935d Andi Shyti   2019-10-24  947  				      GEN9_FREQUENCY(rps->rp1_freq));
3e7abf8141935d Andi Shyti   2019-10-24  948  
3e7abf8141935d Andi Shyti   2019-10-24  949  	/* 1 second timeout */
3e7abf8141935d Andi Shyti   2019-10-24  950  	intel_uncore_write_fw(uncore, GEN6_RP_DOWN_TIMEOUT,
3e7abf8141935d Andi Shyti   2019-10-24 @951  			      GT_INTERVAL_FROM_US(i915, 1000000));
3e7abf8141935d Andi Shyti   2019-10-24  952  
3e7abf8141935d Andi Shyti   2019-10-24  953  	intel_uncore_write_fw(uncore, GEN6_RP_IDLE_HYSTERSIS, 0xa);
3e7abf8141935d Andi Shyti   2019-10-24  954  
3e7abf8141935d Andi Shyti   2019-10-24  955  	return rps_reset(rps);
3e7abf8141935d Andi Shyti   2019-10-24  956  }
3e7abf8141935d Andi Shyti   2019-10-24  957  

:::::: The code at line 951 was first introduced by commit
:::::: 3e7abf8141935ded77abeb622480bf4a14241ece drm/i915: Extract GT render power state management

:::::: TO: Andi Shyti <andi@etezian.org>
:::::: CC: Chris Wilson <chris@chris-wilson.co.uk>

---
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: 72605 bytes --]

  reply	other threads:[~2020-04-23  3:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21  9:05 [Intel-gfx] [CI 1/2] drm/i915/gt: Trace RPS events Chris Wilson
2020-04-21  9:05 ` [Intel-gfx] [CI 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies Chris Wilson
2020-04-23  3:43   ` kbuild test robot [this message]
2020-04-23  3:43     ` kbuild test robot
2020-04-21 10:10 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with [CI,1/2] drm/i915/gt: Trace RPS events Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2020-04-24 16:28 [Intel-gfx] [CI 1/2] " Chris Wilson
2020-04-24 16:28 ` [Intel-gfx] [CI 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies Chris Wilson
2020-04-18  7:14 [Intel-gfx] [CI 1/2] drm/i915/gt: Trace RPS events Chris Wilson
2020-04-18  7:14 ` [Intel-gfx] [CI 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies Chris Wilson
2020-04-17 21:26 [Intel-gfx] [CI 1/2] drm/i915/gt: Trace RPS events Chris Wilson
2020-04-17 21:26 ` [Intel-gfx] [CI 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies Chris Wilson

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=202004231107.heIZcYbh%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=kbuild-all@lists.01.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.