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

Commit 15c45912 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm: avoid segmentation of dma_buf mappings" into dev/msm-4.14-display

parents c0f70b14 e0f3d49f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -488,6 +488,13 @@ static int _msm_smmu_create_mapping(struct msm_smmu_client *client,
		}
	}

	if (!client->dev->dma_parms)
		client->dev->dma_parms = devm_kzalloc(client->dev,
				sizeof(*client->dev->dma_parms), GFP_KERNEL);

	dma_set_max_seg_size(client->dev, DMA_BIT_MASK(32));
	dma_set_seg_boundary(client->dev, DMA_BIT_MASK(64));

	iommu_set_fault_handler(client->mmu_mapping->domain,
			msm_smmu_fault_handler, (void *)client);