[dpdk-stable] [dpdk-dev] [PATCH v1 5/6] crypto/ccp: enable IOMMU for CCP CCP use vdev framework, and vdev framework don’t support IOMMU. Adding custom IOMMU support for AMD CCP drives.

Jerin Jacob jerinjacobk at gmail.com
Mon Oct 14 08:10:55 CEST 2019


On Mon, Oct 14, 2019 at 10:52 AM <asomalap at amd.com> wrote:
>
> From: Amaranath Somalapuram <asomalap at amd.com>

git commit subject not found. Make sure to run the following before
submitting the patch

./devtools/check-git-log.sh
./devtools/checkpatches.sh
>
> Signed-off-by: Amaranath Somalapuram <asomalap at amd.com>
> ---
>  drivers/crypto/ccp/ccp_crypto.c  | 244 ++++++++++++++++++++++++-------
>  drivers/crypto/ccp/ccp_dev.c     |  56 ++-----
>  drivers/crypto/ccp/ccp_dev.h     |   2 +-
>  drivers/crypto/ccp/ccp_pci.c     |   1 +


>                 goto fail;
> +       if(iommu_mode == 2)
> +               pci->kdrv = RTE_KDRV_VFIO;
> +       else if(iommu_mode == 0)
> +               pci->kdrv = RTE_KDRV_IGB_UIO;
> +       else if (iommu_mode == 1)
> +               pci->kdrv = RTE_KDRV_UIO_GENERIC;

The crypto driver should not have iommu mode-specific handling.
I am not sure about the problem statement. If the problem is,
iommu support for PCI based vdev device then move the solution to
common layer so that everyone can use it. If not, please share the
problem statement.


More information about the stable mailing list