Files
linux/mm
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
2018-04-24 11:26:46 +02:00
2018-05-30 07:50:41 +02:00
2017-12-05 11:34:59 +01:00
2018-05-30 13:19:56 +02:00
2017-06-07 12:37:47 +02:00
2018-06-13 16:37:10 +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-24 17:12:19 -07:00
2018-04-24 09:34:18 +02:00
2016-03-17 15:09:34 -07:00
2018-03-29 11:32:39 +02:00
2018-04-17 17:58:08 -08:00
2017-06-14 15:06:00 +02:00
2016-10-07 18:46:27 -07:00