Shuicheng Lin
564467e9d0
drm/xe: Add config control for svm flush work
Without CONFIG_DRM_XE_GPUSVM set, GPU SVM is not initialized thus below
warning pops. Refine the flush work code to be controlled by the config
to avoid below warning:
"
[ 453.132028] ------------[ cut here ]------------
[ 453.132527] WARNING: CPU: 9 PID: 4491 at kernel/workqueue.c:4205 __flush_work+0x379/0x3a0
[ 453.133355] Modules linked in: xe drm_ttm_helper ttm gpu_sched drm_buddy drm_suballoc_helper drm_gpuvm drm_exec
[ 453.134352] CPU: 9 UID: 0 PID: 4491 Comm: xe_exec_mix_mod Tainted: G U W 6.15.0-rc3+ #7 PREEMPT(full)
[ 453.135405] Tainted: [U]=USER, [W]=WARN
...
[ 453.136921] RIP: 0010:__flush_work+0x379/0x3a0
[ 453.137417] Code: 8b 45 00 48 8b 55 08 89 c7 48 c1 e8 04 83 e7 08 83 e0 0f 83 cf 02 89 c6 48 0f ba 6d 00 03 e9 d5 fe ff ff 0f 0b e9 db fd ff ff <0f> 0b 45 31 e4 e9 d1 fd ff ff 0f 0b e9 03 ff ff ff 0f 0b e9 d6 fe
[ 453.139250] RSP: 0018:ffffc90000c67b18 EFLAGS: 00010246
[ 453.139782] RAX: 0000000000000000 RBX: ffff888108a24000 RCX: 0000000000002000
[ 453.140521] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff8881016d61c8
[ 453.141253] RBP: ffff8881016d61c8 R08: 0000000000000000 R09: 0000000000000000
[ 453.141985] R10: 0000000000000000 R11: 0000000008a24000 R12: 0000000000000001
[ 453.142709] R13: 0000000000000002 R14: 0000000000000000 R15: ffff888107db8c00
[ 453.143450] FS: 00007f44853d4c80(0000) GS:ffff8882f469b000(0000) knlGS:0000000000000000
[ 453.144276] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 453.144853] CR2: 00007f4487629228 CR3: 00000001016aa000 CR4: 00000000000406f0
[ 453.145594] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 453.146320] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 453.147061] Call Trace:
[ 453.147336] <TASK>
[ 453.147579] ? tick_nohz_tick_stopped+0xd/0x30
[ 453.148067] ? xas_load+0x9/0xb0
[ 453.148435] ? xa_load+0x6f/0xb0
[ 453.148781] __xe_vm_bind_ioctl+0xbd5/0x1500 [xe]
[ 453.149338] ? dev_printk_emit+0x48/0x70
[ 453.149762] ? _dev_printk+0x57/0x80
[ 453.150148] ? drm_ioctl+0x17c/0x440
[ 453.150544] ? __drm_dev_vprintk+0x36/0x90
[ 453.150983] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[ 453.151575] ? drm_ioctl_kernel+0x9f/0xf0
[ 453.151998] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[ 453.152560] drm_ioctl_kernel+0x9f/0xf0
[ 453.152968] drm_ioctl+0x20f/0x440
[ 453.153332] ? __pfx_xe_vm_bind_ioctl+0x10/0x10 [xe]
[ 453.153893] ? ioctl_has_perm.constprop.0.isra.0+0xae/0x100
[ 453.154489] ? memory_bm_test_bit+0x5/0x60
[ 453.154935] xe_drm_ioctl+0x47/0x70 [xe]
[ 453.155419] __x64_sys_ioctl+0x8d/0xc0
[ 453.155824] do_syscall_64+0x47/0x110
[ 453.156228] entry_SYSCALL_64_after_hwframe+0x76/0x7e
"
v2 (Matt):
refine commit message to have more details
add Fixes tag
move the code to xe_svm.h which already have the config
remove a blank line per codestyle suggestion
Fixes: 63f6e480d1 ("drm/xe: Add SVM garbage collector")
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250502170052.1787973-1-shuicheng.lin@intel.com
(cherry picked from commit 9d80698bcd)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
2025-05-08 13:57:52 -07:00
..
2025-03-05 09:54:24 +05:30
2025-03-07 11:36:07 +02:00
2025-03-12 20:56:58 -07:00
2025-04-07 13:16:07 -07:00
2025-03-25 20:51:29 -07:00
2025-05-08 12:44:34 -07:00
2025-03-25 20:54:59 -07:00
2025-01-09 17:58:09 +01:00
2025-01-17 15:25:52 +01:00
2025-03-11 10:26:17 +10:00
2025-01-09 17:58:09 +01:00
2025-01-09 17:58:09 +01:00
2024-11-22 19:10:23 -08:00
2025-03-06 11:35:56 -08:00
2025-03-11 10:26:17 +10:00
2025-03-28 17:44:52 -07:00
2025-02-14 10:08:16 -05:00
2024-12-02 15:50:44 -08:00
2025-02-24 13:31:35 -08:00
2025-02-03 12:56:52 -05:00
2025-02-25 14:29:06 -08:00
2025-04-07 11:00:10 +03:00
2025-03-25 20:54:59 -07:00
2025-02-25 14:29:06 -08:00
2025-04-17 18:53:38 -07:00
2025-02-20 13:49:08 +01:00
2024-12-05 12:35:42 +02:00
2025-05-01 09:36:48 -07:00
2025-05-01 09:36:48 -07:00
2025-03-05 09:54:24 +05:30
2025-03-06 12:16:35 +01:00
2025-02-03 11:51:18 -08:00
2025-02-03 11:51:23 -08:00
2025-04-05 10:30:12 +02:00
2025-02-27 11:01:15 -08:00
2025-01-09 17:58:09 +01:00
2025-02-12 11:59:52 +01:00
2025-05-08 12:44:41 -07:00
2025-05-08 12:44:41 -07:00
2025-02-14 11:42:55 -08:00
2025-05-08 12:44:41 -07:00
2025-05-08 12:44:41 -07:00
2025-01-15 11:32:50 +01:00
2025-03-25 20:51:29 -07:00
2025-05-08 12:44:51 -07:00
2025-01-08 15:49:21 -05:00
2025-01-14 07:02:49 -08:00
2025-01-14 07:02:49 -08:00
2025-01-14 07:02:49 -08:00
2025-01-27 12:25:19 -08:00
2025-01-15 11:32:50 +01:00
2025-05-08 12:44:20 -07:00
2024-12-11 07:28:08 -08:00
2025-02-16 21:36:38 +01:00
2025-02-16 21:36:38 +01:00
2025-01-27 19:53:59 +01:00
2025-02-26 13:29:42 -08:00
2025-01-27 20:34:18 +01:00
2025-02-16 21:36:38 +01:00
2025-02-03 12:56:39 -05:00
2025-02-28 10:20:35 +01:00
2025-02-04 15:31:45 +01:00
2025-02-26 11:01:00 +01:00
2025-02-26 11:01:00 +01:00
2024-11-15 15:59:51 -08:00
2024-12-02 12:07:28 -05:00
2025-04-07 13:16:07 -07:00
2025-03-06 11:35:38 -08:00
2025-01-15 12:39:22 -08:00
2025-02-26 11:30:56 -08:00
2025-03-25 20:51:29 -07:00
2025-05-08 12:44:41 -07:00
2025-02-14 11:42:55 -08:00
2025-04-17 18:53:38 -07:00
2025-01-19 00:12:03 +01:00
2025-01-21 22:01:28 +01:00
2025-01-19 00:12:03 +01:00
2025-01-09 17:58:09 +01:00
2025-04-28 22:18:27 -07:00
2024-11-14 06:38:46 -08:00
2025-02-18 15:53:01 -05:00
2025-02-11 19:41:30 -08:00
2025-02-24 12:32:10 -08:00
2025-02-24 12:32:10 -08:00
2025-02-24 12:32:10 -08:00
2025-02-24 12:32:09 -08:00
2025-02-18 15:53:01 -05:00
2025-01-08 15:49:21 -05:00
2025-04-07 14:00:27 -07:00
2025-01-15 14:12:52 -05:00
2025-02-04 15:05:49 +01:00
2025-03-28 17:44:52 -07:00
2025-02-24 12:32:09 -08:00
2025-03-12 20:52:47 -07:00
2025-02-26 08:29:30 -08:00
2025-02-25 14:32:03 -08:00
2025-04-17 18:53:38 -07:00
2025-03-05 14:25:27 -05:00
2025-04-07 13:16:07 -07:00
2025-03-06 12:16:35 +01:00
2025-01-03 12:43:02 -08:00
2025-04-07 13:16:07 -07:00
2024-11-14 06:38:46 -08:00
2025-01-03 12:43:02 -08:00
2025-02-14 11:42:55 -08:00
2025-02-14 11:42:55 -08:00
2025-02-17 09:22:30 -05:00
2024-12-13 13:38:13 -05:00
2025-02-10 11:10:14 +01:00
2025-02-03 11:51:18 -08:00
2025-02-03 11:51:18 -08:00
2024-12-05 07:37:53 -08:00
2025-04-07 13:16:07 -07:00
2025-03-06 11:35:53 -08:00
2025-02-18 08:27:11 -08:00
2025-02-18 08:27:11 -08:00
2025-03-12 20:55:14 -07:00
2025-03-06 11:36:57 -08:00
2025-03-06 11:36:57 -08:00
2024-12-23 19:10:43 -08:00
2025-03-28 17:44:52 -07:00
2025-02-14 11:42:55 -08:00
2025-02-28 06:54:14 -08:00
2025-02-28 10:20:34 +01:00
2025-03-05 12:17:00 -08:00
2025-03-25 20:54:59 -07:00
2025-01-28 08:58:45 -05:00
2025-01-09 17:58:09 +01:00
2025-03-28 17:44:52 -07:00
2025-01-27 08:55:04 -08:00
2025-02-24 13:24:32 -08:00
2025-01-27 08:54:06 -08:00
2025-03-06 11:35:43 -08:00
2025-03-05 14:25:11 -05:00
2025-03-05 14:25:11 -05:00
2025-03-06 11:36:57 -08:00
2025-03-06 11:35:40 -08:00
2025-04-17 18:53:38 -07:00
2025-02-03 11:51:28 -08:00
2025-02-11 13:17:48 -08:00
2025-02-03 11:51:15 -08:00
2025-02-03 11:51:26 -08:00
2025-03-11 12:15:49 +10:00
2025-03-03 12:16:04 +02:00
2025-03-06 11:35:52 -08:00
2024-12-12 16:57:28 +01:00
2024-12-12 16:57:28 +01:00
2025-03-12 20:54:17 -07:00
2025-03-06 11:35:37 -08:00
2025-04-07 13:16:07 -07:00
2025-03-12 20:54:17 -07:00
2025-03-12 20:54:17 -07:00
2025-01-19 00:12:00 +01:00
2025-01-19 00:12:02 +01:00
2025-02-17 10:52:01 +05:30
2025-03-05 17:08:59 +01:00
2025-03-05 17:08:59 +01:00
2025-01-19 00:39:45 +01:00
2025-01-28 08:58:45 -05:00
2025-03-25 20:54:59 -07:00
2025-03-25 20:54:59 -07:00
2025-05-08 13:57:52 -07:00
2025-05-08 13:57:52 -07:00
2025-02-21 13:02:54 +05:30
2025-03-06 11:35:54 -08:00
2025-01-21 14:59:38 +01:00
2025-01-17 00:00:59 +05:30
2025-02-24 12:32:09 -08:00
2025-02-26 11:31:01 -08:00
2025-02-14 11:42:54 -08:00
2025-02-14 11:42:54 -08:00
2025-03-05 17:08:59 +01:00
2025-02-10 13:08:59 +01:00
2025-02-10 13:08:59 +01:00
2025-03-12 20:54:17 -07:00
2025-02-28 21:47:33 -08:00
2025-01-09 17:58:09 +01:00
2025-05-08 12:44:41 -07:00
2025-05-08 12:44:41 -07:00
2025-01-17 00:01:58 +05:30
2025-03-06 11:35:47 -08:00
2025-05-08 13:57:52 -07:00
2025-03-06 11:35:47 -08:00
2024-12-09 09:59:47 -05:00
2024-12-03 15:02:55 -05:00
2025-04-07 13:16:07 -07:00
2025-03-25 20:51:29 -07:00