Re: [PATCH v2 2/6] drm/panfrost: Add fdinfo support GPU load metrics

From: kernel test robot
Date: Thu Aug 24 2023 - 00:14:26 EST


Hi Adrián,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on linus/master v6.5-rc7 next-20230823]
[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/Adri-n-Larumbe/drm-panfrost-Add-cycle-count-GPU-register-definitions/20230824-093848
base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link: https://lore.kernel.org/r/20230824013604.466224-3-adrian.larumbe%40collabora.com
patch subject: [PATCH v2 2/6] drm/panfrost: Add fdinfo support GPU load metrics
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230824/202308241240.ngAywBMr-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230824/202308241240.ngAywBMr-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308241240.ngAywBMr-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/gpu/drm/panfrost/panfrost_drv.c: In function 'panfrost_gpu_show_fdinfo':
>> drivers/gpu/drm/panfrost/panfrost_drv.c:551:50: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
551 | drm_printf(p, "drm-curfreq-%s:\t%u Hz\n",
| ~^
| |
| unsigned int
| %lu
552 | ei->name, pfdev->pfdevfreq.current_frequency);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int


vim +551 drivers/gpu/drm/panfrost/panfrost_drv.c

534
535
536 static void panfrost_gpu_show_fdinfo(struct panfrost_device *pfdev,
537 struct panfrost_file_priv *panfrost_priv,
538 struct drm_printer *p)
539 {
540 int i;
541
542 for (i = 0; i < NUM_JOB_SLOTS - 1; i++) {
543 struct engine_info *ei = &panfrost_priv->fdinfo.engines[i];
544
545 drm_printf(p, "drm-engine-%s:\t%llu ns\n",
546 ei->name, ei->elapsed_ns);
547 drm_printf(p, "drm-cycles-%s:\t%llu\n",
548 ei->name, ei->cycles);
549 drm_printf(p, "drm-maxfreq-%s:\t%u Hz\n",
550 ei->name, panfrost_priv->fdinfo.maxfreq);
> 551 drm_printf(p, "drm-curfreq-%s:\t%u Hz\n",
552 ei->name, pfdev->pfdevfreq.current_frequency);
553 }
554 }
555

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