Re: [PATCH] amdgpu/pm: Enable sysfs node for pp_dpm_vclk for NAVI12

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

 





On 3/28/2022 4:21 PM, Marko Zekovic wrote:
SMI clock measure API is failing on NAVI12, because
sysfs node for pp_dpm_vclk is not existing

Signed-off-by: Marko Zekovic <Marko.Zekovic@xxxxxxx>
Change-Id: I240fa055600bfc0d46dfec374339ba61764f9ab2
---
  drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index 9ce597ded31db..5d0602d2c1a1e 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
@@ -2001,7 +2001,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
  			*states = ATTR_STATE_UNSUPPORTED;
  	} else if (DEVICE_ATTR_IS(pp_dpm_vclk)) {
  		if (!(gc_ver == IP_VERSION(10, 3, 1) ||
-		      gc_ver == IP_VERSION(10, 3, 0)))
+		      gc_ver == IP_VERSION(10, 3, 0) ||
+		      gc_ver == IP_VERSION(10, 1, 2)))

For VCN, V and DCLK go in pair. A similar change needed for DCLK?

Thanks,
Lijo

  			*states = ATTR_STATE_UNSUPPORTED;
  	} else if (DEVICE_ATTR_IS(pp_dpm_dclk)) {
  		if (!(gc_ver == IP_VERSION(10, 3, 1) ||




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

  Powered by Linux