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: Kasin Li <donglil@codeaurora.org>
This commit is contained in:
parent
613ad18682
commit
5cb62a17f3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue