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

Commit df02b542 authored by Sushmita Susheelendra's avatar Sushmita Susheelendra Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm: Map command buffers to kernel only if required



Map command buffers to the kernel address space only if
relocs are specified for the submission. This reduces some
overhead on the submission path.

Change-Id: I32ca3c7fe2147c835a328e0c8937b45f2f3d59b9
Signed-off-by: default avatarSushmita Susheelendra <ssusheel@codeaurora.org>
parent af1ecc1e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -334,6 +334,9 @@ static int submit_reloc(struct msm_gem_submit *submit, struct msm_gem_object *ob
		return -EINVAL;
	}

	if (nr_relocs == 0)
		return 0;

	/* For now, just map the entire thing.  Eventually we probably
	 * to do it page-by-page, w/ kmap() if not vmap()d..
	 */