OSDN Git Service

drm/msm: gpu Add new gpu register read/write functions
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 28 Nov 2016 19:28:28 +0000 (12:28 -0700)
committerRob Clark <robdclark@gmail.com>
Mon, 28 Nov 2016 20:14:12 +0000 (15:14 -0500)
commitae53a829d5c9715b651ee33e266eaa4454e7f2ad
tree1dcf37dc0cdaec9a9a90c22631f2e33f222c6115
parentc4a8d4756061f72cba52af1e3035c07769cee679
drm/msm: gpu Add new gpu register read/write functions

Add some new functions to manipulate GPU registers.  gpu_read64 and
gpu_write64 can read/write a 64 bit value to two 32 bit registers.
For 4XX and older these are normally perfcounter registers, but
future targets will use 64 bit addressing so there will be many
more spots where a 64 bit read and write are needed.

gpu_rmw() does a read/modify/write on a 32 bit register given a mask
and bits to OR in.

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