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

Commit 5cb62a17 authored by Kasin Li's avatar Kasin Li Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm: Fix kernel address issue of profile buffer



Current DRM adds offset when making IOVA but failed to add it when
making kernel address. This makes DRM write queue_s and submit_s to
wrong place if the profile buffer is not at the head of
a chunk of buffer.

Change-Id: I5af9c3050f4c6c5e0a54ed495bf79053f08f0bab
Signed-off-by: default avatarKasin Li <donglil@codeaurora.org>
parent 613ad186
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -482,7 +482,8 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
		if (submit_cmd.type == MSM_SUBMIT_CMD_PROFILE_BUF) {
			submit->profile_buf_iova = submit->cmd[i].iova;
			submit->profile_buf_vaddr =
				msm_gem_vaddr(&msm_obj->base);
				msm_gem_vaddr(&msm_obj->base) +
				submit_cmd.submit_offset;
		}

		if (submit->valid)