[PATCH] drm/amd/amdgpu: Enable some sysnodes for guest smi

Deng, Emily Emily.Deng at amd.com
Wed Sep 8 01:28:10 UTC 2021


[AMD Official Use Only]

Reviewed-by: Emily.Deng <Emily.Deng at amd.com>

>-----Original Message-----
>From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Roy
>Sun
>Sent: Monday, September 6, 2021 8:59 PM
>To: amd-gfx at lists.freedesktop.org
>Cc: Sun, Roy <Roy.Sun at amd.com>
>Subject: [PATCH] drm/amd/amdgpu: Enable some sysnodes for guest smi
>
>Enable sysnode vclk and dclk on Navi21 asic for guest smi
>
>Signed-off-by: Roy Sun <Roy.Sun at amd.com>
>---
> drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
>b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
>index 249cb0aeb5ae..c255b4b8e685 100644
>--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
>+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
>@@ -2087,10 +2087,10 @@ static int default_attr_update(struct
>amdgpu_device *adev, struct amdgpu_device_
>               if (asic_type < CHIP_VEGA12)
>                       *states = ATTR_STATE_UNSUPPORTED;
>       } else if (DEVICE_ATTR_IS(pp_dpm_vclk)) {
>-              if (!(asic_type == CHIP_VANGOGH))
>+              if (!(asic_type == CHIP_VANGOGH || asic_type ==
>CHIP_SIENNA_CICHLID))
>                       *states = ATTR_STATE_UNSUPPORTED;
>       } else if (DEVICE_ATTR_IS(pp_dpm_dclk)) {
>-              if (!(asic_type == CHIP_VANGOGH))
>+              if (!(asic_type == CHIP_VANGOGH || asic_type ==
>CHIP_SIENNA_CICHLID))
>                       *states = ATTR_STATE_UNSUPPORTED;
>       }
>
>--
>2.32.0



More information about the amd-gfx mailing list