diff options
author | Rob Clark <robdclark@gmail.com> | 2016-11-11 19:08:45 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2016-11-28 23:14:08 +0300 |
commit | d0651fe8ab6414a586e9bc13b66e938e49691598 (patch) | |
tree | c9a95789a8794a1c2ddc520f88d463e6c1249690 /drivers/gpu/drm/msm | |
parent | 78babc1633c4b0664ea516500c2ace9bf1f17bc7 (diff) | |
download | linux-d0651fe8ab6414a586e9bc13b66e938e49691598.tar.xz |
drm/msm/rd: support for 64b iova
For backwards compat, the rd format puts the high 32b after the size
field in the GPUADDR packet.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/msm_rd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_rd.c b/drivers/gpu/drm/msm/msm_rd.c index 8487f461f05f..6607456dc626 100644 --- a/drivers/gpu/drm/msm/msm_rd.c +++ b/drivers/gpu/drm/msm/msm_rd.c @@ -289,7 +289,7 @@ void msm_rd_debugfs_cleanup(struct drm_minor *minor) static void snapshot_buf(struct msm_rd_state *rd, struct msm_gem_submit *submit, int idx, - uint32_t iova, uint32_t size) + uint64_t iova, uint32_t size) { struct msm_gem_object *obj = submit->bos[idx].obj; const char *buf; @@ -306,7 +306,7 @@ static void snapshot_buf(struct msm_rd_state *rd, } rd_write_section(rd, RD_GPUADDR, - (uint32_t[2]){ iova, size }, 8); + (uint32_t[3]){ iova, size, iova >> 32 }, 12); rd_write_section(rd, RD_BUFFER_CONTENTS, buf, size); msm_gem_put_vaddr_locked(&obj->base); |