* [android-common:android16-6.12-kminext 0/1] drivers/gpu/drm/xe/xe_guc_ct.c:1814:24: error: implicit declaration of function 'xe_guc_log_snapshot_capture'; did you mean 'xe_guc_ct_snapshot_capture'?
@ 2025-11-01 9:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-01 9:41 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi John,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android16-6.12-kminext
head: bdc81b76cc3e91b2a805bff546c72244ef2504fd
commit: ff6482fb458953e111a82b7c537363d9aacf04bf [0/1] drm/xe/guc: Dead CT helper
config: x86_64-randconfig-012-20251101 (https://download.01.org/0day-ci/archive/20251101/202511011746.ql1EXFrG-lkp@intel.com/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/20251101/202511011746.ql1EXFrG-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511011746.ql1EXFrG-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/xe/xe_guc_ct.c: In function 'ct_dead_capture':
>> drivers/gpu/drm/xe/xe_guc_ct.c:1814:24: error: implicit declaration of function 'xe_guc_log_snapshot_capture'; did you mean 'xe_guc_ct_snapshot_capture'? [-Wimplicit-function-declaration]
1814 | snapshot_log = xe_guc_log_snapshot_capture(&guc->log, true);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| xe_guc_ct_snapshot_capture
>> drivers/gpu/drm/xe/xe_guc_ct.c:1814:22: error: assignment to 'struct xe_guc_log_snapshot *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1814 | snapshot_log = xe_guc_log_snapshot_capture(&guc->log, true);
| ^
>> drivers/gpu/drm/xe/xe_guc_ct.c:1821:17: error: implicit declaration of function 'xe_guc_log_snapshot_free'; did you mean 'xe_guc_ct_snapshot_free'? [-Wimplicit-function-declaration]
1821 | xe_guc_log_snapshot_free(snapshot_log);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| xe_guc_ct_snapshot_free
drivers/gpu/drm/xe/xe_guc_ct.c: In function 'ct_dead_print':
>> drivers/gpu/drm/xe/xe_guc_ct.c:1840:33: error: implicit declaration of function 'drm_line_printer'; did you mean 'drm_info_printer'? [-Wimplicit-function-declaration]
1840 | struct drm_printer lp = drm_line_printer(&ip, "Capture", ++g_count);
| ^~~~~~~~~~~~~~~~
| drm_info_printer
>> drivers/gpu/drm/xe/xe_guc_ct.c:1840:33: error: invalid initializer
>> drivers/gpu/drm/xe/xe_guc_ct.c:1857:9: error: implicit declaration of function 'xe_guc_log_snapshot_print'; did you mean 'xe_guc_ct_snapshot_print'? [-Wimplicit-function-declaration]
1857 | xe_guc_log_snapshot_print(dead->snapshot_log, &lp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| xe_guc_ct_snapshot_print
vim +1814 drivers/gpu/drm/xe/xe_guc_ct.c
1785
1786 #if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
1787 static void ct_dead_capture(struct xe_guc_ct *ct, struct guc_ctb *ctb, u32 reason_code)
1788 {
1789 struct xe_guc_log_snapshot *snapshot_log;
1790 struct xe_guc_ct_snapshot *snapshot_ct;
1791 struct xe_guc *guc = ct_to_guc(ct);
1792 unsigned long flags;
1793 bool have_capture;
1794
1795 if (ctb)
1796 ctb->info.broken = true;
1797
1798 /* Ignore further errors after the first dump until a reset */
1799 if (ct->dead.reported)
1800 return;
1801
1802 spin_lock_irqsave(&ct->dead.lock, flags);
1803
1804 /* And only capture one dump at a time */
1805 have_capture = ct->dead.reason & (1 << CT_DEAD_STATE_CAPTURE);
1806 ct->dead.reason |= (1 << reason_code) |
1807 (1 << CT_DEAD_STATE_CAPTURE);
1808
1809 spin_unlock_irqrestore(&ct->dead.lock, flags);
1810
1811 if (have_capture)
1812 return;
1813
> 1814 snapshot_log = xe_guc_log_snapshot_capture(&guc->log, true);
1815 snapshot_ct = xe_guc_ct_snapshot_capture((ct), true);
1816
1817 spin_lock_irqsave(&ct->dead.lock, flags);
1818
1819 if (ct->dead.snapshot_log || ct->dead.snapshot_ct) {
1820 xe_gt_err(ct_to_gt(ct), "Got unexpected dead CT capture!\n");
> 1821 xe_guc_log_snapshot_free(snapshot_log);
1822 xe_guc_ct_snapshot_free(snapshot_ct);
1823 } else {
1824 ct->dead.snapshot_log = snapshot_log;
1825 ct->dead.snapshot_ct = snapshot_ct;
1826 }
1827
1828 spin_unlock_irqrestore(&ct->dead.lock, flags);
1829
1830 queue_work(system_unbound_wq, &(ct)->dead.worker);
1831 }
1832
1833 static void ct_dead_print(struct xe_dead_ct *dead)
1834 {
1835 struct xe_guc_ct *ct = container_of(dead, struct xe_guc_ct, dead);
1836 struct xe_device *xe = ct_to_xe(ct);
1837 struct xe_gt *gt = ct_to_gt(ct);
1838 static int g_count;
1839 struct drm_printer ip = xe_gt_info_printer(gt);
> 1840 struct drm_printer lp = drm_line_printer(&ip, "Capture", ++g_count);
1841
1842 if (!dead->reason) {
1843 xe_gt_err(gt, "CTB is dead for no reason!?\n");
1844 return;
1845 }
1846
1847 drm_printf(&lp, "CTB is dead - reason=0x%X\n", dead->reason);
1848
1849 /* Can't generate a genuine core dump at this point, so just do the good bits */
1850 drm_puts(&lp, "**** Xe Device Coredump ****\n");
1851 xe_device_snapshot_print(xe, &lp);
1852
1853 drm_printf(&lp, "**** GT #%d ****\n", gt->info.id);
1854 drm_printf(&lp, "\tTile: %d\n", gt->tile->id);
1855
1856 drm_puts(&lp, "**** GuC Log ****\n");
> 1857 xe_guc_log_snapshot_print(dead->snapshot_log, &lp);
1858
1859 drm_puts(&lp, "**** GuC CT ****\n");
1860 xe_guc_ct_snapshot_print(dead->snapshot_ct, &lp);
1861
1862 drm_puts(&lp, "Done.\n");
1863 }
1864
--
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:[~2025-11-01 9:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-01 9:41 [android-common:android16-6.12-kminext 0/1] drivers/gpu/drm/xe/xe_guc_ct.c:1814:24: error: implicit declaration of function 'xe_guc_log_snapshot_capture'; did you mean 'xe_guc_ct_snapshot_capture'? 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.