Modify crypto v3 compatible from "rockchip,crypto_v3" to
"rockchip,crypto-v3".
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I1bf62136f095e668024969aae354207b37dc0c93
Add automatic check, can be automatically trimmed according
to the register supported algorithm.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ie807cba240389466be1d1f177bbc9b35a47efecb
Add a new generation of Crypto IP drivers and add
multithreaded cipher/hash support.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Iaefda28a1efc9c5af29b71cd3453d108b6e9260a
Crypto V2 and Crypto V3 have a lot of code to reuse, so simplify
the code before importing Crypto V3.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ifcd5314a78c56b8db5d2444863172aeceab310d0
When config dp show log as force output mode, it will not get
edid and detect the connect status(to avoid aux error because
sink may be not physical connected). So it should set default
color format and link info before show kernel logo, which will
be used when select the output color format.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I76ec29cebb101b8629e81eee3d82c93f53cc9102
Loop into each dmabuf and dump its info, including name, exp_name, size
and physical address range from the scatterlist table(sgt).
Since the sgt of dmabuf only exist after device attach/map, but some
dmabufs have not be attach/map by device yet. This patch creates a fake
platform device to do attach/map for a dmabuf who has a empty attachment
list, and unmap/detach after all.
Tested on RV1106 evb: cat /proc/rk_dmabuf
NAME EXPORT SIZE:KiB SGLIST
vmpi rk-dma-heap-cma 4 KiB 0: 0x04548000..0x04548fff
vmpi rk-dma-heap-cma 4 KiB 0: 0x04547000..0x04547fff
vmpi rk-dma-heap-cma 5584 KiB 0: 0x05400000..0x05973fff
vmpi rk-dma-heap-cma 920 KiB 0: 0x05300000..0x053e5fff
vmpi rk-dma-heap-cma 232 KiB 0: 0x045c0000..0x045f9fff
vmpi rk-dma-heap-cma 4 KiB 0: 0x04546000..0x04546fff
vmpi rk-dma-heap-cma 5584 KiB 0: 0x04d00000..0x05273fff
vmpi rk-dma-heap-cma 920 KiB 0: 0x04c00000..0x04ce5fff
vmpi rk-dma-heap-cma 232 KiB 0: 0x04580000..0x045b9fff
vmpi rk-dma-heap-cma 5400 KiB 0: 0x04600000..0x04b45fff
vmpi rk-dma-heap-cma 5400 KiB 0: 0x04000000..0x04545fff
(null) videobuf2_vmalloc 12 KiB
(null) videobuf2_vmalloc 12 KiB
(null) videobuf2_vmalloc 12 KiB
(null) videobuf2_vmalloc 12 KiB
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Icf46e9d585847ef6dafbddcd24e589046e3ff015
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
Configs of sensor should be move to specify board config.
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I2bd41677c9d2661f3b16db3f2cad1f5fc8c36e5f
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
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
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
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
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
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
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>
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
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
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
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
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
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
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
This adds the necessary data for handling pvtm on the RV1106.
Change-Id: I72c1cb38141cf246738d3a592cb7c8a9f4192815
Signed-off-by: Liang Chen <cl@rock-chips.com>
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