Re: [PATCH] drm/amdgpu/pm: Print od status info

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

 




On 4/17/2024 3:10 PM, Ma Jun wrote:
> Print the od status info if it's not supported.
> 
> Signed-off-by: Ma Jun <Jun.Ma2@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> index 5bc1cd4993e8..a20e03e69d38 100644
> --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> @@ -4399,6 +4399,8 @@ int amdgpu_pm_sysfs_init(struct amdgpu_device *adev)
>  		ret = amdgpu_od_set_init(adev);
>  		if (ret)
>  			goto err_out1;
> +	} else if (adev->pm.pp_feature & PP_OVERDRIVE_MASK) {
> +		DRM_INFO("overdrive feature is not supported\n");

Use dev_info. With that change,

Reviewed-by: Lijo Lazar <lijo.lazar@xxxxxxx>

Thanks,
Lijo

>  	}
>  
>  	adev->pm.sysfs_initialized = true;



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

  Powered by Linux