]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit542813bdee6f414fb3f8465a4572056b65939ce3
treebaf2bb62f9ef06caf5ccaf88094c63064d3dc5dc
parent216d5d553b855ce94a37e84532121ada93eae3e4
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