lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210723193140.9690-1-nicolinc@nvidia.com>
Date:   Fri, 23 Jul 2021 12:31:38 -0700
From:   Nicolin Chen <nicolinc@...dia.com>
To:     <will@...nel.org>, <robin.murphy@....com>, <joro@...tes.org>
CC:     <nicoleotsuka@...il.com>, <vdumpa@...dia.com>,
        <thierry.reding@...il.com>, <linux-tegra@...r.kernel.org>,
        <nwatterson@...dia.com>, <Jonathan.Cameron@...wei.com>,
        <jean-philippe@...aro.org>, <song.bao.hua@...ilicon.com>,
        <eric.auger@...hat.com>, <thunder.leizhen@...wei.com>,
        <yuzenghui@...wei.com>, <linux-kernel@...r.kernel.org>,
        <linux-arm-kernel@...ts.infradead.org>,
        <iommu@...ts.linux-foundation.org>
Subject: [RFC][Patch v1 0/2] iommu/arm-smmu-v3: Add NVIDIA implementation

From: Nicolin Chen <nicoleotsuka@...il.com>

The SMMUv3 devices implemented in the Grace SoC support NVIDIA's custom
CMDQ-Virtualization (CMDQV) hardware. Like the new ECMDQ feature first
introduced in the ARM SMMUv3.3 specification, CMDQV adds multiple VCMDQ
interfaces to supplement the single architected SMMU_CMDQ in an effort
to reduce contention.

This patch series adds CMDQV support to the arm-smmu-v3 driver by first
borrowing the implementation infrastructure from the arm-smmu driver.
The NVIDIA implementation is then introduced along with hooks allowing
implmentations to specify custom issue_cmdlist methods. Additionally,
the original issue_cmdlist and supporting methods in the arm-smmu-v3
driver are reworked to support alternative CMDQs. 

[ nicolinc: this v1 is more of base changes for CMDQV driver; while I
  am still integrating incremental features based on VFIO mdev, I sent
  these two out in order to collect comments and suggestions to see if
  the overall structure is promising. I will add more changes in v2 or
  later versions for more detailed implementations. Thank you! ]

Nate Watterson (2):
  iommu/arm-smmu-v3: Add implementation infrastructure
  iommu/arm-smmu-v3: Add support for NVIDIA CMDQ-Virtualization hw

 MAINTAINERS                                   |   2 +
 drivers/iommu/arm/arm-smmu-v3/Makefile        |   2 +-
 .../iommu/arm/arm-smmu-v3/arm-smmu-v3-impl.c  |  15 +
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  71 +--
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h   |  15 +
 .../iommu/arm/arm-smmu-v3/nvidia-smmu-v3.c    | 425 ++++++++++++++++++
 6 files changed, 503 insertions(+), 27 deletions(-)
 create mode 100644 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-impl.c
 create mode 100644 drivers/iommu/arm/arm-smmu-v3/nvidia-smmu-v3.c

-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ