From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCA952BE7D1; Sat, 20 Dec 2025 14:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766241316; cv=none; b=ZsYYuVsMGbqiM1byfF9b8dseR7hqnpLHTn3fE8uD0c8jVvRKixjyB1If2spkk4/eiT1DqC7k0MLmpXUzQK7QM0hy857LjuSPEf+9Miv8JbhNK50Mzk136XGdD3psGx5MP2+3VQj9FsyM+DhGahiMxFJnyiGVyeAmc08dYvStQoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766241316; c=relaxed/simple; bh=CNe3VX3VFYuiOSHQ36D86kCp2EtahQ225J5ReZWCAXU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R47RA4iUXToPXoPVoxP+IFzjzdT9Bgdz0kwISSQggx5Dz566PnymZ/Cfro9IDAbB3l4LVhXXReJqjt08ecLOqmEjMx+KrzcYzTjsiYX36KAYajVvzPTvfxOPwp8Kc5rapa8frL42MuHeWF7UM17NcZ6sjWR499FfmhpsINbEgeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=RJRQtR0g; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RJRQtR0g" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1766241314; x=1797777314; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CNe3VX3VFYuiOSHQ36D86kCp2EtahQ225J5ReZWCAXU=; b=RJRQtR0gjFPDFCZwC4r+4Ct7kUW3TLkZLFvHtKg7bOGm8IjSrY75p4Tt YcHxQ96WGGbKv8FEUH/AIhWecuNWqw/jh7rPnzfKmQsg9MirbBnk1RmEY K7j5+2vzmvNW/o55GrGq//kJ6BviW4gY6nEWqLy4NU279lGJ9DsFON5hv uGUGD6peA9ny/HngFPTpqbSbSDFMmmPaQG/sMkn3VzKczG4fB+HeupTwM oaktgMiz1QarLu/c4QApUEvGQpgt1/8aOuAwB57wE3S+HI4ug87JCk/wu k22W+VSxYcsxnWDCzBNopIZqH+fkOLxndh0s+3Dufg9bC7LtXcyLG/NXo w==; X-CSE-ConnectionGUID: 6s+dr2PGTRKzoRSAlym3+A== X-CSE-MsgGUID: D3jf5TyMTN6qNe0G37WOGQ== X-IronPort-AV: E=McAfee;i="6800,10657,11648"; a="85760160" X-IronPort-AV: E=Sophos;i="6.21,164,1763452800"; d="scan'208";a="85760160" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2025 06:35:11 -0800 X-CSE-ConnectionGUID: 03aO/k/WRtiLZoRBfcUsAg== X-CSE-MsgGUID: OMKwEc8JS2WoWSlr+yM5BQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,164,1763452800"; d="scan'208";a="236526233" Received: from lkp-server01.sh.intel.com (HELO 0d09efa1b85f) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 20 Dec 2025 06:35:07 -0800 Received: from kbuild by 0d09efa1b85f with local (Exim 4.98.2) (envelope-from ) id 1vWy2z-000000004eZ-1PED; Sat, 20 Dec 2025 14:35:05 +0000 Date: Sat, 20 Dec 2025 22:34:07 +0800 From: kernel test robot To: Lukas Zapolskas , Boris Brezillon , Liviu Dudau , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , =?iso-8859-1?Q?Adri=E1n?= Larumbe Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, nd@arm.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Mihail Atanassov , Lukas Zapolskas Subject: Re: [PATCH v6 5/7] drm/panthor: Implement the counter sampler and sample handling Message-ID: <202512202146.FY586zON-lkp@intel.com> References: <20251215171453.2506348-6-lukas.zapolskas@arm.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251215171453.2506348-6-lukas.zapolskas@arm.com> Hi Lukas, kernel test robot noticed the following build errors: [auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on next-20251219] [cannot apply to linus/master v6.19-rc1] [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/Lukas-Zapolskas/drm-panthor-Add-performance-counter-uAPI/20251216-012117 base: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next patch link: https://lore.kernel.org/r/20251215171453.2506348-6-lukas.zapolskas%40arm.com patch subject: [PATCH v6 5/7] drm/panthor: Implement the counter sampler and sample handling config: um-randconfig-001-20251217 (https://download.01.org/0day-ci/archive/20251220/202512202146.FY586zON-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202146.FY586zON-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202512202146.FY586zON-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/gpu/drm/panthor/panthor_perf.c:5: In file included from include/drm/drm_file.h:39: In file included from include/drm/drm_prime.h:37: In file included from include/linux/scatterlist.h:9: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 1209 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; | ~~~~~~~~~~ ^ >> drivers/gpu/drm/panthor/panthor_perf.c:1045:19: error: incompatible pointer types passing '__u64 (*)[2]' (aka 'unsigned long long (*)[2]') to parameter of type 'u64 *' (aka 'unsigned long long *') [-Wincompatible-pointer-types] 1045 | bitmap_to_arr64(&blk->header.enable_mask, blk_em, PANTHOR_PERF_EM_BITS); | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitmap.h:316:27: note: passing argument to parameter 'buf' here 316 | void bitmap_to_arr64(u64 *buf, const unsigned long *bitmap, unsigned int nbits); | ^ 1 warning and 1 error generated. vim +1045 drivers/gpu/drm/panthor/panthor_perf.c 991 992 /** 993 * session_populate_sample - Write out a new sample into a previously populated slot in the user 994 * ringbuffer and update both the header of the block and the PRFCNT_EN 995 * counter to contain only the selected subset of counters for that block. 996 * 997 * @ptdev: Panthor device 998 * @session: Perf session 999 * @session_sample: Pointer aligned to the start of the data section of the sample in the targeted 1000 * slot. 1001 * @sampler_sample: Pointer aligned to the start of the data section of the intermediate sampler 1002 * buffer. 1003 * 1004 * When a new sample slot is targeted, it must be cleared of the data already existing there, 1005 * enabling a direct copy from the intermediate buffer and then zeroing out any counters 1006 * that are not required for the current session. 1007 */ 1008 static void session_populate_sample(struct panthor_device *ptdev, 1009 struct panthor_perf_session *session, u8 *session_sample, 1010 u8 *sampler_sample) 1011 { 1012 const struct drm_panthor_perf_info *const perf_info = &ptdev->perf_info; 1013 const size_t block_size = get_annotated_block_size(perf_info->counters_per_block); 1014 const size_t sample_size = perf_info->sample_size; 1015 const size_t sample_header_size = perf_info->sample_header_size; 1016 const size_t data_size = sample_size - sample_header_size; 1017 const u32 counters = perf_info->counters_per_block; 1018 1019 session_populate_sample_header(session, 1020 (struct drm_panthor_perf_sample_header *)session_sample, 1021 ptdev->perf->sampler.set_config); 1022 1023 session_sample += sample_header_size; 1024 1025 memcpy(session_sample, sampler_sample + sample_header_size, data_size); 1026 1027 for (size_t i = 0; i < data_size; i += block_size) { 1028 DECLARE_BITMAP(em_diff, PANTHOR_PERF_EM_BITS); 1029 struct panthor_perf_counter_block *blk = (typeof(blk))(session_sample + i); 1030 enum drm_panthor_perf_block_type type = blk->header.block_type; 1031 unsigned long *blk_em = session->enabled_counters->mask[type]; 1032 1033 bitmap_from_arr64(em_diff, blk->header.enable_mask, PANTHOR_PERF_EM_BITS); 1034 1035 bitmap_andnot(em_diff, em_diff, blk_em, PANTHOR_PERF_EM_BITS); 1036 bitmap_clear(em_diff, 0, PANTHOR_HEADER_COUNTERS); 1037 1038 blk->counters[PANTHOR_CTR_PRFCNT_EN] = compress_enable_mask(counters, blk_em); 1039 1040 for (size_t ctr_idx = PANTHOR_HEADER_COUNTERS; ctr_idx < counters; ctr_idx++) { 1041 if (test_bit(ctr_idx, em_diff)) 1042 blk->counters[ctr_idx] = 0; 1043 } 1044 > 1045 bitmap_to_arr64(&blk->header.enable_mask, blk_em, PANTHOR_PERF_EM_BITS); 1046 } 1047 } 1048 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki