drm/amdgpu/vce: add support for hw config packet (v2)
Subsystems (2)
PATCH 1/1 drm/amdgpu/vce: add support for hw config packet (v2)
This is needed for proper VCE DPM on some APUs.
v2: fix the asic list
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +14 -0
@@ -700,6 +700,20 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx)case 0x05000009 :/* clock table */ break ; +case 0x0500000c :/* hw config */ +switch (p->adev->asic_type) { +#ifdef CONFIG_DRM_AMDGPU_CIK +case CHIP_KAVERI : +case CHIP_MULLINS : +#endif +case CHIP_CARRIZO : +break ; +default : + r = -EINVAL ; + goto out; + } +break ; +case 0x03000001 :/* encode */ r =amdgpu_vce_cs_reloc (p, ib_idx, idx +10 , idx +9 , *size,0 );
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1475182636-31880-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 29.09.2016 um 22:57 schrieb Alex Deucher:
Quoted 5 lines
This is needed for proper VCE DPM on some APUs.
v2: fix the asic list
Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +7
-0@@ -700,6 +700,20 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx)case 0x05000009 :/* clock table */ break ; +case 0x0500000c :/* hw config */ +switch (p->adev->asic_type) { +#ifdef CONFIG_DRM_AMDGPU_CIK +case CHIP_KAVERI : +case CHIP_MULLINS : +#endif +case CHIP_CARRIZO :
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t ib_idx) · line 719
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +7
-0+break ; +default : + r = -EINVAL ; + goto out; + } +break ; +case 0x03000001 :/* encode */ r =amdgpu_vce_cs_reloc (p, ib_idx, idx +10 , idx +9 , *size,0 );
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx