Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 572d5edf authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

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: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 5f43d180
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
// 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)