* drivers/gpu/drm/xe/xe_pci.c:758:undefined reference to `xe_configfs_primary_gt_allowed'
@ 2026-10-18 7:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-18 7:49 UTC (permalink / raw)
To: Matt Roper; +Cc: oe-kbuild-all, linux-kernel, Gustavo Sousa
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 70dd4ee72eb2d5793c62e71c14e3aba78e5a4e56
commit: 7abd69278bb53ab6b43f9650daba550cc7624858 drm/xe/configfs: Add attribute to disable GT types
date: 1 year ago
config: xtensa-randconfig-r2305-20261014 (https://download.01.org/0day-ci/archive/20261018/202610180018.84KdfsUc-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 15.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261018/202610180018.84KdfsUc-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: 7abd69278bb5 ("drm/xe/configfs: Add attribute to disable GT types")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610180018.84KdfsUc-lkp@intel.com/
All errors (new ones prefixed by >>):
xtensa-linux-ld: section .text VMA [00003000,0195637b] overlaps section .data VMA [00000000,0032bb3b]
xtensa-linux-ld: section .init.data VMA [0032bb40,0033526b] overlaps section .text VMA [00003000,0195637b]
xtensa-linux-ld: drivers/gpu/drm/xe/xe_guc.o: in function `xe_guc_init':
xe_guc.c:(.text+0x1854): undefined reference to `xe_configfs_get_psmi_enabled'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_guc.o: in function `xe_guc_init_post_hwconfig':
xe_guc.c:(.text+0x1afa): undefined reference to `xe_configfs_get_psmi_enabled'
arch/xtensa/kernel/entry.o: in function `fast_syscall_spill_registers':
arch/xtensa/kernel/entry.S:1424:(.exception.text+0x1e7): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: make_task_dead
xtensa-linux-ld: drivers/gpu/drm/xe/xe_hw_engine.o: in function `xe_hw_engine_setup_default_lrc_state':
drivers/gpu/drm/xe/xe_hw_engine.c:830:(.text+0x10cc): undefined reference to `xe_configfs_get_engines_allowed'
xtensa-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:814:(.text+0x1606): undefined reference to `xe_configfs_get_engines_allowed'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_lrc.o: in function `setup_invalidate_state_cache_wa':
drivers/gpu/drm/xe/xe_lrc.c:1116:(.text+0x6c4): undefined reference to `xe_configfs_get_ctx_restore_post_bb'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_lrc.o: in function `setup_configfs_post_ctx_restore_bb':
drivers/gpu/drm/xe/xe_lrc.c:1122:(.text+0x704): undefined reference to `xe_configfs_get_ctx_restore_post_bb'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_lrc.c:1145:(.text+0x784): undefined reference to `xe_configfs_get_ctx_restore_mid_bb'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_lrc.o: in function `setup_configfs_mid_ctx_restore_bb':
drivers/gpu/drm/xe/xe_lrc.c:1151:(.text+0x7c4): undefined reference to `xe_configfs_get_ctx_restore_mid_bb'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_lrc.o: in function `xe_lrc_write_ring':
drivers/gpu/drm/xe/xe_lrc.c:1392:(.text+0x529c): undefined reference to `xe_configfs_get_ctx_restore_mid_bb'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_lrc.o: in function `xe_lrc_init':
drivers/gpu/drm/xe/xe_lrc.c:87:(.text+0x558c): undefined reference to `xe_configfs_get_ctx_restore_mid_bb'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_module.o:(.rodata+0x8): undefined reference to `xe_configfs_init'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_module.o:(.rodata+0xc): undefined reference to `xe_configfs_exit'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_pci.o: in function `xe_info_probe_tile_count':
>> drivers/gpu/drm/xe/xe_pci.c:758:(.text+0xb28): undefined reference to `xe_configfs_primary_gt_allowed'
>> xtensa-linux-ld: drivers/gpu/drm/xe/xe_pci.c:758:(.text+0xb78): undefined reference to `xe_configfs_media_gt_allowed'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_pci.o: in function `xe_info_init':
drivers/gpu/drm/xe/xe_pci.c:700:(.text+0xf54): undefined reference to `xe_configfs_primary_gt_allowed'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_pci.c:730:(.text+0x108a): undefined reference to `xe_configfs_media_gt_allowed'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_pci.c:905:(.text+0x1404): undefined reference to `xe_configfs_check_device'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_pci.o: in function `xe_pci_probe':
drivers/gpu/drm/xe/xe_pci.c:911:(.text+0x157a): undefined reference to `xe_configfs_check_device'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_psmi.o: in function `psmi_debugfs_capture_addr_show':
drivers/gpu/drm/xe/xe_psmi.c:260:(.text+0x884): undefined reference to `xe_configfs_get_psmi_enabled'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_psmi.o: in function `xe_psmi_debugfs_register':
drivers/gpu/drm/xe/xe_psmi.c:36:(.text+0x8b2): undefined reference to `xe_configfs_get_psmi_enabled'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_psmi.c:289:(.text+0x944): undefined reference to `xe_configfs_get_psmi_enabled'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_psmi.o: in function `xe_psmi_init':
drivers/gpu/drm/xe/xe_psmi.c:36:(.text+0x968): undefined reference to `xe_configfs_get_psmi_enabled'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_rtp.o: in function `xe_rtp_match_not_sriov_vf':
drivers/gpu/drm/xe/xe_rtp.c:371:(.text+0x1384): undefined reference to `xe_configfs_get_psmi_enabled'
xtensa-linux-ld: drivers/gpu/drm/xe/xe_rtp.o:drivers/gpu/drm/xe/xe_rtp.c:372: more undefined references to `xe_configfs_get_psmi_enabled' follow
xtensa-linux-ld: drivers/gpu/drm/xe/xe_survivability_mode.o: in function `xe_survivability_mode_is_boot_enabled':
drivers/gpu/drm/xe/xe_survivability_mode.c:285:(.text+0x55c): undefined reference to `xe_configfs_get_survivability_mode'
xtensa-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:295:(.text+0x5d2): undefined reference to `xe_configfs_get_survivability_mode'
vim +758 drivers/gpu/drm/xe/xe_pci.c
6675c9e209155fb Matt Roper 2025-10-13 749
4f5ee007f62a182 Michał Winiarski 2023-12-05 750 /*
4f5ee007f62a182 Michał Winiarski 2023-12-05 751 * Initialize device info content that does require knowledge about
4f5ee007f62a182 Michał Winiarski 2023-12-05 752 * graphics / media IP version.
4f5ee007f62a182 Michał Winiarski 2023-12-05 753 * Make sure that GT / tile structures allocated by the driver match the data
4f5ee007f62a182 Michał Winiarski 2023-12-05 754 * present in device info.
4f5ee007f62a182 Michał Winiarski 2023-12-05 755 */
4f5ee007f62a182 Michał Winiarski 2023-12-05 756 static int xe_info_init(struct xe_device *xe,
f25e698d43fb279 Gustavo Sousa 2025-02-21 757 const struct xe_device_desc *desc)
4f5ee007f62a182 Michał Winiarski 2023-12-05 @758 {
6ed6ba32dba14ef Matt Roper 2023-05-24 759 u32 graphics_gmdid_revid = 0, media_gmdid_revid = 0;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 760 const struct xe_ip *graphics_ip;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 761 const struct xe_ip *media_ip;
f25e698d43fb279 Gustavo Sousa 2025-02-21 762 const struct xe_graphics_desc *graphics_desc;
f25e698d43fb279 Gustavo Sousa 2025-02-21 763 const struct xe_media_desc *media_desc;
a5edc7cdb387511 Matt Roper 2023-06-01 764 struct xe_tile *tile;
dd08ebf6c3525a7 Matthew Brost 2023-03-30 765 struct xe_gt *gt;
ff1d2b5e3d28a62 Matt Roper 2025-10-13 766 int ret;
dd08ebf6c3525a7 Matthew Brost 2023-03-30 767 u8 id;
dd08ebf6c3525a7 Matthew Brost 2023-03-30 768
5822bba943ad2ec Matt Roper 2023-04-06 769 /*
5822bba943ad2ec Matt Roper 2023-04-06 770 * If this platform supports GMD_ID, we'll detect the proper IP
f25e698d43fb279 Gustavo Sousa 2025-02-21 771 * descriptor to use from hardware registers.
f25e698d43fb279 Gustavo Sousa 2025-02-21 772 * desc->pre_gmdid_graphics_ip will only ever be set at this point for
f25e698d43fb279 Gustavo Sousa 2025-02-21 773 * platforms before GMD_ID. In that case the IP descriptions and
f25e698d43fb279 Gustavo Sousa 2025-02-21 774 * versions are simply derived from that.
5822bba943ad2ec Matt Roper 2023-04-06 775 */
f25e698d43fb279 Gustavo Sousa 2025-02-21 776 if (desc->pre_gmdid_graphics_ip) {
22adf7c51ed1907 Gustavo Sousa 2025-02-21 777 graphics_ip = desc->pre_gmdid_graphics_ip;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 778 media_ip = desc->pre_gmdid_media_ip;
6ed6ba32dba14ef Matt Roper 2023-05-24 779 xe->info.step = xe_step_pre_gmdid_get(xe);
6ed6ba32dba14ef Matt Roper 2023-05-24 780 } else {
f25e698d43fb279 Gustavo Sousa 2025-02-21 781 xe_assert(xe, !desc->pre_gmdid_media_ip);
ff1d2b5e3d28a62 Matt Roper 2025-10-13 782 ret = handle_gmdid(xe, &graphics_ip, &media_ip,
6ed6ba32dba14ef Matt Roper 2023-05-24 783 &graphics_gmdid_revid, &media_gmdid_revid);
ff1d2b5e3d28a62 Matt Roper 2025-10-13 784 if (ret)
ff1d2b5e3d28a62 Matt Roper 2025-10-13 785 return ret;
ff1d2b5e3d28a62 Matt Roper 2025-10-13 786
6ed6ba32dba14ef Matt Roper 2023-05-24 787 xe->info.step = xe_step_gmdid_get(xe,
6ed6ba32dba14ef Matt Roper 2023-05-24 788 graphics_gmdid_revid,
6ed6ba32dba14ef Matt Roper 2023-05-24 789 media_gmdid_revid);
6ed6ba32dba14ef Matt Roper 2023-05-24 790 }
5822bba943ad2ec Matt Roper 2023-04-06 791
5822bba943ad2ec Matt Roper 2023-04-06 792 /*
5822bba943ad2ec Matt Roper 2023-04-06 793 * If we couldn't detect the graphics IP, that's considered a fatal
5822bba943ad2ec Matt Roper 2023-04-06 794 * error and we should abort driver load. Failing to detect media
5822bba943ad2ec Matt Roper 2023-04-06 795 * IP is non-fatal; we'll just proceed without enabling media support.
5822bba943ad2ec Matt Roper 2023-04-06 796 */
22adf7c51ed1907 Gustavo Sousa 2025-02-21 797 if (!graphics_ip)
5822bba943ad2ec Matt Roper 2023-04-06 798 return -ENODEV;
5822bba943ad2ec Matt Roper 2023-04-06 799
22adf7c51ed1907 Gustavo Sousa 2025-02-21 800 xe->info.graphics_verx100 = graphics_ip->verx100;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 801 xe->info.graphics_name = graphics_ip->name;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 802 graphics_desc = graphics_ip->desc;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 803
22adf7c51ed1907 Gustavo Sousa 2025-02-21 804 if (media_ip) {
22adf7c51ed1907 Gustavo Sousa 2025-02-21 805 xe->info.media_verx100 = media_ip->verx100;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 806 xe->info.media_name = media_ip->name;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 807 media_desc = media_ip->desc;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 808 } else {
22adf7c51ed1907 Gustavo Sousa 2025-02-21 809 xe->info.media_name = "none";
22adf7c51ed1907 Gustavo Sousa 2025-02-21 810 media_desc = NULL;
22adf7c51ed1907 Gustavo Sousa 2025-02-21 811 }
22adf7c51ed1907 Gustavo Sousa 2025-02-21 812
5822bba943ad2ec Matt Roper 2023-04-06 813 xe->info.has_asid = graphics_desc->has_asid;
c462f81b695a7cf Nirmoy Das 2024-04-30 814 xe->info.has_atomic_enable_pte_bit = graphics_desc->has_atomic_enable_pte_bit;
06e69a424930154 Nirmoy Das 2024-04-30 815 if (xe->info.platform != XE_PVC)
06e69a424930154 Nirmoy Das 2024-04-30 816 xe->info.has_device_atomics_on_smem = 1;
0c841e47d8d94bd Lucas De Marchi 2024-09-04 817
c697ddcf27bd5c7 Matthew Brost 2025-08-26 818 xe->info.has_range_tlb_inval = graphics_desc->has_range_tlb_inval;
5a92da34ddb4ec7 Lucas De Marchi 2023-12-05 819 xe->info.has_usm = graphics_desc->has_usm;
82b98cadb01f63c Umesh Nerlige Ramappa 2025-05-09 820 xe->info.has_64bit_timestamp = graphics_desc->has_64bit_timestamp;
dd08ebf6c3525a7 Matthew Brost 2023-03-30 821
97a18f834942337 Gustavo Sousa 2025-08-18 822 xe_info_probe_tile_count(xe);
97a18f834942337 Gustavo Sousa 2025-08-18 823
4f122766f9043c3 Michał Winiarski 2023-12-05 824 for_each_remote_tile(tile, xe, id) {
7e4ce4518b906a9 Michał Winiarski 2023-12-05 825 int err;
a5edc7cdb387511 Matt Roper 2023-06-01 826
7e4ce4518b906a9 Michał Winiarski 2023-12-05 827 err = xe_tile_init_early(tile, xe, id);
7e4ce4518b906a9 Michał Winiarski 2023-12-05 828 if (err)
7e4ce4518b906a9 Michał Winiarski 2023-12-05 829 return err;
4f122766f9043c3 Michał Winiarski 2023-12-05 830 }
f6929e80cdf540d Matt Roper 2023-06-01 831
6675c9e209155fb Matt Roper 2025-10-13 832 /* Allocate any GT and VRAM structures necessary for the platform. */
4f122766f9043c3 Michał Winiarski 2023-12-05 833 for_each_tile(tile, xe, id) {
f92cfd72d9a650f Piotr Piórkowski 2025-07-14 834 int err;
f92cfd72d9a650f Piotr Piórkowski 2025-07-14 835
f92cfd72d9a650f Piotr Piórkowski 2025-07-14 836 err = xe_tile_alloc_vram(tile);
f92cfd72d9a650f Piotr Piórkowski 2025-07-14 837 if (err)
f92cfd72d9a650f Piotr Piórkowski 2025-07-14 838 return err;
f92cfd72d9a650f Piotr Piórkowski 2025-07-14 839
6675c9e209155fb Matt Roper 2025-10-13 840 tile->primary_gt = alloc_primary_gt(tile, graphics_desc, media_desc);
6675c9e209155fb Matt Roper 2025-10-13 841 if (IS_ERR(tile->primary_gt))
6675c9e209155fb Matt Roper 2025-10-13 842 return PTR_ERR(tile->primary_gt);
7bfbad97d38f1de Matt Roper 2023-06-01 843
7abd69278bb53ab Matt Roper 2025-10-13 844 /*
7abd69278bb53ab Matt Roper 2025-10-13 845 * It's not currently possible to probe a device with the
7abd69278bb53ab Matt Roper 2025-10-13 846 * primary GT disabled. With some work, this may be future in
7abd69278bb53ab Matt Roper 2025-10-13 847 * the possible for igpu platforms (although probably not for
7abd69278bb53ab Matt Roper 2025-10-13 848 * dgpu's since access to the primary GT's BCS engines is
7abd69278bb53ab Matt Roper 2025-10-13 849 * required for VRAM management).
7abd69278bb53ab Matt Roper 2025-10-13 850 */
7abd69278bb53ab Matt Roper 2025-10-13 851 if (!tile->primary_gt) {
7abd69278bb53ab Matt Roper 2025-10-13 852 drm_err(&xe->drm, "Cannot probe device with without a primary GT\n");
7abd69278bb53ab Matt Roper 2025-10-13 853 return -ENODEV;
7abd69278bb53ab Matt Roper 2025-10-13 854 }
7abd69278bb53ab Matt Roper 2025-10-13 855
6675c9e209155fb Matt Roper 2025-10-13 856 tile->media_gt = alloc_media_gt(tile, media_desc);
7bfbad97d38f1de Matt Roper 2023-06-01 857 if (IS_ERR(tile->media_gt))
7bfbad97d38f1de Matt Roper 2023-06-01 858 return PTR_ERR(tile->media_gt);
dd08ebf6c3525a7 Matthew Brost 2023-03-30 859 }
5822bba943ad2ec Matt Roper 2023-04-06 860
1046be1db620d00 Gustavo Sousa 2025-08-18 861 /*
1046be1db620d00 Gustavo Sousa 2025-08-18 862 * Now that we have tiles and GTs defined, let's loop over valid GTs
1046be1db620d00 Gustavo Sousa 2025-08-18 863 * in order to define gt_count.
1046be1db620d00 Gustavo Sousa 2025-08-18 864 */
1046be1db620d00 Gustavo Sousa 2025-08-18 865 for_each_gt(gt, xe, id)
1046be1db620d00 Gustavo Sousa 2025-08-18 866 xe->info.gt_count++;
1046be1db620d00 Gustavo Sousa 2025-08-18 867
5822bba943ad2ec Matt Roper 2023-04-06 868 return 0;
d19ad0e80ebe3da Lucas De Marchi 2023-04-01 869 }
d19ad0e80ebe3da Lucas De Marchi 2023-04-01 870
:::::: The code at line 758 was first introduced by commit
:::::: 4f5ee007f62a1825cec8140b14b28ef532f570f8 drm/xe: Split xe_info_init
:::::: TO: Michał Winiarski <michal.winiarski@intel.com>
:::::: CC: Rodrigo Vivi <rodrigo.vivi@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-10-18 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-18 7:49 drivers/gpu/drm/xe/xe_pci.c:758:undefined reference to `xe_configfs_primary_gt_allowed' kernel test robot
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.