[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1550953697-7288-1-git-send-email-hyun.kwon@xilinx.com>
Date: Sat, 23 Feb 2019 12:28:16 -0800
From: Hyun Kwon <hyun.kwon@...inx.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
<linux-kernel@...r.kernel.org>
CC: Michal Simek <michal.simek@...inx.com>,
<linux-arm-kernel@...ts.infradead.org>,
<dri-devel@...ts.freedesktop.org>,
Cyril Chemparathy <cyrilc@...inx.com>,
Jiaying Liang <jliang@...inx.com>,
Sonal Santan <sonals@...inx.com>,
Stefano Stabellini <stefanos@...inx.com>,
<linaro-mm-sig@...ts.linaro.org>,
Sumit Semwal <sumit.semwal@...aro.org>,
<linux-media@...r.kernel.org>, Hyun Kwon <hyun.kwon@...inx.com>
Subject: [PATCH RFC 0/1] uio: Add dmabuf import ioctl
Hi,
I'm looking to enable platform independent device driver stacks on
Linux. Currently, I have some driver built on top of Linux UIO [1],
and possibly there can be more of such drivers: ex, soft IP drivers
programmed on FPGA. Some device includes data movers such as DMA, and
that requires some mechanism to import external buffers and program
the data movers from user space.
Thus this patch set adds a couple of ioctls to import the dmabuf
and return required information back to user. This allows the user
drivers to use dmabuf compatible external buffers: ex, it's tested
with ION allocator.
I'd like to understand if this is right approach which can be used
to develop the user space software stacks further, especially because
- adding new ioctls to generic uio
- security concerns from exposing low level information: dma addr
For example, vfio isn't option as iommu may not be available for
all such devices on all platforms. So any feedback to move forward
would be appreciated.
Thanks,
-hyun
[1] https://patchwork.kernel.org/patch/10774761/
Hyun Kwon (1):
uio: Add dma-buf import ioctls
drivers/uio/Makefile | 2 +-
drivers/uio/uio.c | 43 +++++++++
drivers/uio/uio_dmabuf.c | 210 +++++++++++++++++++++++++++++++++++++++++++
drivers/uio/uio_dmabuf.h | 26 ++++++
include/uapi/linux/uio/uio.h | 33 +++++++
5 files changed, 313 insertions(+), 1 deletion(-)
create mode 100644 drivers/uio/uio_dmabuf.c
create mode 100644 drivers/uio/uio_dmabuf.h
create mode 100644 include/uapi/linux/uio/uio.h
--
2.7.4
Powered by blists - more mailing lists