drm/msm: Add a helper function for in-kernel buffer allocations
authorJordan Crouse <jcrouse@codeaurora.org>
Thu, 27 Jul 2017 16:42:40 +0000 (10:42 -0600)
committerRob Clark <robdclark@gmail.com>
Tue, 22 Aug 2017 17:19:17 +0000 (13:19 -0400)
commit8223286d62e296fb762e11894fbdaa84f471915d
tree2ff09fb48b0fb212ba9c2917d71ccaa20812aa40
parent1267a4dfe045df42faea5fc1dfe379b480595406
drm/msm: Add a helper function for in-kernel buffer allocations

Nearly all of the buffer allocations for kernel allocate an buffer object,
virtual address and GPU iova at the same time. Make a helper function to
handle the details.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
[dropped msm_fbdev conversion to new helper, since it interferes with
display-handover work, where we want to separate allocation and mapping]
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
drivers/gpu/drm/msm/adreno/a5xx_power.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_ringbuffer.c