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

Commit 434d93d2 authored by Liam Mark's avatar Liam Mark
Browse files

ion: add support for mapping with dma mapping attributes



Add support for configuring dma mapping attributes when mapping
memory through dma_buf_map_attachment.

Change-Id: I05c2133c432718bcaececb3858af19652d31b02b
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent 28bb5f16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -365,8 +365,8 @@ static struct sg_table *ion_map_dma_buf(struct dma_buf_attachment *attachment,

	table = a->table;

	if (!dma_map_sg(attachment->dev, table->sgl, table->nents,
			direction)){
	if (!dma_map_sg_attrs(attachment->dev, table->sgl, table->nents,
			      direction, attachment->dma_map_attrs)){
		ret = -ENOMEM;
		goto err;
	}
+1 −0
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@ struct dma_buf_attachment {
	struct device *dev;
	struct list_head node;
	void *priv;
	unsigned long dma_map_attrs;
};

/**