From: kernel test robot <lkp@intel.com>
To: Lukas Zapolskas <lukas.zapolskas@arm.com>,
Daniel Almeida <daniel.almeida@collabora.com>,
Alice Ryhl <aliceryhl@google.com>,
Boris Brezillon <bbrezillon@kernel.org>,
Steven Price <steven.price@arm.com>,
Liviu Dudau <liviu.dudau@arm.com>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Akash Goel <akash.goel@arm.com>,
Karunika Choo <karunika.choo@arm.com>,
Chris Diamand <chris.diamand@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
rust-for-linux@vger.kernel.org,
"Adrián Larumbe" <adrian.larumbe@collabora.com>
Subject: Re: [PATCH v8 2/3] drm/panthor: Implement performance counter firmware sampling
Date: Sun, 29 Nov 2026 02:17:15 +0800 [thread overview]
Message-ID: <20261129020435.CX9TkdVz-lkp@intel.com> (raw)
In-Reply-To: <20261126-panthor-performance-counters-v8-2-6e7db0ec33f5@arm.com>
Hi Lukas,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 97429bac371273886238bfcf63d78e7405cacb46]
url: https://github.com/intel-lab-lkp/linux/commits/Lukas-Zapolskas/drm-panthor-Add-perf-setup-and-session-management/20261126-205737
base: 97429bac371273886238bfcf63d78e7405cacb46
patch link: https://lore.kernel.org/r/20261126-panthor-performance-counters-v8-2-6e7db0ec33f5%40arm.com
patch subject: [PATCH v8 2/3] drm/panthor: Implement performance counter firmware sampling
config: arm-randconfig-1000-20261128 (https://download.01.org/0day-ci/archive/20261129/20261129020435.CX9TkdVz-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project a9b3c3f36e3a7aa55863319fc716f9665aa13fd1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/20261129020435.CX9TkdVz-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261129020435.CX9TkdVz-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/panthor/panthor_perf.c:419:6: warning: shift count >= width of type [-Wshift-count-overflow]
419 | if (GLB_PERFCNT_FW_SIZE(glb_iface->control->perfcnt_size))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/panthor/panthor_fw.h:201:40: note: expanded from macro 'GLB_PERFCNT_FW_SIZE'
201 | #define GLB_PERFCNT_FW_SIZE(x) (((x) & GENMASK(32, 16)) >> 8)
| ^~~~~~~~~~~~~~~
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:49:20: note: expanded from macro 'GENMASK_TYPE'
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/panthor/panthor_perf.c:476:4: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
475 | "Perf BO expected min size %lu, passed BO with size %lu\n",
| ~~~
| %zu
476 | min_size, obj->size);
| ^~~~~~~~
include/drm/drm_print.h:628:46: note: expanded from macro 'drm_err'
628 | __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/drm/drm_print.h:615:55: note: expanded from macro '__drm_printk'
615 | dev_##level##type(__drm_to_dev(drm), "[drm] " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/gpu/drm/panthor/panthor_perf.c:476:14: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
475 | "Perf BO expected min size %lu, passed BO with size %lu\n",
| ~~~
| %zu
476 | min_size, obj->size);
| ^~~~~~~~~
include/drm/drm_print.h:628:46: note: expanded from macro 'drm_err'
628 | __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/drm/drm_print.h:615:55: note: expanded from macro '__drm_printk'
615 | dev_##level##type(__drm_to_dev(drm), "[drm] " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/gpu/drm/panthor/panthor_perf.c:682:19: warning: shift count >= width of type [-Wshift-count-overflow]
682 | size_t fw_size = GLB_PERFCNT_FW_SIZE(glb_iface->control->perfcnt_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/panthor/panthor_fw.h:201:40: note: expanded from macro 'GLB_PERFCNT_FW_SIZE'
201 | #define GLB_PERFCNT_FW_SIZE(x) (((x) & GENMASK(32, 16)) >> 8)
| ^~~~~~~~~~~~~~~
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bits.h:49:20: note: expanded from macro 'GENMASK_TYPE'
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
vim +419 drivers/gpu/drm/panthor/panthor_perf.c
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 401
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 402 static void panthor_perf_info_init(struct panthor_device *const ptdev)
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 403 {
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 404 struct panthor_fw_global_iface *glb_iface = panthor_fw_get_glb_iface(ptdev);
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 405 struct drm_panthor_perf_info *const perf_info = &ptdev->perf_info;
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 406
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 407 if (GPU_ARCH_MAJOR(ptdev->gpu_info.gpu_id) < 11) {
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 408 perf_info->counters_per_block = PANTHOR_PERF_COUNTERS_PER_BLOCK;
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 409 } else {
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 410 u32 features = panthor_gpu_get_prfcnt_features(ptdev);
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 411
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 412 perf_info->counters_per_block = PRFCNT_FEATURES_COUNTER_BLOCK_SIZE(features) /
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 413 PANTHOR_HW_COUNTER_SIZE;
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 414 }
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 415
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 416 perf_info->sample_header_size = sizeof(struct drm_panthor_perf_sample_header);
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 417 perf_info->block_header_size = sizeof(struct drm_panthor_perf_block_header);
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 418
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 @419 if (GLB_PERFCNT_FW_SIZE(glb_iface->control->perfcnt_size))
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 420 perf_info->fw_blocks = 1;
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 421
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 422 perf_info->cshw_blocks = 1;
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 423 perf_info->tiler_blocks = 1;
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 424 perf_info->memsys_blocks = GPU_MEM_FEATURES_L2_SLICES(ptdev->gpu_info.mem_features);
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 425 perf_info->shader_blocks = hweight64(ptdev->gpu_info.shader_present);
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 426
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 427 perf_info->sample_size = session_get_sample_size(perf_info);
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 428 }
90bd67db5fef5b3 Lukas Zapolskas 2026-11-26 429
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-11-28 18:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 20:57 [PATCH v8 0/3] drm/panthor: Performance counter implementation with single manual client support Lukas Zapolskas
2026-11-26 20:57 ` [PATCH v8 1/3] drm/panthor: Add perf setup and session management Lukas Zapolskas
2026-11-26 21:14 ` sashiko-bot
2026-11-27 6:56 ` kernel test robot
2026-11-28 15:33 ` kernel test robot
2026-11-26 20:57 ` [PATCH v8 2/3] drm/panthor: Implement performance counter firmware sampling Lukas Zapolskas
2026-11-26 21:31 ` sashiko-bot
2026-11-28 18:17 ` kernel test robot [this message]
2026-11-26 20:57 ` [PATCH v8 3/3] drm/panthor: Expose performance counter queries and ioctls Lukas Zapolskas
2026-11-26 21:16 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261129020435.CX9TkdVz-lkp@intel.com \
--to=lkp@intel.com \
--cc=adrian.larumbe@collabora.com \
--cc=airlied@gmail.com \
--cc=akash.goel@arm.com \
--cc=aliceryhl@google.com \
--cc=bbrezillon@kernel.org \
--cc=chris.diamand@arm.com \
--cc=daniel.almeida@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=karunika.choo@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=llvm@lists.linux.dev \
--cc=lukas.zapolskas@arm.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rust-for-linux@vger.kernel.org \
--cc=simona@ffwll.ch \
--cc=steven.price@arm.com \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.