drm/msm: a6xx: Use WHERE_AM_I for eligible targets
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 14 Sep 2020 22:40:22 +0000 (16:40 -0600)
committerRob Clark <robdclark@chromium.org>
Tue, 15 Sep 2020 17:47:44 +0000 (10:47 -0700)
commitd3a569fccfa087ac685b17fc378547846891e7b4
tree22ebebe52e9e6fa71d6942b6ae5a4349fa6d9e8f
parent8907afb476ac6754a4d1ba8d2dd16dbb0fd4d428
drm/msm: a6xx: Use WHERE_AM_I for eligible targets

Support the WHERE_AM_I opcode for the A618, A630 and A640 GPUs if the
microcode supports it. The WHERE_AM_I opcode allows the RPTR shadow
to be updated in priviliged memory which protects the shadow from being
read or written from user submissions.

A650 already supports extended APRIV have built in hardware support for
to access privilged memory from the CP and can go back to using the
hardware RPTR shadow feature.

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