msm: kgsl: Set DMA Mask for gmu device

A single page buffer allocated via dma_alloc_attrs comes
from the system memory instead of contiguous space now.
That page can have address larger than the default dma
mask of 32 bits.

Change-Id: I591f09362d67b2a80e335ba3e593bd5e4e2f08ea
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This commit is contained in:
Harshdeep Dhatt 2019-10-08 15:24:57 -07:00
commit 572d5edff4

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
*/
#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
@ -1308,6 +1308,10 @@ static int gmu_probe(struct kgsl_device *device, struct device_node *node)
of_dma_configure(&gmu->pdev->dev, node, true);
dma_set_coherent_mask(&gmu->pdev->dev, DMA_BIT_MASK(64));
gmu->pdev->dev.dma_mask = &gmu->pdev->dev.coherent_dma_mask;
set_dma_ops(&gmu->pdev->dev, NULL);
/* Set up GMU regulators */
ret = gmu_regulators_probe(gmu, node);
if (ret)