[PATCH v2] drm/amd/pm: disbale dcefclk device sysnode on GFX v9.4.3 chip
Lazar, Lijo
lijo.lazar at amd.com
Wed Jul 5 06:11:25 UTC 2023
On 7/5/2023 11:34 AM, Yang Wang wrote:
> v1:
> the dceflck sysnode is not aviable on GFX v9.4.3 chip.
>
> v2:
> simplify code logic using helper function: amdgpu_device_has_display_hardware().
>
> Signed-off-by: Yang Wang <kevinyang.wang at amd.com>
> Reviewed-by: Kenneth Feng <kenneth.feng at amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar at amd.com>
Thanks,
Lijo
> ---
> drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> index 9ef88a0b1b57..3922dd274f30 100644
> --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> @@ -2049,8 +2049,7 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
> *states = ATTR_STATE_UNSUPPORTED;
> } else if (DEVICE_ATTR_IS(pp_dpm_dcefclk)) {
> if (gc_ver < IP_VERSION(9, 0, 0) ||
> - gc_ver == IP_VERSION(9, 4, 1) ||
> - gc_ver == IP_VERSION(9, 4, 2))
> + !amdgpu_device_has_display_hardware(adev))
> *states = ATTR_STATE_UNSUPPORTED;
> } else if (DEVICE_ATTR_IS(pp_dpm_fclk)) {
> if (mp1_ver < IP_VERSION(10, 0, 0))
More information about the amd-gfx
mailing list