drm/msm/gpu: Map the ringbuffer in the iova at create time
authorJordan Crouse <jcrouse@codeaurora.org>
Wed, 7 Nov 2018 22:35:54 +0000 (15:35 -0700)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:07:03 +0000 (13:07 -0500)
commit84c6127580c1cee58d57d5f97ce22f1131ecdfc9
treebaf2bb62f9ef06caf5ccaf88094c63064d3dc5dc
parent0815d7749a68527adabe2ac40d49f6fc0800eae5
drm/msm/gpu: Map the ringbuffer in the iova at create time

For reasons that I'm sure made perfect sense at the time we were
opting to defer the iova alloc / pin on the ringbuffer until HW
init time so when we moved to iova reference counting we ended
up adding a reference count every time the hardware started.
Not that it mattered (because the ring is always around) but
it did make the debug output look odd. Allocate and pin the iova
at create time instead.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_ringbuffer.c