Chris Wilson
2328e1b35a
drm/i915/selftests: Reorder tasklet_disable vs local_bh_disable
Due to a change in requirements that disallows tasklet_disable() being
called from atomic context, rearrange the selftest to avoid doing so.
<3> [324.942939] BUG: sleeping function called from invalid context at kernel/softirq.c:888
<3> [324.942952] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5601, name: i915_selftest
<4> [324.942960] 1 lock held by i915_selftest/5601:
<4> [324.942963] #0: ffff888101d19240 (&dev->mutex){....}-{3:3}, at: device_driver_attach+0x18/0x50
<3> [324.942987] Preemption disabled at:
<3> [324.942990] [<ffffffffa026fbd2>] live_hold_reset.part.65+0xc2/0x2f0 [i915]
<4> [324.943255] CPU: 0 PID: 5601 Comm: i915_selftest Tainted: G U 5.13.0-rc5-CI-CI_DRM_10197+ #1
<4> [324.943259] Hardware name: Intel Corp. Geminilake/GLK RVP2 LP4SD (07), BIOS GELKRVPA.X64.0062.B30.1708222146 08/22/2017
<4> [324.943263] Call Trace:
<4> [324.943267] dump_stack+0x7f/0xad
<4> [324.943276] ___might_sleep.cold.123+0xf2/0x106
<4> [324.943286] tasklet_unlock_wait+0x2e/0xb0
<4> [324.943291] ? ktime_get_raw+0x81/0x120
<4> [324.943305] live_hold_reset.part.65+0x1ab/0x2f0 [i915]
<4> [324.943500] __i915_subtests.cold.7+0x42/0x92 [i915]
<4> [324.943723] ? __i915_live_teardown+0x50/0x50 [i915]
<4> [324.943922] ? __intel_gt_live_setup+0x30/0x30 [i915]
Fixes: da04474740 ("tasklets: Replace spin wait in tasklet_unlock_wait()")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210611060838.647973-1-thomas.hellstrom@linux.intel.com
(cherry picked from commit 35c6367f51)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2021-06-15 04:37:14 -04:00
..
2021-04-26 11:20:10 -07:00
2021-05-15 08:32:51 -07:00
2021-05-13 20:35:26 +02:00
2021-05-05 13:24:11 -07:00
2021-05-07 16:01:08 -07:00
2021-05-07 00:26:34 -07:00
2021-05-16 10:13:14 -07:00
2021-04-18 09:36:56 +03:00
2021-05-15 08:52:30 -07:00
2021-04-29 11:57:23 -07:00
2021-04-26 12:11:52 -07:00
2021-05-13 18:58:44 +02:00
2021-05-20 06:31:52 -10:00
2021-05-11 08:47:25 +02:00
2021-05-14 14:55:13 +02:00
2021-04-15 09:26:25 +02:00
2021-05-15 10:24:48 -07:00
2021-04-08 20:05:49 +02:00
2021-05-13 17:23:05 +02:00
2021-04-16 18:21:56 -07:00
2021-04-08 13:14:51 +09:00
2021-05-13 18:32:29 +02:00
2021-06-06 11:19:51 +02:00
2021-05-10 07:51:38 +02:00
2021-04-28 15:59:13 -07:00
2021-04-26 09:43:16 -07:00
2021-05-20 14:46:26 -10:00
2021-04-26 12:11:52 -07:00
2021-05-12 13:56:43 +02:00
2021-06-15 04:37:14 -04:00
2021-04-16 07:26:50 +02:00
2021-04-29 21:47:22 +02:00
2021-04-16 00:14:49 +02:00
2021-04-27 18:09:44 -07:00
2021-05-20 06:31:52 -10:00
2021-05-01 10:14:08 -07:00
2021-04-30 13:01:02 -07:00
2021-04-24 22:21:01 +02:00
2021-04-08 19:18:07 +02:00
2021-05-10 14:01:48 +01:00
2021-06-07 15:41:50 +02:00
2021-05-06 23:37:55 -07:00
2021-04-27 10:16:46 -07:00
2021-05-05 13:24:11 -07:00
2021-05-16 13:07:18 +01:00
2021-05-13 18:32:23 +02:00
2021-05-13 17:30:15 +02:00
2021-04-13 09:16:12 -06:00
2021-04-16 23:57:51 +10:00
2021-04-28 16:10:33 -07:00
2021-05-13 14:53:49 -04:00
2021-05-13 18:58:32 +02:00
2021-05-02 00:43:35 +09:00
2021-04-26 11:08:23 +02:00
2021-04-13 01:39:12 -04:00
2021-04-28 15:59:13 -07:00
2021-05-20 06:40:20 -10:00
2021-05-10 14:39:06 +02:00
2021-04-26 11:14:21 -07:00
2021-05-04 18:08:40 -07:00
2021-04-02 16:28:53 +02:00
2021-05-13 18:58:42 +02:00
2021-04-13 14:50:57 -07:00
2021-05-06 19:24:11 -07:00
2021-05-19 08:40:24 +02:00
2021-04-02 16:28:10 +02:00
2021-05-03 13:57:56 -05:00
2021-05-07 00:26:34 -07:00
2021-05-19 23:50:27 -04:00
2021-05-01 10:14:08 -07:00
2021-04-29 11:57:23 -07:00
2021-05-09 00:29:45 +09:00
2021-05-20 14:11:03 +02:00
2021-04-28 15:43:58 -07:00
2021-04-26 11:20:10 -07:00
2021-05-01 10:14:08 -07:00
2021-05-05 12:53:16 -07:00
2021-05-13 18:32:19 +02:00
2021-04-07 11:52:26 +02:00
2021-04-28 15:59:13 -07:00
2021-05-04 11:13:33 -07:00
2021-05-05 13:24:11 -07:00
2021-04-09 11:08:42 -05:00
2021-05-03 12:15:21 -07:00
2021-05-07 11:35:12 -07:00
2021-05-20 14:41:35 -10:00
2021-04-26 09:43:16 -07:00
2021-05-01 09:33:00 -07:00
2021-04-06 10:26:44 +05:30
2021-04-30 12:48:14 -07:00
2021-05-10 14:26:24 +02:00
2021-05-08 10:44:36 -07:00
2021-05-17 16:06:02 +02:00
2021-05-05 12:46:48 -07:00
2021-04-13 12:17:14 +02:00
2021-05-20 06:31:52 -10:00
2021-05-14 13:26:04 +02:00
2021-05-16 10:13:14 -07:00
2021-05-03 04:55:54 -04:00
2021-05-01 09:33:00 -07:00
2021-05-05 13:31:39 -07:00
2021-06-03 10:32:49 +02:00
2021-04-29 19:06:49 +02:00
2021-05-04 04:19:59 -04:00
2021-04-10 10:58:21 +02:00
2021-04-28 15:59:13 -07:00
2021-05-21 09:55:16 +02:00
2021-04-15 09:26:25 +02:00
2021-05-05 13:31:39 -07:00