[agd5f:drm-next-7.3 244/308] drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/ bounding_boxes/utm_qos_model_dchub_v2.h:71:undef ined reference to `__udivdi3'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next-7.3
head:   daaeec235e46b45a0dbd4facfb275cc43022028d
commit: 992694ad28584188725751f695a85661e8e3797a [244/308] drm/amd/display: Enable DCN6 sources compilation
config: i386-randconfig-2006-20250825 (https://download.01.org/0day-ci/archive/20260809/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260809/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   ld: drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_utm_soc_bb/dml2_utm_soc_bb_dcn6.o: in function `dchub_v2_get_sop_total_available_bandwidth_KBps':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/bounding_boxes/utm_qos_model_dchub_v2.h:71:(.text+0x61): undefined reference to `__udivdi3'
>> ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/bounding_boxes/utm_qos_model_dchub_v2.h:79:(.text+0x9d): undefined reference to `__udivdi3'
   ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/bounding_boxes/utm_qos_model_dchub_v2.h:66:(.text+0xc0): undefined reference to `__udivdi3'
   ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/bounding_boxes/utm_qos_model_dchub_v2.h:76:(.text+0xe2): undefined reference to `__udivdi3'
   ld: drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_utm_soc_bb/dml2_utm_soc_bb_dcn6.o: in function `dchub_v2_is_qos_bandwidth_supported_by_sop':
   drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/bounding_boxes/utm_qos_model_dchub_v2.h:115:(.text+0x16d): undefined reference to `__udivdi3'
   ld: drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_utm_soc_bb/dml2_utm_soc_bb_dcn6.o:drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/bounding_boxes/utm_qos_model_dchub_v2.h:117: more undefined references to `__udivdi3' follow


vim +71 drivers/gpu/drm/amd/amdgpu/../display/dc/dml2_0/dml21/inc/bounding_boxes/utm_qos_model_dchub_v2.h

7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  53  
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  54  static inline void dchub_v2_get_sop_total_available_bandwidth_KBps(
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  55  		const struct utm_qos_model *model,
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  56  		struct utm_qos_model_dchub_memory_path_bandwidth_v2 *total_available_bandwidth,
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  57  		uint8_t sop_index)
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  58  {
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  59  	const struct utm_soc_operating_point *sop = &model->sops[sop_index];
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  60  	const struct utm_qos_model_socbb *socbb = &model->socbb;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  61  	uint64_t dram_available_bandwidth_KBps_nominal;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  62  	uint64_t fabric_available_bandwidth_KBps_nominal;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  63  	uint64_t dram_available_bandwidth_KBps_urgent;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  64  	uint64_t fabric_available_bandwidth_KBps_urgent;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  65  
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  66  	dram_available_bandwidth_KBps_nominal = (uint64_t) sop->uclk_khz
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  67  			* socbb->dram_channel_count
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  68  			* socbb->dram_channel_width_bytes
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  69  			* socbb->dram_transactions_per_clock
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  70  			* socbb->dram_derate_percent_nominal / 100;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22 @71  	dram_available_bandwidth_KBps_urgent = (uint64_t) sop->uclk_khz
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  72  			* socbb->dram_channel_count
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  73  			* socbb->dram_channel_width_bytes
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  74  			* socbb->dram_transactions_per_clock
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  75  			* socbb->dram_derate_percent_urgent / 100;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  76  	fabric_available_bandwidth_KBps_nominal = (uint64_t) sop->fclk_khz
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  77  			* socbb->fabric_datapath_to_dcn_data_return_bytes
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  78  			* socbb->fabric_derate_percent_nominal / 100;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22 @79  	fabric_available_bandwidth_KBps_urgent = (uint64_t) sop->fclk_khz
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  80  			* socbb->fabric_datapath_to_dcn_data_return_bytes
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  81  			* socbb->fabric_derate_percent_urgent / 100;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  82  
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  83  	total_available_bandwidth->nominal_bandwidth_KBps =
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  84  			dram_available_bandwidth_KBps_nominal < fabric_available_bandwidth_KBps_nominal ?
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  85  			(uint32_t) dram_available_bandwidth_KBps_nominal :
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  86  			(uint32_t) fabric_available_bandwidth_KBps_nominal;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  87  	total_available_bandwidth->urgent_bandwidth_KBps =
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  88  			dram_available_bandwidth_KBps_urgent < fabric_available_bandwidth_KBps_urgent ?
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  89  			(uint32_t) dram_available_bandwidth_KBps_urgent :
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  90  			(uint32_t) fabric_available_bandwidth_KBps_urgent;
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  91  }
7f7d7ea1fa5151 Aurabindo Pillai 2026-07-22  92  

:::::: The code at line 71 was first introduced by commit
:::::: 7f7d7ea1fa515157162d0d21245925551ed103a1 drm/amd/display: Add new sources for DCN6

:::::: TO: Aurabindo Pillai <[email protected]>
:::::: CC: Alex Deucher <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.