[PATCH] drm/amd/pm: Enable pp_feature attribute
Alex Deucher
alexdeucher at gmail.com
Mon Jun 26 13:35:39 UTC 2023
Acked-by: Alex Deucher <alexander.deucher at amd.com>
On Mon, Jun 26, 2023 at 8:35 AM Lijo Lazar <lijo.lazar at amd.com> wrote:
>
> on APUs with GFX v9.4.3
>
> Signed-off-by: Lijo Lazar <lijo.lazar at amd.com>
> ---
> drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> index 9ec51f50fc52..9ef88a0b1b57 100644
> --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> @@ -2083,7 +2083,9 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
> *states = ATTR_STATE_UNSUPPORTED;
> }
> } else if (DEVICE_ATTR_IS(pp_features)) {
> - if (adev->flags & AMD_IS_APU || gc_ver < IP_VERSION(9, 0, 0))
> + if ((adev->flags & AMD_IS_APU &&
> + gc_ver != IP_VERSION(9, 4, 3)) ||
> + gc_ver < IP_VERSION(9, 0, 0))
> *states = ATTR_STATE_UNSUPPORTED;
> } else if (DEVICE_ATTR_IS(gpu_metrics)) {
> if (gc_ver < IP_VERSION(9, 1, 0))
> --
> 2.25.1
>
More information about the amd-gfx
mailing list