]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - Fix DMA operations when IOMMU is enabled
authorGary R Hook <gary.hook@amd.com>
Fri, 27 Jan 2017 21:28:45 +0000 (15:28 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Feb 2017 09:45:45 +0000 (17:45 +0800)
commit0885ac6ff8b20ef44d85a738f4e8b97f0dadd846
tree8fcb8de6b8ee55537f6866bd2bf3ba128f22a803
parent34a89c301ac20950c74bbc720cc865e0e6a11c77
crypto: ccp - Fix DMA operations when IOMMU is enabled

An I/O page fault occurs when the IOMMU is enabled on a
system that supports the v5 CCP.  DMA operations use a
Request ID value that does not match what is expected by
the IOMMU, resulting in the I/O page fault.  Setting the
Request ID value to 0 corrects this issue.

Cc: <stable@vger.kernel.org>
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev-v5.c