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

Commit cf10ac2f authored by Olav Haugan's avatar Olav Haugan
Browse files

iommu: msm: Add base physical address to drvdata structure



Add the physical address value to the iommu drvdata structure. This
address is needed for debugging purposes when we get iommu page
faults and during iommu halt and tlb sync issues.

Change-Id: I2d4f36cdfe8a3da772839cb07cd186820f2e1f52
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 219364c5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ struct msm_iommu_bfb_settings {
 * struct msm_iommu_drvdata - A single IOMMU hardware instance
 * @base:	IOMMU config port base address (VA)
 * @glb_base:	IOMMU config port base address for global register space (VA)
 * @phys_base:  IOMMU physical base address.
 * @ncb		The number of contexts on this IOMMU
 * @irq:	Interrupt number
 * @clk:	The bus clock for this IOMMU hardware instance
@@ -110,6 +111,7 @@ struct msm_iommu_bfb_settings {
 */
struct msm_iommu_drvdata {
	void __iomem *base;
	phys_addr_t phys_base;
	void __iomem *glb_base;
	void __iomem *cb_base;
	void __iomem *smmu_local_base;
+2 −0
Original line number Diff line number Diff line
@@ -309,6 +309,8 @@ static int msm_iommu_probe(struct platform_device *pdev)
	if (!drvdata->base)
		return -ENOMEM;

	drvdata->phys_base = r->start;

	r = platform_get_resource_byname(pdev, IORESOURCE_MEM,
					"smmu_local_base");
	if (r) {