mbox series

[Xen-devel,RFC,v4,0/8] SMMUv3 driver

Message ID 20171219031703.23420-1-sameer.goel@linaro.org
Headers show
Series SMMUv3 driver | expand

Message

Sameer Goel Dec. 19, 2017, 3:16 a.m. UTC
This patch set addresses the review comments from [1].

The SMMUv2 and other compatibility changes have been broken out of SMMUv3
patch.

Similar to the RFCv2 all the IORT realted changes have been dropped in this
version as these will be covered by [2]. The IORT implementation has to
provide a Linux like API to the SMMUv3 driver.

List of changes:
- Addition of a linux_compat header.
- Addition of a common header for arm smmu defines.
- Rebase of the SMMUv3 driver to the driver in linux kernel 4.14 rc7.
- New config defines for ARM SMMU drivers.

[1] https://lists.xenproject.org/archives/html/xen-devel/2017-12/msg00242.html
[2] https://www.mail-archive.com/xen-devel@lists.xen.org/msg128989.html

Sameer Goel (8):
  Port WARN_ON_ONCE() from Linux
  xen/bitops: Rename LOG_2 to ilog2
  xen/linux_compat: Add a Linux compat header
  passthrough/arm: Modify SMMU driver to use generic device definition
  Add verbatim copy of arm-smmu-v3.c from Linux
  xen/iommu: smmu-v3: Add Xen specific code to enable the ported driver
  xen/smmu: Add a new config define for legacy SMMU
  drivers/passthrough/arm: Refactor code for arm smmu drivers

 xen/arch/arm/p2m.c                     |    1 +
 xen/arch/x86/x86_64/asm-offsets.c      |    2 +-
 xen/drivers/Kconfig                    |    2 +
 xen/drivers/passthrough/arm/Kconfig    |   14 +
 xen/drivers/passthrough/arm/Makefile   |    3 +-
 xen/drivers/passthrough/arm/arm_smmu.h |  113 +
 xen/drivers/passthrough/arm/smmu-v3.c  | 3619 ++++++++++++++++++++++++++++++++
 xen/drivers/passthrough/arm/smmu.c     |  114 +-
 xen/include/xen/bitops.h               |    2 +-
 xen/include/xen/lib.h                  |   11 +
 xen/include/xen/linux_compat.h         |   81 +
 11 files changed, 3852 insertions(+), 110 deletions(-)
 create mode 100644 xen/drivers/passthrough/arm/Kconfig
 create mode 100644 xen/drivers/passthrough/arm/arm_smmu.h
 create mode 100644 xen/drivers/passthrough/arm/smmu-v3.c
 create mode 100644 xen/include/xen/linux_compat.h