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

Commit 25f70927 authored by Rob Clark's avatar Rob Clark Committed by Jordan Crouse
Browse files

drm/msm: set dma_mask properly

Previous value really only made sense on armv7 without LPAE.  Everything
that supports more than 4g of memory also has iommu's that can map
anything.

Change-Id: Ic0dedbad6ca5973f2ac0d2690dec77e40787b8da
Git-commit: 49d24b7a6bf253aeb7cb81672316c83e7b628ea9
Git-repo: https://github.com/freedreno/kernel-msm


Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
[jcrouse@codeaurora.org: Fixed minor merge issues]
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent a2f939ec
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1777,7 +1777,13 @@ static int msm_pdev_probe(struct platform_device *pdev)
		component_match_add(&pdev->dev, &match, compare_dev, dev);
	}
#endif
	pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
	/* on all devices that I am aware of, iommu's which cna map
	 * any address the cpu can see are used:
	 */
	ret = dma_set_mask_and_coherent(&pdev->dev, ~0);
	if (ret)
		return ret;

	ret = msm_add_master_component(&pdev->dev, match);

	return ret;