All of lore.kernel.org
 help / color / mirror / Atom feed
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>
Cc: oe-kbuild-all@lists.linux.dev, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org, nd@arm.com,
	"Adrián Larumbe" <adrian.larumbe@collabora.com>,
	"Lukas Zapolskas" <lukas.zapolskas@arm.com>
Subject: Re: [PATCH v7 6/8] drm/panthor: Implement sample handling
Date: Tue, 13 Oct 2026 12:52:40 +0800	[thread overview]
Message-ID: <202610131207.5wGThJW9-lkp@intel.com> (raw)
In-Reply-To: <20261011-panthor-performance-counters-v7-6-12c32495062f@arm.com>

Hi Lukas,

kernel test robot noticed the following build errors:

[auto build test ERROR on 4b7a49d66c8398a7984dff4ac54d1acc6b3a58df]

url:    https://github.com/intel-lab-lkp/linux/commits/Lukas-Zapolskas/drm-panthor-Add-performance-counter-uAPI/20261011-183648
base:   4b7a49d66c8398a7984dff4ac54d1acc6b3a58df
patch link:    https://lore.kernel.org/r/20261011-panthor-performance-counters-v7-6-12c32495062f%40arm.com
patch subject: [PATCH v7 6/8] drm/panthor: Implement sample handling
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20261013/202610131207.5wGThJW9-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261013/202610131207.5wGThJW9-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/202610131207.5wGThJW9-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/panthor/panthor_perf.c: In function 'session_accumulate_sample':
>> drivers/gpu/drm/panthor/panthor_perf.c:902:57: error: passing argument 2 of 'bitmap_from_arr64' from incompatible pointer type [-Wincompatible-pointer-types]
     902 |                 bitmap_from_arr64(enabled_ctrs, em->mask[dst_blk->header.block_type],
         |                                                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                                         |
         |                                                         long unsigned int *
   In file included from include/linux/cpumask.h:11,
                    from include/linux/smp.h:13,
                    from include/linux/interrupt_rc.h:17,
                    from include/linux/spinlock.h:60,
                    from include/linux/swait.h:7,
                    from include/linux/completion.h:12,
                    from include/drm/drm_file.h:34,
                    from drivers/gpu/drm/panthor/panthor_perf.c:5:
   include/linux/bitmap.h:322:58: note: expected 'const u64 *' {aka 'const long long unsigned int *'} but argument is of type 'long unsigned int *'
     322 | void bitmap_from_arr64(unsigned long *bitmap, const u64 *buf, unsigned int nbits);
         |                                               ~~~~~~~~~~~^~~


vim +/bitmap_from_arr64 +902 drivers/gpu/drm/panthor/panthor_perf.c

   875	
   876	/**
   877	 * session_accumulate_sample - Accumulate requested counters into an existing sample.
   878	 * @ptdev: Panthor device.
   879	 * @session: Perf session.
   880	 * @session_sample: Start of the destination sample, including its header.
   881	 * @perf_sample: Start of the intermediate sample, including its header.
   882	 *
   883	 * Firmware enable masks select groups of counters. Copy timestamps and accumulate
   884	 * only the counters requested by this session.
   885	 */
   886	static void session_accumulate_sample(struct panthor_device *ptdev,
   887					      struct panthor_perf_session *session,
   888					      u8 *session_sample, u8 *perf_sample)
   889	{
   890		const struct drm_panthor_perf_info *const perf_info = &ptdev->perf_info;
   891		struct panthor_perf_enable_masks *em = session->enabled_counters;
   892		struct panthor_perf_sample_block_iter iter;
   893		const u32 counters = perf_info->counters_per_block;
   894	
   895		sample_block_iter_init(perf_info, perf_sample, session_sample, &iter);
   896	
   897		while (sample_block_iter_next(&iter)) {
   898			DECLARE_BITMAP(enabled_ctrs, PANTHOR_PERF_EM_BITS);
   899			const struct panthor_perf_counter_block *src_blk = iter.src_blk;
   900			struct panthor_perf_counter_block *dst_blk = iter.dst_blk;
   901	
 > 902			bitmap_from_arr64(enabled_ctrs, em->mask[dst_blk->header.block_type],
   903					  PANTHOR_PERF_EM_BITS);
   904			bitmap_clear(enabled_ctrs, 0, PANTHOR_HEADER_COUNTERS);
   905	
   906			dst_blk->counters[PANTHOR_CTR_TIMESTAMP_HI] =
   907				src_blk->counters[PANTHOR_CTR_TIMESTAMP_HI];
   908			dst_blk->counters[PANTHOR_CTR_TIMESTAMP_LO] =
   909				src_blk->counters[PANTHOR_CTR_TIMESTAMP_LO];
   910	
   911			for (size_t ctr_idx = PANTHOR_HEADER_COUNTERS; ctr_idx < counters; ctr_idx++)
   912				if (test_bit(ctr_idx, enabled_ctrs))
   913					dst_blk->counters[ctr_idx] += src_blk->counters[ctr_idx];
   914		}
   915	}
   916	

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

  parent reply	other threads:[~2026-10-13  4:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-11 17:36 [PATCH v7 0/8] drm/panthor: Performance counter implementation with single manual client support Lukas Zapolskas
2026-10-11 17:36 ` [PATCH v7 1/8] drm/panthor: Add performance counter uAPI Lukas Zapolskas
2026-10-11 17:47   ` sashiko-bot
2026-10-11 17:36 ` [PATCH v7 2/8] drm/panthor: Add register definitions for perf Lukas Zapolskas
2026-10-11 17:36 ` [PATCH v7 3/8] drm/panthor: Add DEV_QUERY.PERF_INFO handling Lukas Zapolskas
2026-10-11 17:36 ` [PATCH v7 4/8] drm/panthor: Add panthor perf initialization and termination Lukas Zapolskas
2026-10-11 17:36 ` [PATCH v7 5/8] drm/panthor: Introduce sampling sessions to handle userspace clients Lukas Zapolskas
2026-10-11 17:51   ` sashiko-bot
2026-10-11 17:36 ` [PATCH v7 6/8] drm/panthor: Implement sample handling Lukas Zapolskas
2026-10-11 17:56   ` sashiko-bot
2026-10-13  4:52   ` kernel test robot [this message]
2026-10-11 17:36 ` [PATCH v7 7/8] drm/panthor: Add suspend, resume and reset handling Lukas Zapolskas
2026-10-11 17:53   ` sashiko-bot
2026-10-11 17:36 ` [PATCH v7 8/8] drm/panthor: Expose the panthor perf ioctls Lukas Zapolskas
2026-10-11 17:52   ` 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=202610131207.5wGThJW9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=adrian.larumbe@collabora.com \
    --cc=airlied@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=bbrezillon@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liviu.dudau@arm.com \
    --cc=lukas.zapolskas@arm.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=nd@arm.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --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.