[PATCH v2 6/6] drm/amdgpu/vcn:Remove bit 31 for scratch2 to indicate the WA is active

Liu, Leo Leo.Liu at amd.com
Fri Dec 14 17:19:09 UTC 2018


The series are:

Acked-by: Leo Liu <leo.liu at amd.com>

On 12/13/18 1:08 PM, Zhu, James wrote:
> Remove bit 31 for scratch2 to indicate the Hardware bug work around is active.
>
> Signed-off-by: James Zhu <James.Zhu at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> index 564ed94..eb6b783 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> @@ -279,7 +279,7 @@ static int amdgpu_vcn_pause_dpg_mode(struct amdgpu_device *adev,
>   
>   				ring = &adev->vcn.ring_dec;
>   				WREG32_SOC15(UVD, 0, mmUVD_RBC_RB_WPTR,
> -						   RREG32_SOC15(UVD, 0, mmUVD_SCRATCH2));
> +						   RREG32_SOC15(UVD, 0, mmUVD_SCRATCH2) & 0x7FFFFFFF);
>   				SOC15_WAIT_ON_RREG(UVD, 0, mmUVD_POWER_STATUS,
>   						   UVD_PGFSM_CONFIG__UVDM_UVDU_PWR_ON,
>   						   UVD_POWER_STATUS__UVD_POWER_STATUS_MASK, ret_code);
> @@ -339,7 +339,7 @@ static int amdgpu_vcn_pause_dpg_mode(struct amdgpu_device *adev,
>   
>   				ring = &adev->vcn.ring_dec;
>   				WREG32_SOC15(UVD, 0, mmUVD_RBC_RB_WPTR,
> -						   RREG32_SOC15(UVD, 0, mmUVD_SCRATCH2));
> +						   RREG32_SOC15(UVD, 0, mmUVD_SCRATCH2) & 0x7FFFFFFF);
>   				SOC15_WAIT_ON_RREG(UVD, 0, mmUVD_POWER_STATUS,
>   						   UVD_PGFSM_CONFIG__UVDM_UVDU_PWR_ON,
>   						   UVD_POWER_STATUS__UVD_POWER_STATUS_MASK, ret_code);


More information about the amd-gfx mailing list