]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:56:06 +0000 (10:56 -0700)
commit30882534c63311896984d4d48247cf022ea82c4a
treed2c83a8072673ec2a35d2f51b0e4c9ac84005e09
parent9a9945fc84cafef06471e82305d5ed5a1e7db804
crypto: ccp - Fix DMA operations when IOMMU is enabled

Orabug: 26644685

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>
(cherry picked from commit 500c0106e638e08c2c661c305ed57d6b67e10908)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/ccp-dev-v5.c