]> 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)
commit51c12076cf0c59f9fd8d6eefbbc754522085db95
treebaf2bb62f9ef06caf5ccaf88094c63064d3dc5dc
parentfd4ce85e29855a6a6b17a38a078ca24886226e79
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