[PATCH 1/9] accel/ivpu: Move set autosuspend delay to HW specific code

kernel test robot lkp at intel.com
Fri Aug 25 16:09:51 UTC 2023


Hi Stanislaw,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on next-20230825]
[cannot apply to drm-misc/drm-misc-next linus/master v6.5-rc7]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Stanislaw-Gruszka/accel-ivpu-Move-set-autosuspend-delay-to-HW-specific-code/20230825-204444
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
patch link:    https://lore.kernel.org/r/20230825124135.4086628-2-stanislaw.gruszka%40linux.intel.com
patch subject: [PATCH 1/9] accel/ivpu: Move set autosuspend delay to HW specific code
config: x86_64-randconfig-004-20230825 (https://download.01.org/0day-ci/archive/20230826/202308260057.5bVOUnNo-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230826/202308260057.5bVOUnNo-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308260057.5bVOUnNo-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/pci.h:37,
                    from drivers/accel/ivpu/ivpu_pm.c:8:
   drivers/accel/ivpu/ivpu_pm.c: In function 'ivpu_pm_init':
>> drivers/accel/ivpu/ivpu_pm.c:303:66: error: 'struct dev_pm_info' has no member named 'autosuspend_delay'
     303 |         ivpu_dbg(vdev, PM, "Autosuspend delay = %d\n", dev->power.autosuspend_delay);
         |                                                                  ^
   include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
     129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
         |                                                ^~~~~~~~~~~
   drivers/accel/ivpu/ivpu_drv.h:73:17: note: in expansion of macro 'dev_dbg'
      73 |                 dev_dbg((vdev)->drm.dev, "[%s] " fmt, #type, ##args);          \
         |                 ^~~~~~~
   drivers/accel/ivpu/ivpu_pm.c:303:9: note: in expansion of macro 'ivpu_dbg'
     303 |         ivpu_dbg(vdev, PM, "Autosuspend delay = %d\n", dev->power.autosuspend_delay);
         |         ^~~~~~~~


vim +303 drivers/accel/ivpu/ivpu_pm.c

   284	
   285	int ivpu_pm_init(struct ivpu_device *vdev)
   286	{
   287		struct device *dev = vdev->drm.dev;
   288		struct ivpu_pm_info *pm = vdev->pm;
   289	
   290		pm->vdev = vdev;
   291		pm->suspend_reschedule_counter = PM_RESCHEDULE_LIMIT;
   292	
   293		atomic_set(&pm->in_reset, 0);
   294		INIT_WORK(&pm->recovery_work, ivpu_pm_recovery_work);
   295	
   296		pm_runtime_use_autosuspend(dev);
   297	
   298		if (ivpu_disable_recovery)
   299			pm_runtime_set_autosuspend_delay(dev, -1);
   300		else
   301			pm_runtime_set_autosuspend_delay(dev, vdev->timeout.autosuspend);
   302	
 > 303		ivpu_dbg(vdev, PM, "Autosuspend delay = %d\n", dev->power.autosuspend_delay);
   304	
   305		return 0;
   306	}
   307	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


More information about the dri-devel mailing list