drm/amdgpu: add helper func for psp ring cmd submission
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 18 Nov 2019 09:03:12 +0000 (17:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 17:09:06 +0000 (12:09 -0500)
commitcc65176e511c4b988c91b4ab806fce66209b1a42
tree3aacf15001f809648d2eb21519af4a134e23470f
parent13a390a6f98abed327ec794a70830f066f3b6507
drm/amdgpu: add helper func for psp ring cmd submission

Except for ring wptr update, the psp ring cmd submission
function shouldn't be IP specific one. Create a common
helper function to be shared 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.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h