drm/amdgpu/gfx9: change the reference clock for raven/raven2

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

 



[AMD Official Use Only - General]


    Due to switch to golden tsc register to get clock counter for raven/ raven2.

    Chang the reference clock from 25MHZ to 100MHZ.

    Signed-off-by: Jesse Zhang  Jesse.Zhang@xxxxxxx

diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c

index 7d04c39332ad..0367a97c606b 100644

--- a/drivers/gpu/drm/amd/amdgpu/soc15.c

+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c

@@ -301,11 +301,10 @@ static u32 soc15_get_xclk(struct amdgpu_device *adev)

        u32 reference_clock = adev->clock.spll.reference_freq;

        if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 0) ||

-           adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 1))

-               return 10000;

-       if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 0) ||

+           adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 1) ||

+           adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 0) ||

            adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 1))

-               return reference_clock / 4;

+               return 10000;

        return reference_clock;

}


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

  Powered by Linux