Tao Zeng
0313e6ddde
mm: subtract CMA isolated pages when allocate TVP [1/1]
PD#SWPL-2933
Problem:
When allocate CMA pages in buildroot enverioment, system will
hung in congestion_wait:
Call trace:
[<ffffff8009086a78>] __switch_to+0xa0/0xc8
[<ffffff8009de3eb8>] __schedule+0x268/0x7d8
[<ffffff8009de4464>] schedule+0x3c/0xa0
[<ffffff8009de7c9c>] schedule_timeout+0x1b4/0x448
[<ffffff8009de3be8>] io_schedule_timeout+0x98/0x100
[<ffffff80091e3fb8>] congestion_wait+0x90/0x190
[<ffffff80091ebcf4>] isolate_migratepages_block+0x7ec/0x890
[<ffffff80091ec794>] isolate_migratepages_range+0x8c/0x100
[<ffffff8009a8f34c>] aml_alloc_contig_migrate_range+0x104/0x158
[<ffffff8009a8f518>] cma_boost_work_func+0x178/0x270
[<ffffff80090cc228>] kthread+0xf8/0x110
[<ffffff80090836c0>] ret_from_fork+0x10/0x50
Solution:
subtract isolated CMA pages when allocation large CMA for TVP.
Verify:
local
Change-Id: I96153cf104abb009a8965c2230a5242e495dd031
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2018-12-07 00:42:34 -08:00
..
2018-05-30 13:19:56 +02: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
2018-11-07 19:09:34 -07:00
2018-11-05 05:36:36 -07:00
2018-12-07 00:42:34 -08: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
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
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
2018-05-30 07:50:41 +02: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
2018-02-28 10:18:33 +01:00
2018-05-30 13:19:56 +02:00
2016-07-28 16:07:41 -07:00
2017-08-24 17:12:21 -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
2017-08-24 17:12:19 -07:00
2017-01-06 10:40:13 +01:00
2017-12-09 22:01:47 +01:00
2018-11-01 10:18:16 +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
2018-03-29 11:32:39 +02:00
2018-03-05 15:34:36 +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
2017-06-07 12:07:49 +02: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
2016-10-07 18:46:28 -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
2018-12-06 02:57:50 -08:00
2017-03-12 06:41:43 +01:00
2018-10-23 01:28:09 -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
2017-12-14 09:28:23 +01:00
2018-01-17 09:38:52 +01:00