drm/amdgpu/gfx9: properly set the hdp flush reg for Raven
Subsystems (2)
PATCH 1/1 drm/amdgpu/gfx9: properly set the hdp flush reg for Raven
Was only being assigned for vega10.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +3 -1
@@ -3514,7 +3514,9 @@ static void gfx_v9_0_ring_emit_hdp_flush(struct amdgpu_ring *ring)u32 ref_and_mask, reg_mem_engine;struct nbio_hdp_flush_reg *nbio_hf_reg; -if (ring->adev->asic_type ==CHIP_VEGA10 ) +if (ring->adev->flags &AMD_IS_APU ) + nbio_hf_reg = &nbio_v7_0_hdp_flush_reg; +else nbio_hf_reg = &nbio_v6_1_hdp_flush_reg;if (ring->funcs->type ==AMDGPU_RING_TYPE_COMPUTE ) {
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): 1504333124-18129-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Zhang, Jerry (Junwei)
Reviewed-by Junwei ZhangQuoted 3 lines · Alex Deucher
Was only being assigned for vega10.
Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Junwei Zhang <[email protected]>
Quoted 10 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_ring_emit_hdp_flush(struct amdgpu_ring *ring) · line 3522
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +3
-1@@ -3514,7 +3514,9 @@ static void gfx_v9_0_ring_emit_hdp_flush(struct amdgpu_ring *ring)u32 ref_and_mask, reg_mem_engine;struct nbio_hdp_flush_reg *nbio_hf_reg; -if (ring->adev->asic_type ==CHIP_VEGA10 ) +if (ring->adev->flags &AMD_IS_APU ) + nbio_hf_reg = &nbio_v7_0_hdp_flush_reg; +else nbio_hf_reg = &nbio_v6_1_hdp_flush_reg;if (ring->funcs->type ==AMDGPU_RING_TYPE_COMPUTE ) {
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx