[PATCH] drm/amdgpu: Fix refclk reporting for SMU v13.0.6

Lazar, Lijo lijo.lazar at amd.com
Thu Sep 7 04:11:57 UTC 2023



On 9/6/2023 8:53 PM, Alex Deucher wrote:
> On Wed, Sep 6, 2023 at 12:05 AM Lijo Lazar <lijo.lazar at amd.com> wrote:
>>
>> SMU v13.0.6 SOCs have 100MHz reference clock.
>>
> 
> Do we want to use the vbios value on boards that have a vbios?  If
> it's the same on all variants, then this is probably fine as is.
> 

Yes, it's the same for all variants.

Thanks,
Lijo

> Alex
> 
>> Signed-off-by: Lijo Lazar <lijo.lazar at amd.com>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/soc15.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
>> index f5be40d7ba36..28094cd7d9c2 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
>> @@ -325,7 +325,8 @@ 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))
>> +           adev->ip_versions[MP1_HWIP][0] == IP_VERSION(12, 0, 1) ||
>> +           adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 6))
>>                  return 10000;
>>          if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 0) ||
>>              adev->ip_versions[MP1_HWIP][0] == IP_VERSION(10, 0, 1))
>> --
>> 2.25.1
>>


More information about the amd-gfx mailing list