[PATCH] move file->f_op->open out of mutex (misc_mtx) in misc_open

2015-01-05 Thread xiaomin1
misc_mtx was used to mutex misc_list. But file->f_op->open may be blocked by downloading firmware in some devices' open. So move file->f_op->open out of mutex (misc_mtx) in misc_open to avoid this block. It also make code more efficiency. Signed-off-by: Zhang Dongxing Signed-off-by: xiaoming wang

[PATCH] modify the IO_TLB_SEGSIZE to configtable as flexible requirement about IOMMU/SW-IOMMU.

2015-01-25 Thread xiaomin1
1048576 bytes at device gadget Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing Signed-off-by: xiaomin1 --- include/linux/swiotlb.h |2 +- lib/Kconfig |4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/swiotlb.h b/include/linux

[PATCH] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-04 Thread xiaomin1
The maximum of SW-IOMMU is limited to 2^11*128 = 256K. While in different platform and different requirements this seems improper. So modify the IO_TLB_SEGSIZE to io_tlb_segsize as configurable is make sense. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing Signed-off-by: xiaomin1