drm/rockchip: add mm dump debugfs
authorMark Yao <mark.yao@rock-chips.com>
Tue, 3 Jan 2017 03:50:55 +0000 (11:50 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 06:26:12 +0000 (14:26 +0800)
commit8b1aea0325cb4688645e20c818973757fbaa508d
tree1ebcfc832f048e68752c2533771f7d3244eb7adf
parent1316b694c4fe70d21f8d7735dbca2796654a74f1
drm/rockchip: add mm dump debugfs

shell# cat /sys/kernel/debug/dri/0/mm_dump

0x0000000000000000-0x00000000000a6000: 679936: free
0x00000000000a6000-0x0000000000970000: 9216000: used
0x0000000000970000-0x000000000123a000: 9216000: used
0x000000000123a000-0x0000000001b04000: 9216000: used
0x0000000001b04000-0x00000000023ce000: 9216000: used
0x00000000023ce000-0x0000000002c98000: 9216000: used
0x0000000002c98000-0x0000000003562000: 9216000: used
0x0000000003562000-0x0000000003e2c000: 9216000: used
0x0000000003e2c000-0x0000000100000000: 4229775360: free
total: 4294967296, used 64512000 free 4230455296

Change-Id: I39cb5b12a63418c050b3bd890829f831f898db4e
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_drv.c