public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/xe/xe_psmi.c:36:undefined reference to `xe_configfs_get_psmi_enabled'
@ 2026-04-03  8:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-03  8:46 UTC (permalink / raw)
  Cc: oe-kbuild-all, linux-kernel, Riana Tauro

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5619b098e2fbf3a23bf13d91897056a1fe238c6d
commit: afe902848b417da81f60b3d15cbae40a67286dbf drm/xe/configfs: Allow to enable PSMI
date:   7 months ago
config: arc-randconfig-002-20260401 (https://download.01.org/0day-ci/archive/20260403/202604031148.C5iucYd3-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260403/202604031148.C5iucYd3-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
| Fixes: afe902848b41 ("drm/xe/configfs: Allow to enable PSMI")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604031148.C5iucYd3-lkp@intel.com/

All errors (new ones prefixed by >>):

   arc-linux-ld: drivers/gpu/drm/xe/xe_module.o:(.rodata+0x8): undefined reference to `xe_configfs_init'
   arc-linux-ld: drivers/gpu/drm/xe/xe_module.o:(.rodata+0x8): undefined reference to `xe_configfs_init'
   arc-linux-ld: drivers/gpu/drm/xe/xe_module.o:(.rodata+0xc): undefined reference to `xe_configfs_exit'
   arc-linux-ld: drivers/gpu/drm/xe/xe_module.o:(.rodata+0xc): undefined reference to `xe_configfs_exit'
   arc-linux-ld: drivers/gpu/drm/xe/xe_guc.o: in function `xe_guc_init_post_hwconfig':
   drivers/gpu/drm/xe/xe_guc.c:91:(.text+0xb0a): undefined reference to `xe_configfs_get_psmi_enabled'
   arc-linux-ld: drivers/gpu/drm/xe/xe_guc.c:91:(.text+0xb0a): undefined reference to `xe_configfs_get_psmi_enabled'
   arc-linux-ld: drivers/gpu/drm/xe/xe_hw_engine.o: in function `xe_hw_engines_init_early':
   drivers/gpu/drm/xe/xe_hw_engine.c:812:(.text+0x97a): undefined reference to `xe_configfs_get_engines_allowed'
   arc-linux-ld: drivers/gpu/drm/xe/xe_hw_engine.c:812:(.text+0x97a): undefined reference to `xe_configfs_get_engines_allowed'
   arc-linux-ld: drivers/gpu/drm/xe/xe_psmi.o: in function `xe_psmi_debugfs_register':
>> drivers/gpu/drm/xe/xe_psmi.c:36:(.text+0x30e): undefined reference to `xe_configfs_get_psmi_enabled'
>> arc-linux-ld: drivers/gpu/drm/xe/xe_psmi.c:36:(.text+0x30e): undefined reference to `xe_configfs_get_psmi_enabled'
   arc-linux-ld: drivers/gpu/drm/xe/xe_psmi.o: in function `xe_psmi_init':
   drivers/gpu/drm/xe/xe_psmi.c:36:(.text+0x380): undefined reference to `xe_configfs_get_psmi_enabled'
   arc-linux-ld: drivers/gpu/drm/xe/xe_psmi.c:36:(.text+0x380): undefined reference to `xe_configfs_get_psmi_enabled'
   arc-linux-ld: drivers/gpu/drm/xe/xe_rtp.o: in function `xe_rtp_match_psmi_enabled':
>> drivers/gpu/drm/xe/xe_rtp.c:371:(.text+0x6fe): undefined reference to `xe_configfs_get_psmi_enabled'
   arc-linux-ld: drivers/gpu/drm/xe/xe_rtp.o:drivers/gpu/drm/xe/xe_rtp.c:371: more undefined references to `xe_configfs_get_psmi_enabled' follow
   arc-linux-ld: drivers/gpu/drm/xe/xe_survivability_mode.o: in function `xe_survivability_mode_fini':
   drivers/gpu/drm/xe/xe_survivability_mode.c:150:(.text+0x14e): undefined reference to `xe_configfs_clear_survivability_mode'
   arc-linux-ld: drivers/gpu/drm/xe/xe_survivability_mode.c:150:(.text+0x14e): undefined reference to `xe_configfs_clear_survivability_mode'
   arc-linux-ld: drivers/gpu/drm/xe/xe_survivability_mode.o: in function `xe_survivability_mode_is_requested':
   drivers/gpu/drm/xe/xe_survivability_mode.c:227:(.text+0x1b0): undefined reference to `xe_configfs_get_survivability_mode'
   arc-linux-ld: drivers/gpu/drm/xe/xe_survivability_mode.c:227:(.text+0x1b0): undefined reference to `xe_configfs_get_survivability_mode'
   arc-linux-ld: drivers/gpu/drm/xe/xe_survivability_mode.c:232:(.text+0x1ca): undefined reference to `xe_configfs_clear_survivability_mode'
   arc-linux-ld: drivers/gpu/drm/xe/xe_survivability_mode.c:232:(.text+0x1ca): undefined reference to `xe_configfs_clear_survivability_mode'


vim +36 drivers/gpu/drm/xe/xe_psmi.c

aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  12  
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  13  /*
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  14   * PSMI capture support
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  15   *
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  16   * Requirement for PSMI capture is to have a physically contiguous buffer.  The
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  17   * PSMI tool owns doing all necessary configuration (MMIO register writes are
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  18   * done from user-space). However, KMD needs to provide the PSMI tool with the
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  19   * required physical address of the base of PSMI buffer in case of VRAM.
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  20   *
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  21   * VRAM backed PSMI buffer:
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  22   * Buffer is allocated as GEM object and with XE_BO_CREATE_PINNED_BIT flag which
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  23   * creates a contiguous allocation. The physical address is returned from
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  24   * psmi_debugfs_capture_addr_show(). PSMI tool can mmap the buffer via the
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  25   * PCIBAR through sysfs.
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  26   *
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  27   * SYSTEM memory backed PSMI buffer:
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  28   * Interface here does not support allocating from SYSTEM memory region.  The
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  29   * PSMI tool needs to allocate memory themselves using hugetlbfs. In order to
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  30   * get the physical address, user-space can query /proc/[pid]/pagemap. As an
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  31   * alternative, CMA debugfs could also be used to allocate reserved CMA memory.
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  32   */
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  33  
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  34  static bool psmi_enabled(struct xe_device *xe)
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  35  {
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21 @36  	return xe_configfs_get_psmi_enabled(to_pci_dev(xe->drm.dev));
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  37  }
aaa0c1f50a3d3f Lucas De Marchi 2025-08-21  38  

:::::: The code at line 36 was first introduced by commit
:::::: aaa0c1f50a3d3fc1624360eaeb7fe69af62f7107 drm/xe/psmi: Add debugfs interface for PSMI

:::::: TO: Lucas De Marchi <lucas.demarchi@intel.com>
:::::: CC: Lucas De Marchi <lucas.demarchi@intel.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-03  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03  8:46 drivers/gpu/drm/xe/xe_psmi.c:36:undefined reference to `xe_configfs_get_psmi_enabled' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox