tree:
https://github.com/curro/linux i915-rps-pmintrmask-fix
head: f5d6688b08eb089ddbcc3a41a908155d2a3cc8e6
commit: f5d6688b08eb089ddbcc3a41a908155d2a3cc8e6 [1/1] HACK: drm/i915: Move GEN6_PMINTRMSK
writes to RPS init with proper forcewake held.
config: i386-randconfig-h001-20200413 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout f5d6688b08eb089ddbcc3a41a908155d2a3cc8e6
# 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(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/i915/gt/intel_rps.c:47:12: error:
'rps_pm_mask' defined but not used [-Werror=unused-function]
static u32
rps_pm_mask(struct intel_rps *rps, u8 val)
^~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/rps_pm_mask +47 drivers/gpu/drm/i915/gt/intel_rps.c
35cc7f32c298ba Chris Wilson 2019-12-18 46
3e7abf8141935d Andi Shyti 2019-10-24 @47 static u32 rps_pm_mask(struct intel_rps *rps,
u8 val)
3e7abf8141935d Andi Shyti 2019-10-24 48 {
3e7abf8141935d Andi Shyti 2019-10-24 49 u32 mask = 0;
3e7abf8141935d Andi Shyti 2019-10-24 50
3e7abf8141935d Andi Shyti 2019-10-24 51 /* We use UP_EI_EXPIRED interrupts for both
up/down in manual mode */
3e7abf8141935d Andi Shyti 2019-10-24 52 if (val > rps->min_freq_softlimit)
3e7abf8141935d Andi Shyti 2019-10-24 53 mask |= (GEN6_PM_RP_UP_EI_EXPIRED |
3e7abf8141935d Andi Shyti 2019-10-24 54 GEN6_PM_RP_DOWN_THRESHOLD |
3e7abf8141935d Andi Shyti 2019-10-24 55 GEN6_PM_RP_DOWN_TIMEOUT);
3e7abf8141935d Andi Shyti 2019-10-24 56
3e7abf8141935d Andi Shyti 2019-10-24 57 if (val < rps->max_freq_softlimit)
3e7abf8141935d Andi Shyti 2019-10-24 58 mask |= GEN6_PM_RP_UP_EI_EXPIRED |
GEN6_PM_RP_UP_THRESHOLD;
3e7abf8141935d Andi Shyti 2019-10-24 59
408464b4cbcf0a Chris Wilson 2020-03-11 60 mask &= READ_ONCE(rps->pm_events);
3e7abf8141935d Andi Shyti 2019-10-24 61
3e7abf8141935d Andi Shyti 2019-10-24 62 return rps_pm_sanitize_mask(rps, ~mask);
3e7abf8141935d Andi Shyti 2019-10-24 63 }
3e7abf8141935d Andi Shyti 2019-10-24 64
:::::: The code at line 47 was first introduced by commit
:::::: 3e7abf8141935ded77abeb622480bf4a14241ece drm/i915: Extract GT render power state
management
:::::: TO: Andi Shyti <andi(a)etezian.org>
:::::: CC: Chris Wilson <chris(a)chris-wilson.co.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org