mm: add cma debug interafce [1/1]
authortao zeng <tao.zeng@amlogic.com>
Tue, 27 Nov 2018 04:26:53 +0000 (12:26 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 14 Jan 2019 02:30:35 +0000 (18:30 -0800)
commit54213b948bfd2f29f3f5e60504fae4509946ea85
tree984f5a6e2e956ec1be71d3f10d2a82085d145c58
parent6b2706f5847634d667b98aa48846344dea33e6bd
mm: add cma debug interafce [1/1]

PD#GH-17

Problem:
sometimes cma allocation failed but it's hard to get
failed log and need recompile code.

Solution:
Add /proc/cma_debug to open cma debug message dynamic.
By default, no debug message is printed. If you write a
value large than 0 to this node, debug message will be
printed.

Verify:
p212

Change-Id: Ibcfd1d48be5f33f674f09df713dc2e493748c405
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
drivers/amlogic/memory_ext/aml_cma.c
include/linux/amlogic/aml_cma.h
mm/cma.c
mm/compaction.c
mm/migrate.c