diff options
author | Leo Liu <leo.liu@amd.com> | 2019-05-27 10:46:25 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-21 18:59:33 -0500 |
commit | dc8ae677c2a03891149a743fe50931bae4c506c5 (patch) | |
tree | 8601ad26cc804dae3b9449762a1b21b1919ac71e /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |
parent | a77b9fdf9aca3d9d8955487e95cd1e884b45fe1a (diff) | |
download | linux-dc8ae677c2a03891149a743fe50931bae4c506c5.tar.gz linux-dc8ae677c2a03891149a743fe50931bae4c506c5.tar.bz2 linux-dc8ae677c2a03891149a743fe50931bae4c506c5.zip |
drm/amdgpu/VCN: implement indirect DPG SRAM mode
SRAM will be programmed by PSP
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index 762cffeaf301..99f14fcc1460 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h @@ -111,6 +111,9 @@ (0x1 << UVD_DPG_LMA_CTL__READ_WRITE__SHIFT | \ mask_en << UVD_DPG_LMA_CTL__MASK_EN__SHIFT | \ offset << UVD_DPG_LMA_CTL__READ_WRITE_ADDR__SHIFT)); \ + } else { \ + *adev->vcn.dpg_sram_curr_addr++ = offset; \ + *adev->vcn.dpg_sram_curr_addr++ = value; \ } \ } while (0) |