This is the foundation for VCE 1 implementation, mostly ported from radeon to amdgpu. This should have no impact for now on the usability of the driver. This is the pretty straight-forward part. The heavier part is coming as a RFC. I'd like to have this first part available to all, since I don't have as much time as I'd like to work on VCE 1 for now, but this could help others to help me on the task. If you are not satisfied with this first series, this can also be considered as a RFC. Please, comment as needed. Alexandre Demers (6): Add initial VCE_V1_0 files. Reorganize, rename, move and split some VCE 1 defines. Small precision when failing to load legacy firmware. Moving read and write pointer functions from radeon to amdgpu Add support for SI's VCE firmwares (with and without header) Fix indentation. drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 100 ++++-- drivers/gpu/drm/amd/amdgpu/si.c | 17 +- drivers/gpu/drm/amd/amdgpu/si_dma.c | 5 +- drivers/gpu/drm/amd/amdgpu/si_ih.c | 21 +- drivers/gpu/drm/amd/amdgpu/sid.h | 70 ---- drivers/gpu/drm/amd/amdgpu/vce_v1_0.c | 394 +++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/vce_v1_0.h | 29 ++ .../gpu/drm/amd/include/asic_reg/vce/vce_1_0_d.h | 80 +++-- .../drm/amd/include/asic_reg/vce/vce_1_0_sh_mask.h | 13 +- drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- 10 files changed, 589 insertions(+), 142 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/vce_v1_0.c create mode 100644 drivers/gpu/drm/amd/amdgpu/vce_v1_0.h -- 2.14.1