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
2024-05-09 21:28:25 +02:00
2024-11-05 05:59:01 -08: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-08-09 21:15:14 -07: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
2024-04-18 13:30:24 -07: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
2024-08-28 14:50:13 -04:00
2025-04-05 10:30:12 +02:00
2024-10-17 10:17:07 -04:00
2024-11-04 14:25:33 +10:00
2024-10-17 10:17:10 -04:00
2025-02-27 11:01:15 -08:00
2024-08-22 14:00:45 -04:00
2025-01-09 17:58:09 +01:00
2024-08-22 14:00:45 -04:00
2025-02-12 11:59:52 +01:00
2024-11-12 10:33:30 +01:00
2024-08-29 10:32:20 -07:00
2024-08-29 10:32:20 -07:00
2025-05-08 12:44:41 -07:00
2025-05-08 12:44:41 -07:00
2024-05-07 23:21:15 +02:00
2024-03-06 09:50:49 +02: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
2024-04-24 10:19:52 -05:00
2025-03-25 20:51:29 -07:00
2024-06-12 19:10:22 -07:00
2025-05-08 12:44:51 -07:00
2024-03-29 14:00:06 +01:00
2025-01-08 15:49:21 -05:00
2024-04-18 13:26:34 -07: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
2024-11-08 13:31:15 +01:00
2025-02-16 21:36:38 +01:00
2025-02-16 21:36:38 +01:00
2024-09-16 13:00:31 +02:00
2024-09-16 13:00:31 +02:00
2024-08-30 10:51:09 +02:00
2024-11-08 13:31:17 +01:00
2024-04-24 15:18:38 +02:00
2024-11-05 05:59:01 -08:00
2024-09-16 13:00:22 +02:00
2024-09-16 13:00:39 +02:00
2024-09-16 13:00:39 +02:00
2024-05-16 18:04:51 +02:00
2024-05-16 18:04:51 +02:00
2024-05-16 18:04:51 +02:00
2024-04-12 16:23:37 +02:00
2025-01-27 19:53:59 +01:00
2024-04-12 16:23:37 +02:00
2024-04-24 15:10:42 +02:00
2025-02-26 13:29:42 -08:00
2024-04-24 15:10:42 +02: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
2024-01-05 16:25:53 +01:00
2024-09-06 16:32:49 +03:00
2024-05-16 20:18:39 +02:00
2024-05-24 10:08:41 +02: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-10-03 01:13:54 -05:00
2024-04-18 13:26:34 -07:00
2024-12-02 12:07:28 -05:00
2024-05-23 10:55:28 -07:00
2024-08-15 09:44:22 -04: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
2024-10-08 09:34:04 -07:00
2025-04-17 18:53:38 -07:00
2024-05-13 21:36:50 +02: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
2024-10-07 18:35:00 -07:00
2025-02-18 15:53:01 -05:00
2024-10-29 13:11:34 -07:00
2024-04-24 18:18:02 +02: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
2024-08-16 11:07:13 -07:00
2024-08-16 11:07:13 -07:00
2024-01-05 16:25:53 +01:00
2024-07-02 18:33:19 +02:00
2024-03-27 20:19:25 +01:00
2024-11-08 13:31:14 +01:00
2024-05-16 18:04:38 +02:00
2024-05-16 18:04:39 +02:00
2024-10-07 12:58:38 +02:00
2024-10-29 13:11:33 -07:00
2025-02-18 15:53:01 -05:00
2024-10-08 09:34:45 -07: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
2024-01-05 16:25:53 +01:00
2025-02-04 15:05:49 +01:00
2024-01-05 16:25:53 +01:00
2024-03-04 12:23:12 +01:00
2025-03-28 17:44:52 -07:00
2024-10-08 09:34:45 -07:00
2025-02-24 12:32:09 -08:00
2025-03-12 20:52:47 -07:00
2024-10-08 09:34:04 -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
2024-02-26 09:06:45 -05:00
2024-10-17 10:17:09 -04:00
2024-05-22 12:03:55 +02:00
2025-04-07 13:16:07 -07:00
2024-02-26 09:06:45 -05:00
2024-08-17 18:31:47 -07:00
2025-03-06 12:16:35 +01:00
2024-08-17 18:31:57 -07: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
2024-08-21 11:53:12 -04:00
2024-05-27 21:26:02 +02: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
2024-05-29 23:44:41 -07:00
2025-02-03 11:51:18 -08:00
2025-02-03 11:51:18 -08:00
2024-11-04 23:24:26 -08:00
2024-09-19 10:14:20 +02:00
2024-12-05 07:37:53 -08:00
2024-09-19 10:15:40 +02: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
2024-05-07 12:03:49 +02: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
2024-07-11 09:54:24 -04:00
2024-10-17 10:17:09 -04:00
2025-02-28 10:20:34 +01:00
2024-07-01 18:01:31 +02: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
2024-09-03 10:36:46 -04:00
2024-10-08 09:19:50 -07:00
2025-03-28 17:44:52 -07:00
2024-09-04 09:28:09 +02: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
2024-08-19 10:39:28 -04:00
2024-08-27 14:09:45 +02: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-02-15 09:53:38 +01:00
2024-12-12 16:57:28 +01:00
2024-12-12 16:57:28 +01:00
2024-05-13 21:36:52 +02: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
2024-07-29 11:19:40 -07:00
2024-06-18 12:03:29 -07:00
2025-03-12 20:54:17 -07:00
2025-03-12 20:54:17 -07:00
2024-08-23 09:54:32 -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
2024-10-23 11:06:31 -07:00
2024-06-14 16:51:43 -04:00
2025-03-05 17:08:59 +01:00
2025-03-05 17:08:59 +01:00
2024-11-05 05:59:01 -08:00
2024-04-12 16:23:26 +02:00
2024-04-12 16:23:26 +02:00
2024-11-06 14:53:35 +01:00
2024-11-06 15:25:30 +01:00
2024-11-06 14:53:35 +01:00
2025-01-19 00:39:45 +01:00
2024-06-18 10:51:59 +02:00
2024-08-22 15:48:21 +03:00
2024-08-22 15:48:21 +03: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
2024-02-29 10:39:02 +01:00
2025-02-21 13:02:54 +05:30
2024-07-18 10:17:30 -07:00
2024-05-22 13:22:38 +01:00
2024-04-18 13:30:17 -07:00
2025-03-06 11:35:54 -08:00
2025-01-21 14:59:38 +01:00
2024-06-12 09:25:07 -07:00
2025-01-17 00:00:59 +05:30
2024-06-12 09:25:10 -07:00
2025-02-24 12:32:09 -08:00
2024-11-05 13:38:46 -08:00
2024-11-05 13:38:46 -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
2024-04-16 12:37:31 +02:00
2025-03-12 20:54:17 -07:00
2025-02-28 21:47:33 -08:00
2024-08-29 10:32:20 -07:00
2025-01-09 17:58:09 +01:00
2024-10-03 08:58:26 -04:00
2024-09-03 10:36:38 -04: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-09-03 10:36:46 -04:00
2024-04-18 13:30:17 -07:00
2024-10-17 10:17:09 -04:00
2024-05-30 23:50:28 +02: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
2024-07-24 09:05:37 -07:00
2024-11-04 08:12:30 -08:00
2024-01-23 16:54:41 +01:00
2024-10-03 08:58:26 -04:00