Commit Graph

1065599 Commits

Author SHA1 Message Date
Su Yuefu
f83e32d567 ARM: dts: rockchip: rv1106-evb-cam: compatible to sc3336 sc4336 530ai
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: Id08faa19f5244f57cde6487d77f957eb27481a95
2022-03-28 15:04:40 +08:00
Addy Ke
d0cca5a3d8 arm64: dts: rockchip: rk3588-toybrick-x0: enable pcie3x4
rk3588 toybrick board pcie3 have only 2 lanes.
set:
rockchip,pcie30-phymode = <PHY_MODE_PCIE_NANBNB>;
num-lanes=<2>;

Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Change-Id: I3b0357a4a77aa00f578c32424b3bf11f5dd873e9
2022-03-28 15:03:21 +08:00
Xiao Yao
4f9102ad74 ARM: config: rv1106-evb: enable wifi config
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
Change-Id: I4413eea9684d02982f18b58572eba3c66abce608
2022-03-28 15:02:06 +08:00
Xiao Yao
e3b1ee1c14 ARM: dts: rockchip: rv1106g-evb1-v10: enable wifi
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
Change-Id: I68825658d3c48caa23e02eaa636ae2d2b6034fa2
2022-03-28 15:00:44 +08:00
Zhichao Yu
086c446c11 ARM: configs: select necessary sensors for rv1106-evb.config
The rv1106-evb.config is generated by the following command:

make ARCH=arm rv1106_defconfig
cp .config tmp.config
make ARCH=arm rv1106_defconfig rv1106-evb.config
make ARCH=arm menuconfig

./scripts/diffconfig -m tmp.config .config > arch/arm/configs/rv1106-evb.config

Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I707ac7ad593425184169b426c2956c225b2711b6
2022-03-28 10:58:33 +08:00
Zhichao Yu
4f97c20bdb ARM: configs: remove sensor configs from rv1106_defconfig
Configs of sensor should be move to specify board config.

Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I2bd41677c9d2661f3b16db3f2cad1f5fc8c36e5f
2022-03-28 10:53:04 +08:00
Tao Huang
c7427224d4 ARM: rv1106-evb.config: Update by diffconfig
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I680cea2ecd9c55e4389bca19b17fdcfc843f2e1d
2022-03-28 10:51:30 +08:00
Zhichao Yu
4f22f3ba06 ARM: configs: rv1106_defconfig select CONFIG_PHY_ROCKCHIP_CSI2_DPHY
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I48bd5a5001b228b993946b6805b4256e31c36585
2022-03-28 10:49:09 +08:00
Jianqun Xu
425f0d2c86 ARM: dts: rockchip: rv1106: delete reserved-memory node
With a patch to unselect DMA_CMA, the 'reserved-memory' node will not
effect and shows a log at booting up:

[    0.000000] memblock_reserve: [0x07800000-0x07ffffff] fdt_init_reserved_mem+0x1d1/0x298
[    0.000000] OF: reserved mem: node linux,cma compatible matching fail
[    0.000000] memblock_free: [0x07800000-0x07ffffff] fdt_init_reserved_mem+0x203/0x298

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I783a3c9f1fc7d26d5f5db1f297f17caab5627a57
2022-03-28 10:45:56 +08:00
Jianqun Xu
67e0f49d56 ARM: configs: rv1106_defconfig not select DMA_CMA
Unselect the DMA_CMA to off the linux default cma area, also remove the
CMA_SIZE_BYTES since it depends on the DMA_CMA.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ic5f1aa4f8143ab3ca49b356a6e018670a1912cbf
2022-03-28 10:39:56 +08:00
Tao Huang
6fcdd4e8ed media: common: videobuf2-cma-sg: depends on DMA_CMA || DMABUF_HEAPS_ROCKCHIP_CMA_HEAP
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9f2545c1778a645ffb0d571cb14cc8cf7f08977d
2022-03-28 10:37:42 +08:00
Jianqun Xu
e10ee7cd2a dma-buf: rk_heaps: weakly define dma_contiguous_early_fixup
Define dma_contiguous_early_fixup weakly since the function may not be
defined by architecture.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id29e0515d24a9801aade00f4d257c80eb4238f6f
2022-03-28 10:31:39 +08:00
Jianqun Xu
4e30a51375 dma-buf: rk_heaps: separate rk_dma_cma early setup from dma heap
The "rk_dma_heap_cma" is a early param to setup a cma crea. Separate it
from the dma heap driver makes driver reasonable more.

This patch only do codingstyle without any fix to driver.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I885082f44fc8aff2d07f403fca0cfe70b16abcbd
2022-03-28 10:31:07 +08:00
Huibin Hong
fe39a477c8 ARM: configs: rv1106: enable CONFIG_UNIX98_PTYS
Disable PTYS causes "adb shell" fail.

This is a partial revert of commit
e6567a9d42 ("ARM: configs: rv1106: disable PTY and 8250_CONSOLE").

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ie969c44277b3ab7c6888f345064f4059d795dc75
2022-03-28 10:23:34 +08:00
Jianqun Xu
7b06a681ad ARM: configs: rv1106_defconfig select CMA_INACTIVE
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I1d1c7833b6ee598f58eead9a51c368d5a4561dfe
2022-03-26 20:44:59 +08:00
Jianqun Xu
87e8391b85 mm/cma: support cma inactive feature
When do active cma area, the reserved blocks from cma area will be
insert into system memory, and the pages will be allocated first even
then the system freelist is not empty.

After system borrows pages from cma, the cma will do isolate/migrate
them when the cma alloc happens, that spends much time and sometimes the
pages are pinned result a page busy failure.

This patch adds a CONFIG_CMA_INACTIVE to give a option, allows the cma
area not active and then system can not borrows pages from cma.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Iaaece4abda1ed0250e603e9255a59ebfa5c3a65f
2022-03-26 20:35:55 +08:00
Damon Ding
53be42237a ARM: dts: rockchip: rv1106: add bt1120-to-hdmi ext board support
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Id7593bc2cabd00a1cd1873addcab45bd11a7aeb6
2022-03-26 20:21:15 +08:00
Damon Ding
e3278ea51e ARM: dts: rockchip: rv1106: add pinctrl for bt1120/bt656/rgb565
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I78634fa25c922b6baf67e471de02f938a133d648
2022-03-26 20:14:01 +08:00
Shunhua Lan
cb7e0dc577 ASoC: rockchip: i2s-tdm: Don't do soft reset for slave mode
soft reset works on SCLK, which come from external device
when controller work as slave mode.

When SCLK disabled before reset done, the controller stalled
and can not recovery.

Instead, we do global reset for this issue.

Change-Id: If801aa03a01d42386f7cfa6145cd6d0af7a3b041
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2022-03-26 20:07:52 +08:00
Jianqun Xu
4f69f3914b dma-buf: rk_heaps: set name for dmabuf to debug
The rk_dma_heap_bufferfd_alloc has expand argument 'const char *name'
which is used for debug to oversee all dmabuf.

The dma_buf_set_name is provided and exported by dma-buf, also support
via ioctl of dma-buf. This patch set the name to dmabuf if support for
the CONFIG_DMABUF_RK_HEAPS_DEBUG.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I834a1f2009d5a1c6a6835ea78b3dd1aeec43e31f
2022-03-26 19:55:45 +08:00
Jianqun Xu
b70b46407b dma-buf: rk_heaps: cma heap enable 'cache_sgt_mapping'
Enable the 'cache_sgt_mapping' for rk_cma_heap_buf_ops, to cache the
first mapping made for each attachment. This avoids create mappings for
attachments multiple times.

By the way, cache the sgt can support debugfs to get the buffer
information from scatterlists.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id822e3088af9eab5d88d0172c31191d2fc9d4151
2022-03-26 19:49:56 +08:00
Jianqun Xu
c63b9bb07c dma-buf: rk_heaps: move cma heap structs into cma-heap driver
The rk_cma_heap and rk_cma_heap_buffer are only used by rk cma heap
driver, move them into driver.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I98867254dff5d4092008aa70244bbf9e10c394ac
2022-03-26 19:10:15 +08:00
Jianqun Xu
752f86a47a dma-buf: rk_heaps: relocate head files for heap driver
There are three head files named "rk-dma-heap.h", one is the uapi, and
the other two both for drivers.

<drivers/dma-buf/rk_heaps/rk_dma_heap.h> is designed for rk-dma-heap.c
which is located the same directory, always include it by a relative
path - "rk-dma-heap.h".

<include/linux/rk_dma_heap.h> is designed for other kernel module to use
the apis from rk-dma-heap, it only declears the functions which may used
by other modules. And importantly, this file declear "struct rk_dma_heap".

Before this patch, the xx-heap.c under "rk_heaps" directory should keep
mind to include the <linux/rk_dma_heap.h> first to declear rk_dma_heap
struct, then to include the "rk_dma_heap.h" to define other things, such
as debug, structures and declear functions.

This patch makes the <drivers/dma-buf/rk_heaps/rk_dma_heap.h> to include
the <include/linux/rk_dma_heap.h>, after that, the heap drivers only
need to include "rk_dma_heap.h", and the other modules only need to keep
to include <linux/rk_dma_heap.h>.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I9e9aabb3247e02439249872c2483d716a4af07c8
2022-03-26 19:08:22 +08:00
Jianqun Xu
65706611a8 dma-buf: rk_heaps: rename to rk_cma_heap_attachment
Only rename rk_dma_heap_attachment to rk_cma_heap_attachment, this patch
do nothing fix to driver.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ief67ed2a8c849398c41d82f9a1fdeac697d68b4a
2022-03-26 19:05:36 +08:00
Jianqun Xu
0dfdf7a853 media: common: videobuf2: fix cma sg alloc depends on CONFIG_CMA
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I1370bc264f2a673a14562f088cb2abdb13a01b30
2022-03-26 19:00:27 +08:00
William Wu
fd2afc4fcd arm64: dts: rockchip: move usb dwc3 reset to core node for rk3399
This patch moves the reset property of usb dwc3_0 and dwc3_1
to the dwc3 core node, then it can reset the dwc3 controller
in runtime PM and sleep PM, rather than only reset in sleep
PM. This can help to fix typec phy power on fail with the
following log when do hotplug test with Type-C dongle.

phy phy-ff7c0000.phy.9: phy poweron failed --> -110

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I27c90147591f83e8cacb8147ed49c1c6c9646a46
2022-03-26 18:53:09 +08:00
Cai YiWei
f4e9d0fcb4 ARM: dts: rockchip: rv1106: sram node to isp
Change-Id: I90326170e55688385343e22254e1825de4a22fb3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-26 18:51:12 +08:00
Cai YiWei
691c80a8f6 media: rockchip: isp: isp32 support bay3d cur write to system sram
Change-Id: I27e4ef9061cf846ad129a298cfe99969d32ff4d6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-26 18:50:51 +08:00
Jianqun Xu
956e50452a dma-buf: rk_heaps: add cma alignment for rk cma heap
Default set CONFIG_DMABUF_HEAPS_ROCKCHIP_CMA_ALIGNMENT to '8' to keep
nothing fix with this patch for heap.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ie1d41b001e2414766989de576f96f21069a7508e
2022-03-26 17:52:06 +08:00
Liang Chen
83d275132c soc: rockchip: pvtm: Add support for RV1106 SoCs
This adds the necessary data for handling pvtm on the RV1106.

Change-Id: I72c1cb38141cf246738d3a592cb7c8a9f4192815
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-03-26 17:51:41 +08:00
Huibin Hong
e6567a9d42 ARM: configs: rv1106: disable PTY and 8250_CONSOLE
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I4ce8e8deaabd94881826e23d6403a7dfd8e884d2
2022-03-26 17:45:29 +08:00
Herman Chen
59a26efa55 video: rockchip: mpp: vepu2: Fix multi-core vepu2 stuck on RK3588
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Idac11024e1cc98346e68a7f7f12f3e9f33d89c10
2022-03-26 17:44:31 +08:00
Sugar Zhang
5a19c1c53a ARM: dts: rockchip: rv1106: Add sram node
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id1825d138d58d1f98b0bbc3b33ba6ed7ad1cb223
2022-03-26 17:11:04 +08:00
Cai YiWei
1c0ec105c5 media: rockchip: isp: isp32 fix cac config
Change-Id: I3e7e2b0e8b7d6797efd226bdfed0c744889beb20
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-26 17:00:56 +08:00
Liang Chen
c5779fb675 ARM: dts: rockchip: rv1106: Add pvtm node
Change-Id: I4f023bacec9c61e25d8b6875f24d3b98e7c0bdcf
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-03-26 16:46:41 +08:00
Yu Qiaowei
3a6a7fa783 video: rockchip: rga3: Modify the printing of system registers
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ice6bcd8a74b8a08c5bd916c21215e857365c5db7
2022-03-26 16:27:00 +08:00
Yu Qiaowei
7db276831b video: rockchip: rga3: Fix OSD configuration
1. Fixup fix_width will only be less than 128(0x3f).
2. Add support RGBA2BPP.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I8af80a6ca6e26a0b1e2f023427108739fdf27dfa
2022-03-26 16:27:00 +08:00
Yu Qiaowei
66a65ee99d video: rockchip: rga3: mpi_job uses importbuffer
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I8170657fbab1da870b513f73b3e55bf80a870794
2022-03-26 16:27:00 +08:00
Yu Qiaowei
af89acfb26 video: rockchip: rga3: RGA_START_CONFIG added configurable flags
Support to modify and cache the parameters passed by mpi.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: If6b3b10336280d7d2e6a0195eb38e8f5bad2b024
2022-03-26 16:27:00 +08:00
Wyon Bi
f002e0301b drm/bridge: analogix_dp: Validate link config values
Fixes: 099bdfba32 ("drm/bridge: analogix_dp: Add source capacity limits in .mode_vaild")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I05ea814c8b46fd8521c257a8f403dfdc8d028bdb
2022-03-26 16:16:03 +08:00
Ziyuan Xu
1590cae5de ARM: dts: rockchip: Add support for RV1103/6G IPC38 Board
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I72657dd2f73223dfbcff0a04cb586b3239acb1ef
2022-03-26 15:20:17 +08:00
Ziyuan Xu
e0c4974da1 ARM: configs: rockchip: Add rv1106-ipc.config
Update by:

make ARCH=arm rv1106_defconfig
cp .config rv1106.config
make ARCH=arm rv1106_defconfig rv1106-ipc.config
make ARCH=arm menuconfig
./scripts/diffconfig -m rv1106.config .config > arch/arm/configs/rv1106-ipc.config

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Ie703647bd499c39e844ec877e41348329eb3630d
2022-03-26 15:09:02 +08:00
Ziyuan Xu
29fb5107c2 ARM: dts: rockchip: rv1106-evb-camera: Fixes pinctrl for mipicsi-camera
Fixes: 1d15280e90 ("ARM: dts: rockchip: rv1106-evb support camera of sc4336")
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I7d8c959ecc790286f74e28aad80811104b6b6cfe
2022-03-26 15:00:06 +08:00
Ziyuan Xu
3b68807646 ARM: dts: rockchip: rv1106-pinctrl: Separate vicap_clkout/mipi_refclk_out
Camera should declare vicap_clkout/mipi_refclk_out independently,
ensure that the initialized successfully without cif/mipi.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I1dce667774d0aec0ec1ee9361c124d0fead95eb9
2022-03-26 14:59:19 +08:00
Jianqun Xu
1fc0ecb55f mm/memblock: show memblock reserved with size information
Tested on RV1106 EVB:
cat /sys/kernel/debug/memblock/reserved_size

   0: 0x00004000..0x00007fff (        16 KiB)
   1: 0x000081c0..0x0052e9c7 (      5274 KiB)
   2: 0x00c00000..0x00c08fff (        36 KiB)
   3: 0x0369c000..0x036bbfff (       128 KiB)
   4: 0x036bd8c0..0x036bdcc3 (         1 KiB)
   5: 0x036bdcc8..0x036d5ffb (        96 KiB)
   6: 0x036d6000..0x037fefff (      1188 KiB)
   7: 0x037ff240..0x037ff79b (         1 KiB)
   8: 0x037ff7c0..0x037ff837 (       120 Bytes)
   9: 0x037ff840..0x037ff843 (         4 Bytes)
  10: 0x037ff880..0x037ff883 (         4 Bytes)
  11: 0x037ff8c0..0x037ff8c3 (         4 Bytes)
  12: 0x037ff900..0x037ffa69 (       362 Bytes)
  13: 0x037ffa80..0x037ffbe9 (       362 Bytes)
  14: 0x037ffc00..0x037ffc03 (         4 Bytes)
  15: 0x037ffc1c..0x037ffc7e (        99 Bytes)
  16: 0x037ffc80..0x037ffc9a (        27 Bytes)
  17: 0x037ffc9c..0x037ffcb6 (        27 Bytes)
  18: 0x037ffcb8..0x037ffcd2 (        27 Bytes)
  19: 0x037ffcd4..0x037ffcee (        27 Bytes)
  20: 0x037ffcf0..0x037ffd0a (        27 Bytes)
  21: 0x037ffd0c..0x037ffe2c (       289 Bytes)
  22: 0x037ffe30..0x037ffe48 (        25 Bytes)
  23: 0x037ffe4c..0x037ffe64 (        25 Bytes)
  24: 0x037ffe68..0x037ffe80 (        25 Bytes)
  25: 0x037ffe84..0x037ffe9c (        25 Bytes)
  26: 0x037ffea0..0x037ffebc (        29 Bytes)
  27: 0x037ffec0..0x037ffedc (        29 Bytes)
  28: 0x037ffee0..0x037ffefc (        29 Bytes)
  29: 0x037fff00..0x037fff9c (       157 Bytes)
  30: 0x037fffa0..0x07ffffff (     73728 KiB)
Total: 80470 KiB

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: If98946c9f2a70fa2816f2f1434a14198e2156d96
2022-03-25 19:53:00 +08:00
Jon Lin
f9e5397c76 spi: rockchip-sfc: Embedded DMA only support 4B aligned address
Change-Id: I4a5f77505cb56854d9a68acb588cb056d7d5a7ae
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-03-25 19:49:17 +08:00
Jianqun Xu
88412bf3be mmc: core: make the mmc queue depth configurable
This patch make driver able to set the queue depth and keep the default
vaule to be '64'.

Change-Id: I54cd065d6536c170d1615a6f9d7071d479bfeb84
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2022-03-25 19:48:53 +08:00
Jon Lin
b9aa3ac670 mtd: spi-nor: fmsh: Add code
Change-Id: I8d95f3535c841a9829228eed1d213afda19ef0e6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-03-25 19:43:52 +08:00
Lin Jinhan
ed241d3863 crypto: rockchip: v2: akcipher: add mutex for multi-threaded support
Add mutex to prevent multi-threaded concurrency from competing.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ia9a0dad65b47168c4588cf64eaa93e0d2566e17e
2022-03-25 19:42:48 +08:00
Jianqun Xu
a4f940596f dma-buf: rk_heaps: optimize dump information format
cat /sys/kernel/debug/rk_dma_heap/dma_heap_info |grep Alloc
  Alloc by (vmpi           ) [0x05fe3000-0x061a4fff] 0x001c2000 (1800 KiB)
  Alloc by (vmpi           ) [0x05fe2000-0x05fe2fff] 0x00001000 (4 KiB)
  Alloc by (vmpi           ) [0x05fe1000-0x05fe1fff] 0x00001000 (4 KiB)
  Alloc by (vmpi           ) [0x05a6d000-0x05fe0fff] 0x00574000 (5584 KiB)
  Alloc by (vmpi           ) [0x05987000-0x05a6cfff] 0x000e6000 (920 KiB)
  Alloc by (vmpi           ) [0x0594d000-0x05986fff] 0x0003a000 (232 KiB)
  Alloc by (vmpi           ) [0x0594c000-0x0594cfff] 0x00001000 (4 KiB)
  Alloc by (vmpi           ) [0x053d8000-0x0594bfff] 0x00574000 (5584 KiB)
  Alloc by (vmpi           ) [0x052f2000-0x053d7fff] 0x000e6000 (920 KiB)
  Alloc by (vmpi           ) [0x052b8000-0x052f1fff] 0x0003a000 (232 KiB)
  Alloc by (vmpi           ) [0x04556000-0x04a9bfff] 0x00546000 (5400 KiB)
  Alloc by (vmpi           ) [0x04010000-0x04555fff] 0x00546000 (5400 KiB)
  Alloc by (rkisp-vir0     ) [0x04000000-0x04003fff] 0x00004000 (16 KiB)
  Alloc by (rkisp-vir0     ) [0x04004000-0x04007fff] 0x00004000 (16 KiB)
  Alloc by (rkisp-vir0     ) [0x04008000-0x0400bfff] 0x00004000 (16 KiB)
  Alloc by (rkisp-vir0     ) [0x0400c000-0x0400ffff] 0x00004000 (16 KiB)
  Alloc by (ffa00000.rkisp ) [0x04a9c000-0x04a9cfff] 0x00001000 (4 KiB)
  Alloc by (ffa00000.rkisp ) [0x04a9d000-0x04a9dfff] 0x00001000 (4 KiB)
  Alloc by (ffa00000.rkisp ) [0x04a9e000-0x05216fff] 0x00779000 (7652 KiB)
  Alloc by (ffa00000.rkisp ) [0x05217000-0x05246fff] 0x00030000 (192 KiB)
  Alloc by (ffa00000.rkisp ) [0x05247000-0x052b7fff] 0x00071000 (452 KiB)

cat /sys/kernel/debug/rk_dma_heap/dma_heap_info |grep Total
  Total : 0x21a5000 (34452 KiB)

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I3b739689e394f9d5fbfe50df2cf87d6f5cc744de
2022-03-25 19:19:45 +08:00