diff options
| author | Alex Deucher <[email protected]> | 2015-10-02 18:03:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2015-10-14 20:16:23 +0000 |
| commit | 554384198c11717d9d9fdb2c9aa83ab78cd50fdf (patch) | |
| tree | 265761c021b775fb78989fb8859723e6b0bac2e4 /drivers/gpu/drm/amd/amdgpu/atom.c | |
| parent | drm/amdgpu/atom: implement debug opcode (diff) | |
| download | kernel-554384198c11717d9d9fdb2c9aa83ab78cd50fdf.tar.gz kernel-554384198c11717d9d9fdb2c9aa83ab78cd50fdf.zip | |
drm/amdgpu/atom: add support for process ds opcode
Just skips a data section.
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/atom.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c index 331bd059d2ec..885d3d3b5213 100644 --- a/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/drivers/gpu/drm/amd/amdgpu/atom.c @@ -1026,6 +1026,13 @@ static void atom_op_debug(atom_exec_context *ctx, int *ptr, int arg) SDEBUG("DEBUG output: 0x%02X\n", val); } +static void atom_op_processds(atom_exec_context *ctx, int *ptr, int arg) +{ + uint16_t val = U16(*ptr); + (*ptr) += val + 2; + SDEBUG("PROCESSDS output: 0x%02X\n", val); +} + static struct { void (*func) (atom_exec_context *, int *, int); int arg; @@ -1152,7 +1159,9 @@ static struct { atom_op_shr, ATOM_ARG_FB}, { atom_op_shr, ATOM_ARG_PLL}, { atom_op_shr, ATOM_ARG_MC}, { -atom_op_debug, 0},}; + atom_op_debug, 0}, { + atom_op_processds, 0}, +}; static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params) { |
