* [linux-next:master 1860/4011] drivers/gpu/drm/panthor/panthor_sched.c:3670 panthor_fdinfo_gather_group_mem_info() warn: iterator 'i' not incremented
@ 2025-02-16 8:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-16 8:36 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: "Adrián Larumbe" <adrian.larumbe@collabora.com>
CC: Boris Brezillon <bbrezillon@kernel.org>
CC: Liviu Dudau <liviu.dudau@arm.com>
CC: Mihail Atanassov <mihail.atanassov@arm.com>
CC: Steven Price <steven.price@arm.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 0ae0fa3bf0b44c8611d114a9f69985bf451010c3
commit: 434e5ca5b5d7ea415670d4fcb399d90d355a1e38 [1860/4011] drm/panthor: Expose size of driver internal BO's over fdinfo
:::::: branch date: 2 days ago
:::::: commit date: 9 days ago
config: arm64-randconfig-r073-20250214 (https://download.01.org/0day-ci/archive/20250216/202502161656.tCD7Bzmd-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
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@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202502161656.tCD7Bzmd-lkp@intel.com/
New smatch warnings:
drivers/gpu/drm/panthor/panthor_sched.c:3670 panthor_fdinfo_gather_group_mem_info() warn: iterator 'i' not incremented
Old smatch warnings:
drivers/gpu/drm/panthor/panthor_sched.c:2881 panthor_fdinfo_gather_group_samples() warn: iterator 'i' not incremented
drivers/gpu/drm/panthor/panthor_sched.c:3643 panthor_group_pool_destroy() warn: iterator 'i' not incremented
vim +/i +3670 drivers/gpu/drm/panthor/panthor_sched.c
de85488138247d0 Boris Brezillon 2024-02-29 3650
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3651 /**
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3652 * panthor_fdinfo_gather_group_mem_info() - Retrieve aggregate size of all private kernel BO's
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3653 * belonging to all the groups owned by an open Panthor file
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3654 * @pfile: File.
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3655 * @stats: Memory statistics to be updated.
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3656 *
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3657 */
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3658 void
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3659 panthor_fdinfo_gather_group_mem_info(struct panthor_file *pfile,
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3660 struct drm_memory_stats *stats)
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3661 {
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3662 struct panthor_group_pool *gpool = pfile->groups;
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3663 struct panthor_group *group;
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3664 unsigned long i;
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3665
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3666 if (IS_ERR_OR_NULL(gpool))
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3667 return;
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3668
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3669 xa_lock(&gpool->xa);
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 @3670 xa_for_each(&gpool->xa, i, group) {
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3671 stats->resident += group->fdinfo.kbo_sizes;
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3672 if (group->csg_id >= 0)
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3673 stats->active += group->fdinfo.kbo_sizes;
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3674 }
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3675 xa_unlock(&gpool->xa);
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3676 }
434e5ca5b5d7ea4 Adrián Larumbe 2025-01-30 3677
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-16 8:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-16 8:36 [linux-next:master 1860/4011] drivers/gpu/drm/panthor/panthor_sched.c:3670 panthor_fdinfo_gather_group_mem_info() warn: iterator 'i' not incremented kernel test robot
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.