diff options
author | Krishna Reddy <vdumpa@nvidia.com> | 2013-11-12 17:02:40 -0800 |
---|---|---|
committer | Krishna Reddy <vdumpa@nvidia.com> | 2013-11-15 16:47:39 -0800 |
commit | 08b47b078d9cccc831d23eeeabaeec18f51c562c (patch) | |
tree | c34255826aaeb303671225173215169d7bd2236f /drivers/crypto | |
parent | bf92cc3b3511dfb8bac73bb36704891cebb4b115 (diff) |
crypto: tegra-se: alloc ctx save buf from atomic pool
dma_alloc_coherent allocates from high memory as well.
With this, phys addr is not guarnateed to be <= 32-bit.
Use allocation from atomic pool as WAR.
Bug 1396209
Change-Id: I8730af614c8e4fc5af10f75ecaefd72feb5d278d
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/329912
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/tegra-se.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/tegra-se.c b/drivers/crypto/tegra-se.c index da482484c9ef..8d4166c25366 100644 --- a/drivers/crypto/tegra-se.c +++ b/drivers/crypto/tegra-se.c @@ -2689,11 +2689,11 @@ static int tegra_se_probe(struct platform_device *pdev) if (!se_dev->chipdata->drbg_supported) se_dev->ctx_save_buf = dma_alloc_coherent(se_dev->dev, SE_CONTEXT_BUFER_SIZE, &se_dev->ctx_save_buf_adr, - GFP_KERNEL); + GFP_ATOMIC); else se_dev->ctx_save_buf = dma_alloc_coherent(se_dev->dev, SE_CONTEXT_DRBG_BUFER_SIZE, - &se_dev->ctx_save_buf_adr, GFP_KERNEL); + &se_dev->ctx_save_buf_adr, GFP_ATOMIC); if (!se_dev->ctx_save_buf) { dev_err(se_dev->dev, "Context save buffer alloc filed\n"); |