Skip to content
Permalink
Browse files
misc: vpusmm: add alloc/import DMABuf for VPU
 functions are:
 1.alloc/export DMABuf accessible to VPU
 2.import external DMABuf for VPU to access
 3.translate virtual address with mem-mapped and imported DMABuf
   into VPU address

Signed-off-by: tingqian <tingqian.li@intel.com>
  • Loading branch information
usstq authored and yifanli-intel committed Aug 20, 2020
1 parent 6e3a544 commit d8837af93a48e1acd496dd1074b7a5cfb93c046c
Show file tree
Hide file tree
Showing 6 changed files with 1,156 additions and 0 deletions.
@@ -482,4 +482,5 @@ source "drivers/misc/ocxl/Kconfig"
source "drivers/misc/cardreader/Kconfig"
source "drivers/misc/habanalabs/Kconfig"
source "drivers/misc/gna/Kconfig"
source "drivers/misc/vpusmm/Kconfig"
endmenu
@@ -58,3 +58,4 @@ obj-$(CONFIG_PVPANIC) += pvpanic.o
obj-$(CONFIG_HABANA_AI) += habanalabs/
obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o
obj-$(CONFIG_INTEL_GNA) += gna/
obj-$(CONFIG_VPUSMM) += vpusmm/
@@ -0,0 +1,14 @@
# Copyright (C) 2019 Intel Corporation
# SPDX-License-Identifier: GPL-2.0-only

config VPUSMM
tristate "Support for VPU Shared memory management"
help
VPUSMM exposes following capabilities to user space application
through ioctl syscall:
1. allocate DMABuf qualified to be accessed by KeemBay VPU Sub-System.
2. import/unimport qualified DMABuf for VPU to access.
3. translate user-space virtual address within a mem-mapped
region of an imported DMABuf into VPU side DMA address,
which allows application to pass buffer pointer with
offsets to VPU sub-system.
@@ -0,0 +1,6 @@
# Copyright (C) 2019 Intel Corporation
# SPDX-License-Identifier: GPL-2.0-only
# Makefile for KeemBay VPUSMM
#
obj-$(CONFIG_VPUSMM) += vpusmm_driver.o

0 comments on commit d8837af

Please sign in to comment.