Re: [PATCH v11 3/4] tee: add OP-TEE driver

2016-09-07 Thread Zeng Tao
Hi all: I have gone through the patch, and i find one limit for RPC call from TEE to REE. In this patch, RPC commands are fixed and it supports a limited set of commands. If you want to add your own RPC command then you need to change the source code of the driver. I don't know how much work to

[PATCH v2] ION: Sys_heap: fix the incorrect pool->gfp_mask setting

2018-01-18 Thread Zeng Tao
tag 2. change the flags define based on the comment. Fixes: e7f63771b60e ("ION: Sys_heap: Add cached pool to spead up cached buffer alloc") Signed-off-by: Zeng Tao --- drivers/staging/android/ion/ion_system_heap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/a

[PATCH] ION: Sys_heap: fix the incorrect pool->gfp_mask setting

2018-01-08 Thread Zeng Tao
This issue is introduced by the commit ("ION: Sys_heap: Add cached pool to spead up cached buffer alloc"), the gfp_mask low order pool is overlapped by the high order inside the loop, so the gfp_mask of all pools are set to high_order_gfp_flags. Signed-off-by: Zeng Tao --- drive

[PATCH] usb: dwc2: gadget: fix missing process for isoc descriptor dma mode

2018-05-29 Thread Zeng Tao
If it's the first request to queue, and we are using descriptor dma mode for isoc transfer, we only need to add the request to the queue, and it will be processed in the future nak interrupt handler. Signed-off-by: Zeng Tao --- drivers/usb/dwc2/gadget.c | 3 +++ 1 file changed, 3 inser

[PATCH] usb: dwc3: gadget: fix miss isoc issue introduced by IRQ latency

2018-12-14 Thread Zeng Tao
sure that it's not out of date. Signed-off-by: Liang Shengjun Signed-off-by: Zeng Tao --- drivers/usb/dwc3/core.h | 3 +++ drivers/usb/dwc3/gadget.c | 12 2 files changed, 15 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 5bfb625..8742

[PATCH] staging: android: ion: add buffer flag update ioctl

2018-12-19 Thread Zeng Tao
ioctl command to target the requirement. Signed-off-by: Zeng Tao --- drivers/staging/android/ion/ion-ioctl.c | 4 drivers/staging/android/ion/ion.c | 17 + drivers/staging/android/ion/ion.h | 1 + drivers/staging/android/uapi/ion.h | 22

[PATCH] usb: gadget: uvc: configfs: add framebased format support

2018-12-10 Thread Zeng Tao
configfs attribute node. Signed-off-by: Zeng Tao --- drivers/usb/gadget/function/uvc_configfs.c | 350 - include/uapi/linux/usb/video.h | 58 + 2 files changed, 401 insertions(+), 7 deletions(-) diff --git a/drivers/usb/gadget/function/uvc_configfs.c b

[PATCH] usb: dwc3: gadget: don't remove the request if bus-expired

2018-12-20 Thread Zeng Tao
We have already returned EAGAIN for bus-expiry, and it's designed to start with a future Frame number and start the transfer again. So we should not remove the request for that case. Signed-off-by: Zeng Tao --- drivers/usb/dwc3/gadget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 dele

[PATCH] usb: dwc3: gadget: Fix the uninitialized link_state when udc starts

2018-12-25 Thread Zeng Tao
-by: Zeng Tao --- drivers/usb/dwc3/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 16a6e3c..e18c2a2 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1988,6 +1988,7 @@ static int __dwc3_gadget_start(str

[PATCH] staging: ion: ion_cma_heap: remove ion_cma_get_sgtable

2014-12-08 Thread Zeng Tao
Remove the temporary code ion_cma_get_sgtable, use dma_common_get_sgtable instead Signed-off-by: Zeng Tao --- drivers/staging/android/ion/ion_cma_heap.c | 20 +--- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers

[PATCH] usb: dwc2: Using tab instead of blank

2021-03-19 Thread Zeng Tao
Signed-off-by: Zeng Tao --- drivers/usb/dwc2/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index ad4c943..53406f0 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3380,7 +3380,7 @@ void

[PATCH] sched/cpupri: fix the task priority BUG_ON checks

2021-03-25 Thread Zeng Tao
("sched/cpupri: Remap CPUPRI_NORMAL to MAX_RT_PRIO-1") Signed-off-by: Zeng Tao --- kernel/sched/cpupri.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c index ec9be78..c5a0e6e 100644 --- a/kernel/sched/cpupri.c +++ b/ke

[PATCH] tools/kvm_stat: fix out of date aarch64 kvm_exit reason definations

2021-04-03 Thread Zeng Tao
whole kernel. Signed-off-by: Zeng Tao --- tools/kvm/kvm_stat/kvm_stat | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index b0bf56c..63d87fd 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm

[PATCH] vfio/pci: make the vfio_pci_mmap_fault reentrant

2021-03-08 Thread Zeng Tao
__vfio_pci_add_vma down after the io_remap_pfn_range. Fixes: 11c4cd07ba11 ("vfio-pci: Fault mmaps to enable vma tracking") Signed-off-by: Zeng Tao --- drivers/vfio/pci/vfio_pci.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/vfio/pci/vf

[PATCH] staging: ion : ion_cma_heap: fix bug for highmem cma

2014-11-28 Thread Zeng Tao
when cma is located in highmem, virt_to_page will not work the right way, use pfn_to_page instead. Signed-off-by: Zeng Tao --- drivers/staging/android/ion/ion_cma_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers

[PATCH] arm64: fix /proc/cpuinfo for elf32

2016-04-24 Thread Zeng Tao
For elf32 thread, personality is used for arm32, and thread_flag for arm64. Here personality is used for arm64, so fix it. Signed-off-by: Zeng Tao --- arch/arm64/kernel/cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel

[PATCH] usb: dwc3: gadget: issue a stop command for ISOC endpoint

2019-01-21 Thread Zeng Tao
For ISOC transfers, if there is no available data for a period, we need to stop the transfer by issue a stop command, otherwise, all the upcoming transfers will started by update transfer command, and will be dropped with MISS ISOC errors. Signed-off-by: Zeng Tao --- drivers/usb/dwc3/gadget.c

[PATCH] phy: Change the configuration interface param to void* to make it more general

2019-07-11 Thread Zeng Tao
oduce private phy API for runtime configurations, and with this patch, they can switch to the phy_configure as a replace. Signed-off-by: Zeng Tao --- drivers/phy/allwinner/phy-sun6i-mipi-dphy.c | 4 ++-- drivers/phy/cadence/cdns-dphy.c | 8 drivers/phy/phy-c

[PATCH] phy: Change the configuration interface param to void* to make it more general

2019-07-11 Thread Zeng Tao
oduce private phy API for runtime configurations, and with this patch, they can switch to the phy_configure as a replace. Signed-off-by: Zeng Tao --- drivers/phy/allwinner/phy-sun6i-mipi-dphy.c | 4 ++-- drivers/phy/cadence/cdns-dphy.c | 8 drivers/phy/phy-c

[PATCH] usb: core: fix slab-out-of-bounds Read in read_descriptors

2020-09-03 Thread Zeng Tao
ug?id=901a0d9e6519ef8dc7acab25344bd287dd3c7be9 Cc: stable Cc: Alan Stern Reported-by: syzbot+256e56ddde8b8957e...@syzkaller.appspotmail.com Fixes: 217a9081d8e6 ("USB: add all configs to the "descriptors" attribute") Signed-off-by: Zeng Tao --- drivers/usb/core/sysfs.c | 5

[PATCH] time: Avoid undefined behaviour in timespec64_to_ns

2020-09-01 Thread Zeng Tao
9d ("y2038: itimer: change implementation to timespec64") Signed-off-by: Zeng Tao --- include/linux/time64.h | 3 +++ kernel/time/itimer.c | 4 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/linux/time64.h b/include/linux/time64.h index c9dcb3e..3215593 10064

[PATCH] vfio/pci: fix racy on error and request eventfd ctx

2020-07-15 Thread Zeng Tao
001020 d280 52800022 f9800271 (885ffe61) [ 9514.204455] ---[ end trace 648de00c8406465f ]--- [ 9514.212308] note: bash[1327] exited with preempt_count 1 Cc: Qian Cai Cc: Alex Williamson Fixes: 1518ac272e78 ("vfio/pci: fix memory leaks of eventfd ctx") Signed-off-by: Zeng Tao --- dr

[PATCH] net: openswitch: reuse the helper variable to improve the code readablity

2020-09-18 Thread Zeng Tao
In the function ovs_ct_limit_exit, there is already a helper vaibale which could be reused to improve the readability, so i fix it in this patch. Signed-off-by: Zeng Tao --- net/openvswitch/conntrack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/openvswitch

[PATCH] optee: fix the dead loop problem when there is signal pending

2018-01-03 Thread Zeng Tao
when the current process is doing a rpc call from optee, and if there is a signal pending on the process, it will enter dead loop if the tee-supplicant is working correctly, fix the problem by breaking out the loop when the rpc job is finished. Signed-off-by: Zeng Tao --- drivers/tee/optee

[tip: timers/urgent] time: Prevent undefined behaviour in timespec64_to_ns()

2020-10-26 Thread tip-bot2 for Zeng Tao
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: cb47755725da7b90fecbb2aa82ac3b24a7adb89b Gitweb: https://git.kernel.org/tip/cb47755725da7b90fecbb2aa82ac3b24a7adb89b Author:Zeng Tao AuthorDate:Tue, 01 Sep 2020 17:30:13 +08:00 Committer