[PATCH] drm/amdgpu: correct reference clock value on vega10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 29, 2017 at 3:42 AM,  <ken.wang at amd.com> wrote:
> From: Ken Wang <Ken.Wang at amd.com>
>
> Change-Id: I377029075af1e2e002f7cfd793ddd58d8610e474
> Signed-off-by: Ken Wang <Ken.Wang at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index 7839677..631b1e3 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -280,7 +280,7 @@ static void soc15_init_golden_registers(struct amdgpu_device *adev)
>  static u32 soc15_get_xclk(struct amdgpu_device *adev)
>  {
>         if (adev->asic_type == CHIP_VEGA10)
> -               return adev->clock.spll.reference_freq/4;
> +               return 27000;

Why do we need to change this?  Is the vbios table wrong?  See
amdgpu_atomfirmware_get_clock_info().

Alex

>         else
>                 return adev->clock.spll.reference_freq;
>  }
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux