drm/msm/a6xx: Fix PDC register overlap
authorJordan Crouse <jcrouse@codeaurora.org>
Wed, 8 Aug 2018 22:39:38 +0000 (16:39 -0600)
committerRob Clark <robdclark@gmail.com>
Thu, 4 Oct 2018 00:24:54 +0000 (20:24 -0400)
commitf8fc924e088ef49da5ab99a227d176facf47c25c
tree8207b0eeac33c8a885ad3ea15802de4a7e980cec
parent06feed5618e7cb0b3bf3e279f029f8ce1b7ea0b9
drm/msm/a6xx: Fix PDC register overlap

The current design greedily takes a big chunk of the PDC
register space instead of just the GPU specific sections
which conflicts with other drivers and generally makes
a mess of things.

Furthermore we only need to map the GPU PDC sections
just once during init so map the memory inside the function
that uses it and adjust the pointers and register offsets
accordingly.

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