mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
vfio/cdx: add support for CDX bus
vfio-cdx driver enables IOCTLs for user space to query MMIO regions for CDX devices and mmap them. This change also adds support for reset of CDX devices. With VFIO enabled on CDX devices, user-space applications can also exercise DMA securely via IOMMU on these devices. This change adds the VFIO CDX driver and enables the following ioctls for CDX devices: - VFIO_DEVICE_GET_INFO: - VFIO_DEVICE_GET_REGION_INFO - VFIO_DEVICE_RESET Signed-off-by: Nipun Gupta <nipun.gupta@amd.com> Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com> Tested-by: Nikhil Agarwal <nikhil.agarwal@amd.com> Link: https://lore.kernel.org/r/20230531124557.11009-1-nipun.gupta@amd.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
committed by
Alex Williamson
parent
1e44c58cc4
commit
234489ac56
@@ -14,7 +14,6 @@
|
||||
#include <linux/mod_devicetable.h>
|
||||
|
||||
#define MAX_CDX_DEV_RESOURCES 4
|
||||
#define CDX_ANY_ID (0xFFFF)
|
||||
#define CDX_CONTROLLER_ID_SHIFT 4
|
||||
#define CDX_BUS_NUM_MASK 0xF
|
||||
|
||||
|
Reference in New Issue
Block a user