OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:33 +0000 (15:25 -0800)
commit1105ccf25118894ffde5b50d43c52b9e39fe3fc9
tree1248c4d4271408bfae459817a2d4f9d04cd90250
parentd7aa88a14eb059cdc9c82206cd3ee8ccb6f62ee6
crypto: ccp - Fix DMA operations when IOMMU is enabled

commit 500c0106e638e08c2c661c305ed57d6b67e10908 upstream.

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.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/ccp/ccp-dev-v5.c