crypto: ccp: Fix DMA operations when IOMMU is enabled
Subsystems (2)
PATCH 1/1 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.
--- drivers/crypto/ccp/ccp-dev-v5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/ccp/ccp-dev-v5.c +1 -1
@@ -959,7 +959,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)
Quoted 5 lines · Gary R Hook
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.
Herbert,
Hoping to get some 4.10 love on this patch, plus one other. Do we see a possibility at this late date?
Quoted 25 lines
Signed-off-by Gary R Hook <[email protected]>--- drivers/crypto/ccp/ccp-dev-v5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/crypto/ccp/ccp-dev-v5.c +1
-2@@ -959,7 +959,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) --To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 3 lines
This is my day job. Follow me at: IG/Twitter/Facebook: @grhookphoto IG/Twitter/Facebook: @grhphotographer
Herbert Xu
maintainerQuoted 7 lines · Gary R Hook
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 <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt