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

Commit ccc854ca authored by Srinivasarao Pathipati's avatar Srinivasarao Pathipati
Browse files

dma-buf: suppress warnings for direct dma clients



Client with direct dma will have multiple dma buffer segments.
Warning is raised as partial cmo only supported with one segment.
Suppress these warnings as this is known limitation.

Change-Id: Ie534b2b11121e60bf87f671b14ea1b1fd57633af
Signed-off-by: default avatarSrinivasarao Pathipati <quic_spathi@quicinc.com>
parent 9aac0330
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -360,9 +360,11 @@ static int mem_buf_sgl_sync_range(struct device *dev, struct scatterlist *sgl,
			break;
			break;


		if (i > 0) {
		if (i > 0) {
			if (get_dma_ops(dev)) {
				pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
				pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
					"is dma_set_max_seg_size being set on dev:%s\n",
					"is dma_set_max_seg_size being set on dev:%s\n",
					dev_name(dev));
					dev_name(dev));
			}
			return -EINVAL;
			return -EINVAL;
		}
		}
	}
	}
+5 −3
Original line number Original line Diff line number Diff line
@@ -500,9 +500,11 @@ static int ion_sgl_sync_range(struct device *dev, struct scatterlist *sgl,
			break;
			break;


		if (i > 0) {
		if (i > 0) {
			if (get_dma_ops(dev)) {
				pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
				pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
					"is dma_set_max_seg_size being set on dev:%s\n",
					"is dma_set_max_seg_size being set on dev:%s\n",
					dev_name(dev));
					dev_name(dev));
			}
			return -EINVAL;
			return -EINVAL;
		}
		}
	}
	}