* [PATCH] drm/amd/amdgpu: Enable some sysnodes for guest smi
@ 2021-09-06 12:58 Roy Sun
2021-09-08 1:28 ` Deng, Emily
0 siblings, 1 reply; 2+ messages in thread
From: Roy Sun @ 2021-09-06 12:58 UTC (permalink / raw)
To: amd-gfx; +Cc: Roy Sun
Enable sysnode vclk and dclk on Navi21 asic for guest smi
Signed-off-by: Roy Sun <Roy.Sun@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] drm/amd/amdgpu: Enable some sysnodes for guest smi
2021-09-06 12:58 [PATCH] drm/amd/amdgpu: Enable some sysnodes for guest smi Roy Sun
@ 2021-09-08 1:28 ` Deng, Emily
0 siblings, 0 replies; 2+ messages in thread
From: Deng, Emily @ 2021-09-08 1:28 UTC (permalink / raw)
To: Sun, Roy, amd-gfx; +Cc: Sun, Roy
[AMD Official Use Only]
Reviewed-by: Emily.Deng <Emily.Deng@amd.com>
>-----Original Message-----
>From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Roy
>Sun
>Sent: Monday, September 6, 2021 8:59 PM
>To: amd-gfx@lists.freedesktop.org
>Cc: Sun, Roy <Roy.Sun@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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-08 1:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 12:58 [PATCH] drm/amd/amdgpu: Enable some sysnodes for guest smi Roy Sun
2021-09-08 1:28 ` Deng, Emily
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.