Do dma sync after sg table created during ion alloc.
Since dma sync api requires a device, this patch also create a platform
device for ion.
The sg_phys will be filled after buffer mapped, but someone may need to
do sync without map/unmap operation, this patch also fills the sg_phys
after the sg_table created.
Change-Id: I2110f7727dbee55f7498c8d3376efcb7cd869b3a
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This reverts commit 6a40ead69f.
The old patch only do sync for pages first allocated from system to page
pools which have memset operation.
In that case, the sg table hasn't been created, so the sg_phy should be
filled extra.
After this revert, a new patch will push to do sync after sg table
created, and use a common device from ion driver, which is required by
dma_sync api.
Change-Id: I9712136a532f64ff3224308f48d59efb87fd5be2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Add DMA_BUF_IOCTL_SYNC_PARTIAL support for user to sync dma-buf with
offset and len.
Change-Id: I03d2d2e10e48d32aa83c31abade57e0931e1be49
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This reverts commit fc2f74ccdd.
Use sram can reduce the memory bandwidth usage.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5fae577671a905348239d0a40299d69e4cd8e6bb
This patch selects the ION_CMA_HEAP, for userspace to allocate continuous
memory area from ion cma-heap allocator.
Change-Id: I501f097cf8005bc7ecad8a0a23706f11b1987d3e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Enable the configs and had TEE information as below:
root@linaro-alip:~# dmesg |grep optee
[ 0.181303] TEE core: Alloc the misc device "opteearmtz00" (id=0)
[ 0.181507] TEE Core: Register the misc device "opteearmtz00" (id=0,minor=63)
[ 0.848626] optee: probing for conduit method from DT.
[ 0.848657] optee: revision 3.6 (c38b1925)
[ 0.849045] optee: initialized driver
root@linaro-alip:~# realpath /dev/tee*
/dev/tee0
/dev/teepriv0
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I2e818978c2b3203d859e169f10b86bee1bdac125
Some features are not updated to compat_ioctl, so add them.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Id89a0826a4125af97398200f7ce6e3cc73de4342
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ibeae8b4cc09bbf3cfb7b64e51f6f6aa35820bf0d
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I603946b27ab4668ed5ff4dbb629f3ed9b8741b08
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ie7ec87208811e2fd7a217558d97e0f1bd46d122d
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ic12cdbf3f4116a5f20b7aeb8b1c665be229c5e32
Add a new flag for system heap to allocat pages in normal zone.
Change-Id: I851b7fa412c181a6c3222aeadffddc84aba74c1e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>