drm/amdgpu: add psp funcs for ring write pointer read/write
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 18 Nov 2019 09:13:56 +0000 (17:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 17:08:58 +0000 (12:08 -0500)
commit13a390a6f98abed327ec794a70830f066f3b6507
tree5d0ac8b92e24ce615756c1daef42e7ae4ceba5d4
parent32cc3bf0a77c0e600a3df33f1661da4dee7ceadb
drm/amdgpu: add psp funcs for ring write pointer read/write

The ring write pointer regsiter update is the only part that
is IP specific ones in psp_cmd_submit function.

Add two callbacks for wptr read/write so that we unify the
psp_cmd_submit function for all the ASICs.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c