From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795889886; b=QqGjpo2/NoRJKYvAiMzYmMMdNNCcAHP68pHE64jp73HjwMGzBi2LPmmcMvKt6lgTS2Ab a/hTGTGSb1wUeVVbJ4Gz+3qmeXHvUpU4w7LkFmaIke9xXZSfpmjz8y0x9mXxgvuU7j6Gq LVvL/Yf7u1Z5Srhr48nyjURjB4ix9G+uqYE86fMdPOkS/C39zJ5vrh0ivDpQpQSOm4NlY dVuSYJ0KJVUr+PoeaXQmU18E1sq+i8uxcD9xwOWDOKvaEZSm6W3WDvu5HE0DsCXb7LDm+ so3vH8tgIT07KXmbAG1JQLcKNQz3u7aZWSqxUY3rp2VZT5fnkG/LbffNgoUJPbP+FSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795889886; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=VVnA5YxQ1Mmq6kpjtuxNv+ttsrz1B52F8Es3Cheg/1A=; b=DPkxFZiAMa2usT2JmQQJdySircbHUn2cxCT/vvjLPJGe/nfH7ibsGsEQqKD0CRXk1KBo Uuu54PhNYuTnNJ8xF2e2IhLy1jo5acWLi9XdpXrJV0bCr77+4P4vLQ68ytOLF4kJSyRuO JhAYAaC1DX4/yAeZboPhoKLuWbFwhAYAtAggV6lKaFJC7kaj0xvo4d+/Wp6UBgy448fWP LhYDQ10D9ADjAq3sh+aT9Kqt6Rhcll23skzD4/JeQQSUFZpN6KqV+VtRauJO2H51Yo6um 5zKaWDqo2RwyvlpN2KainU+TiF3D4PhF6WFmWI0Nz3DQ4Q7s3W1J01StJ7dzSdp7sjw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=i8psJqW+; arc=none smtp.remote-ip=192.198.163.7 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C23C4606A31C; Sat, 28 Nov 2026 18:18:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C23C4606A31C 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, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=i8psJqW+ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795889885; x=1827425885; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=BZfQcEPEYgmIKKxGUb8tUAPMb8VluDs9fTdDh7HqTSI=; b=i8psJqW+eEXbOPW+VRzX6CYSWvSJiCqQbtu2ySEio30GAqCjQ44g2Vnx YJ7enad1fxL//57EisJLHSVsmPX1OxxOE6uou/uAJB/JyetNLo0zPLv8l EouXf3ts2CzLmOhpCfw8VPj/NDNKyS/SuZ3F5RmejvqZ54fP/MdXpsGUt msyeBPrtg7iiI26NCKnhN+SpCtTxKD1k6uzrNXVw6Iwq7pfGMwxDYWNfq gGgaDn/j8PcQNsCgDXpYyIWgG7yBahL1KJz/BpQhmHLFFjEN63Kkei6RJ 9SARq4GbQaDQIWAMvsEcoDU6mdM+V6sm4WBZfrfg0NcebGiZCZ7gllnZw g==; X-CSE-ConnectionGUID: bdH5YCAdQb+6lKPqz1xZBA== X-CSE-MsgGUID: 1S4dVH0OT9mb+T3OHZ/YbQ== X-IronPort-AV: E=McAfee;i="6800,10657,11980"; a="4609102" X-IronPort-AV: E=Sophos;i="6.27,238,1787036400"; d="scan'208";a="4609102" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2026 10:18:04 -0800 X-CSE-ConnectionGUID: M7QcB7OgStGDMs5piBe6+g== X-CSE-MsgGUID: CMIkDLBIQDq02Jj85m8Q0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,238,1787036400"; d="scan'208";a="12967123" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 28 Nov 2026 10:18:00 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xXMzk-00000001Xnu-1CNw; Sat, 28 Nov 2026 18:17:56 +0000 Date: Sun, 29 Nov 2026 02:17:15 +0800 From: kernel test robot To: Lukas Zapolskas , Daniel Almeida , Alice Ryhl , Boris Brezillon , Steven Price , Liviu Dudau , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Akash Goel , Karunika Choo , Chris Diamand 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, =?iso-8859-1?Q?Adri=E1n?= Larumbe Subject: Re: [PATCH v8 2/3] drm/panthor: Implement performance counter firmware sampling Message-ID: <20261129020435.CX9TkdVz-lkp@intel.com> References: <20261126-panthor-performance-counters-v8-2-6e7db0ec33f5@arm.com> X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 | 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