drm/amdgpu: implement PSP cmd GFX_CMD_ID_PROG_REG
authorTrigger Huang <Trigger.Huang@amd.com>
Mon, 6 May 2019 07:27:23 +0000 (15:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:20:51 +0000 (12:20 -0500)
commitc5d19419ed9cf8e3bc4190996ee95ea70b324737
tree14db91b05125d6d2ef987d3679ac9bec8856ae61
parent3880369f6a8ee532849ed79f901ca32ff7511540
drm/amdgpu: implement PSP cmd GFX_CMD_ID_PROG_REG

Add implementation to program regs by PSP, currently the following
IH registers are supported:
IH_RB_CNTL
IH_RB_CNTL_RING1
IH_RB_CNTL_RING2

Signed-off-by: Trigger Huang <Trigger.Huang@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