Tao Zeng
38a37f0acc
sched: change sleep api for __migration_entry_wait [1/1]
...
PD#TV-7519
Problem:
schedule_timeout did not really make task sleep. It will cause
rt thread bug when this thread is waiting for a cma page migrated:
sched: RT throttling activated for rt_rq eaf671b8 (cpu 1)
potential CPU hogs:
btu message loo (4253)
[<c037d5b8>] task_tick_rt+0x0/0x120
[<c037d914>] pick_next_task_rt+0x1cc/0x1e4
[<c0fa8534>] __schedule+0x598/0x91c
[<c0fa891c>] schedule+0x64/0xc4
[<c0fac134>] schedule_timeout+0x1dc/0x47c
[<c0493ba4>] __migration_entry_wait+0x168/0x194
~~~~~blocked here
[<c0493c20>] migration_entry_wait+0x50/0x54
[<c0473008>] do_swap_page+0x404/0x4e8
[<c047357c>] handle_mm_fault+0x1ec/0xa60
[<c031a2f0>] do_page_fault+0x2d4/0x3a8
[<c0301408>] do_PrefetchAbort+0x48/0xb0
[<c030f78c>] ret_from_exception+0x0/0x34
Solution:
using usleep_range instead of schedule_timeout
Verify:
t905x
Change-Id: I908022b747ad921b5863af377291abdf06672f15
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com >
2019-07-14 19:53:55 -07:00
..
2019-05-09 02:46:38 -07:00
2017-02-26 11:10:52 +01:00
2016-07-26 16:19:19 -07:00
2016-10-11 15:06:33 -07:00
2016-01-27 09:09:57 -05:00
2019-06-19 22:50:16 -07:00
2018-11-05 05:36:36 -07:00
2019-06-19 22:50:16 -07:00
2016-03-17 15:09:34 -07:00
2016-10-07 18:46:29 -07:00
2016-03-17 15:09:34 -07:00
2018-02-25 11:05:49 +01:00
2018-05-30 07:50:23 +02:00
2016-03-15 16:55:16 -07:00
2018-04-24 11:26:46 +02:00
2018-02-28 10:18:34 +01:00
2016-07-26 16:19:19 -07:00
2018-05-19 10:27:00 +02:00
2016-05-19 19:12:14 -07:00
2018-05-30 07:50:38 +02:00
2016-05-20 17:58:30 -07:00
2018-07-11 16:26:43 +02:00
2015-09-10 13:29:01 -07:00
2017-01-06 10:40:13 +01:00
2018-04-24 17:43:19 +08:00
2018-05-22 16:57:57 +02:00
2016-09-13 02:35:27 +02:00
2018-05-30 07:50:38 +02:00
2016-03-17 15:09:34 -07:00
2016-03-17 15:09:34 -07:00
2018-05-30 07:50:39 +02:00
2019-06-19 22:50:16 -07:00
2017-07-21 07:42:21 +02:00
2016-05-22 17:21:27 -07:00
2017-12-05 11:34:59 +01:00
2016-10-12 10:23:41 -07:00
2017-08-30 10:21:47 +02:00
2018-01-31 12:55:51 +01:00
2017-10-21 17:21:36 +02:00
2018-03-24 11:00:21 +01:00
2019-06-19 22:50:16 -07:00
2018-05-30 13:19:56 +02:00
2016-07-28 16:07:41 -07:00
2015-09-08 15:35:28 -07:00
2019-07-14 19:53:55 -07:00
2016-10-07 18:46:28 -07:00
2017-06-07 12:37:47 +02:00
2016-03-17 15:09:34 -07:00
2018-06-13 16:37:10 +02:00
2016-04-28 11:44:19 +02:00
2016-03-17 15:09:34 -07:00
2018-04-17 17:58:08 -08:00
2017-08-11 13:55:02 -07:00
2017-08-11 08:49:29 -07:00
2015-11-05 19:34:48 -08:00
2017-08-24 17:12:19 -07:00
2017-01-06 10:40:13 +01:00
2017-12-09 22:01:47 +01:00
2019-06-19 22:50:16 -07:00
2015-11-05 19:34:48 -08:00
2016-10-07 18:46:27 -07:00
2016-07-28 16:07:41 -07:00
2016-10-07 18:46:29 -07:00
2018-03-05 15:34:36 +08:00
2016-10-07 18:46:27 -07:00
2016-06-03 15:06:22 -07:00
2018-04-24 09:34:18 +02:00
2017-11-24 08:33:42 +01:00
2016-03-17 15:09:34 -07:00
2018-05-09 09:50:18 +02:00
2016-03-17 15:09:34 -07:00
2016-10-18 14:13:37 -07:00
2016-03-17 15:09:34 -07:00
2018-04-24 17:43:19 +08:00
2017-08-11 08:49:29 -07:00
2019-06-19 22:50:16 -07:00
2019-03-20 00:02:39 -08:00
2018-04-24 09:34:09 +02:00
2017-03-22 12:43:38 +01:00
2017-03-22 12:43:38 +01:00
2018-12-25 17:56:28 -08:00
2016-08-02 17:31:41 -04:00
2017-10-21 17:21:36 +02:00
2017-07-05 14:40:17 +02:00
2019-06-19 22:50:16 -07:00
2018-04-17 17:58:08 -08:00
2018-05-30 07:50:40 +02:00
2017-06-14 15:06:00 +02:00
2016-09-20 16:07:39 -07:00
2016-04-04 10:41:08 -07:00
2018-02-25 11:05:41 +01:00
2016-10-07 18:46:27 -07:00
2019-06-17 22:36:36 -07:00
2017-03-12 06:41:43 +01:00
2019-06-19 22:50:16 -07:00
2018-05-21 00:21:18 -07:00
2017-04-08 09:30:36 +02:00
2016-06-03 16:02:55 -07:00
2016-01-15 11:40:52 -08:00
2015-11-06 17:50:42 -08:00
2017-12-14 09:28:23 +01:00
2018-01-17 09:38:52 +01:00