summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_c3xxx
diff options
context:
space:
mode:
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>2021-08-12 09:18:14 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-08-21 15:44:54 +0800
commitae1f5043e2595bf29d348f2b4633fca5e930d3e3 (patch)
tree1e205d7ffea2d6a459690009bc4841b54da10997 /drivers/crypto/qat/qat_c3xxx
parent6e422ccea4a67929e277f619f75995115511e206 (diff)
downloadlinux-stable-ae1f5043e2595bf29d348f2b4633fca5e930d3e3.tar.gz
linux-stable-ae1f5043e2595bf29d348f2b4633fca5e930d3e3.tar.bz2
linux-stable-ae1f5043e2595bf29d348f2b4633fca5e930d3e3.zip
crypto: qat - set DMA mask to 48 bits for Gen2
Change the DMA mask from 64 to 48 for Gen2 devices as they cannot handle addresses greater than 48 bits. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_c3xxx')
-rw-r--r--drivers/crypto/qat/qat_c3xxx/adf_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_c3xxx/adf_drv.c b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
index b561851cf955..2df26643dbc9 100644
--- a/drivers/crypto/qat/qat_c3xxx/adf_drv.c
+++ b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
@@ -159,7 +159,7 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}
/* set dma identifier */
- ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
+ ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48));
if (ret) {
dev_err(&pdev->dev, "No usable DMA configuration\n");
goto out_err_disable;