summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp
diff options
context:
space:
mode:
authorGary R Hook <gary.hook@amd.com>2017-01-27 15:28:45 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-14 15:25:33 -0800
commit1105ccf25118894ffde5b50d43c52b9e39fe3fc9 (patch)
tree1248c4d4271408bfae459817a2d4f9d04cd90250 /drivers/crypto/ccp
parentd7aa88a14eb059cdc9c82206cd3ee8ccb6f62ee6 (diff)
downloadlinux-stable-1105ccf25118894ffde5b50d43c52b9e39fe3fc9.tar.gz
linux-stable-1105ccf25118894ffde5b50d43c52b9e39fe3fc9.tar.bz2
linux-stable-1105ccf25118894ffde5b50d43c52b9e39fe3fc9.zip
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>
Diffstat (limited to 'drivers/crypto/ccp')
-rw-r--r--drivers/crypto/ccp/ccp-dev-v5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c
index faf3cb3ddce2..a388bf2d67f4 100644
--- a/drivers/crypto/ccp/ccp-dev-v5.c
+++ b/drivers/crypto/ccp/ccp-dev-v5.c
@@ -955,7 +955,7 @@ static irqreturn_t ccp5_irq_handler(int irq, void *data)
static void ccp5_config(struct ccp_device *ccp)
{
/* Public side */
- iowrite32(0x00001249, ccp->io_regs + CMD5_REQID_CONFIG_OFFSET);
+ iowrite32(0x0, ccp->io_regs + CMD5_REQID_CONFIG_OFFSET);
}
static void ccp5other_config(struct ccp_device *ccp)