Re: [PATCH 4/4] drm/msm/a6xx: Capture gmu log in devcoredump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Akhil,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-intel/for-linux-next drm-tip/drm-tip drm-exynos/exynos-drm-next v5.16-rc1 next-20211118]
[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/Akhil-P-Oommen/drm-msm-Increase-gpu-boost-interval/20211118-182201
base:   git://anongit.freedesktop.org/drm/drm drm-next
config: alpha-randconfig-r032-20211118 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/06feaa95e96ec85824f0e65134de626d61308d11
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Akhil-P-Oommen/drm-msm-Increase-gpu-boost-interval/20211118-182201
        git checkout 06feaa95e96ec85824f0e65134de626d61308d11
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c: In function 'a6xx_show':
>> drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:1230:43: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
    1230 |                 drm_printf(p, "    size: %d\n", gmu_log->size);
         |                                          ~^     ~~~~~~~~~~~~~
         |                                           |            |
         |                                           int          size_t {aka long unsigned int}
         |                                          %ld


vim +1230 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c

  1212	
  1213	void a6xx_show(struct msm_gpu *gpu, struct msm_gpu_state *state,
  1214			struct drm_printer *p)
  1215	{
  1216		struct a6xx_gpu_state *a6xx_state = container_of(state,
  1217				struct a6xx_gpu_state, base);
  1218		int i;
  1219	
  1220		if (IS_ERR_OR_NULL(state))
  1221			return;
  1222	
  1223		adreno_show(gpu, state, p);
  1224	
  1225		drm_puts(p, "gmu-log:\n");
  1226		if (a6xx_state->gmu_log) {
  1227			struct msm_gpu_state_bo *gmu_log = a6xx_state->gmu_log;
  1228	
  1229			drm_printf(p, "    iova: 0x%016llx\n", gmu_log->iova);
> 1230			drm_printf(p, "    size: %d\n", gmu_log->size);

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux