Matthew Auld
a7ce8f821c
drm/i915: consider min_page_size when migrating
We can only force migrate an object if the existing object size is
compatible with the new destinations min_page_size for the region.
Currently we blow up with something like:
[ 2857.497462] kernel BUG at drivers/gpu/drm/i915/gt/intel_migrate.c:431!
[ 2857.497497] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 2857.497502] CPU: 1 PID: 8921 Comm: i915_selftest Tainted: G U W 5.18.0-rc1-drm-tip+ #27
[ 2857.497513] RIP: 0010:emit_pte.cold+0x11a/0x17e [i915]
[ 2857.497646] Code: 00 48 c7 c2 f0 cd c1 a0 48 c7 c7 e9 99 bd a0 e8 d2 77 5d e0 bf 01 00 00 00 e8 08 47 5d e0 31 f6 bf 09 00 00 00 e8 3c 7b 4d e0 <0f> 0b 48 c7 c1 e0 2a c5 a0 ba 34 00 00 00 48 c7 c6 00 ce c1 a0 48
[ 2857.497654] RSP: 0018:ffffc900000f7748 EFLAGS: 00010246
[ 2857.497658] RAX: 0000000000000000 RBX: ffffc900000f77c8 RCX: 0000000000000006
[ 2857.497662] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000009
[ 2857.497665] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
[ 2857.497668] R10: 0000000000022302 R11: ffff88846dea08f0 R12: 0000000000010000
[ 2857.497672] R13: 0000000001880000 R14: 000000000000081b R15: ffff888106b7c040
[ 2857.497675] FS: 00007f0d4c4e0600(0000) GS:ffff88845da80000(0000) knlGS:0000000000000000
[ 2857.497679] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2857.497682] CR2: 00007f113966c088 CR3: 0000000211e60003 CR4: 00000000003706e0
[ 2857.497686] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2857.497689] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2857.497692] Call Trace:
[ 2857.497694] <TASK>
[ 2857.497697] intel_context_migrate_copy+0x1e5/0x4f0 [i915]
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Nirmoy Das <nirmoy.das@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220420181613.70033-1-matthew.auld@intel.com
2022-04-21 10:10:34 +01:00
..
2022-04-08 19:50:44 +02:00
2022-04-06 11:08:04 +09:00
2022-03-17 13:56:58 -07:00
2022-03-18 20:31:14 +01:00
2022-03-29 11:30:12 -07:00
2022-03-25 13:35:34 -07:00
2022-04-06 13:07:53 -06:00
2022-03-18 17:12:09 +01:00
2022-03-28 12:27:35 -07:00
2022-04-06 08:47:52 -06:00
2022-04-07 01:36:37 +02:00
2022-04-03 12:21:14 -07:00
2022-03-23 18:03:08 -07:00
2022-03-28 12:27:35 -07:00
2022-03-22 12:15:47 +01:00
2022-03-30 16:17:54 -07:00
2022-03-31 13:57:15 -07:00
2022-04-08 12:59:43 -07:00
2022-03-24 18:12:09 -07:00
2022-03-30 10:54:49 -07:00
2022-04-12 17:44:27 +10:00
2022-03-21 10:34:57 +01:00
2022-04-05 11:06:58 +02:00
2022-04-04 14:41:34 +02:00
2022-04-21 10:10:34 +01:00
2022-04-01 10:14:32 -07:00
2022-04-07 06:35:34 -10:00
2022-03-28 12:27:35 -07:00
2022-03-11 14:56:57 -06:00
2022-03-28 12:27:35 -07:00
2022-03-26 12:46:08 -07:00
2022-03-08 22:33:52 +01:00
2022-03-17 14:32:59 +01:00
2022-03-28 12:27:35 -07:00
2022-04-12 17:44:27 +10:00
2022-04-01 10:14:32 -07:00
2022-04-08 11:16:29 +02:00
2022-04-05 16:33:47 +01:00
2022-03-21 13:26:38 +00:00
2022-03-27 14:09:48 -07:00
2022-03-12 19:33:30 -06:00
2022-04-01 15:57:27 -07:00
2022-03-24 16:19:43 -07:00
2022-03-23 18:23:13 -07:00
2022-04-06 22:28:07 -04:00
2022-03-25 13:56:18 -07:00
2022-04-04 17:03:04 +02:00
2022-04-08 11:00:08 +02:00
2022-03-31 16:09:41 -07:00
2022-04-08 06:37:11 -10:00
2022-03-21 18:33:57 -07:00
2022-03-30 10:04:11 -07:00
2022-04-01 16:26:57 -07:00
2022-03-18 14:08:36 +01:00
2022-03-28 12:27:35 -07:00
2022-03-29 21:37:12 +02:00
2022-03-18 14:01:41 +01:00
2022-04-07 06:35:34 -10:00
2022-04-08 14:17:57 +01:00
2022-03-29 08:45:16 -07:00
2022-03-28 11:52:53 -07:00
2022-04-02 10:44:18 -07:00
2022-03-21 14:46:01 -07:00
2022-03-28 12:41:28 -07:00
2022-03-18 14:01:19 +01:00
2022-03-30 12:08:11 -07:00
2022-04-04 08:59:43 +01:00
2022-03-30 10:50:48 -07:00
2022-03-13 11:49:53 -05:00
2022-04-01 09:37:18 -07:00
2022-03-27 22:18:39 +02:00
2022-04-06 22:58:17 -04:00
2022-03-24 13:13:26 -07:00
2022-03-28 12:27:35 -07:00
2022-04-08 18:23:02 -10:00
2022-04-04 16:35:20 +02:00
2022-04-06 21:46:54 -04:00
2022-03-23 18:23:13 -07:00
2022-03-18 19:00:26 +01:00
2022-03-28 12:27:35 -07:00
2022-04-04 10:33:02 +02:00
2022-03-28 14:32:39 -07:00
2022-04-05 10:40:52 -07:00
2022-03-15 11:41:32 -06:00
2022-03-31 13:57:15 -07:00
2022-04-12 17:44:27 +10:00
2022-03-31 14:51:34 -07:00
2022-04-05 10:40:52 -07:00
2022-03-18 14:07:09 +01:00
2022-03-31 14:14:03 -07:00
2022-03-25 14:22:15 -05:00