[PATCH] drm/amdgpu/powerplay: use proper revision id for navi

Wang, Kevin(Yang) Kevin1.Wang at amd.com
Fri Jul 26 04:46:35 UTC 2019


Reviewed-by: Kevin Wang <kevin1.wang at amd.com>

Best Regards,
Kevin
________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Xu, Feifei <Feifei.Xu at amd.com>
Sent: Friday, July 26, 2019 12:20 PM
To: Alex Deucher <alexdeucher at gmail.com>; amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>
Subject: RE: [PATCH] drm/amdgpu/powerplay: use proper revision id for navi


Reviewed-by: Feifei Xu <Feifei.Xu at amd.com>

-----Original Message-----
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Alex Deucher
Sent: Friday, July 26, 2019 12:11 PM
To: amd-gfx at lists.freedesktop.org
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>
Subject: [PATCH] drm/amdgpu/powerplay: use proper revision id for navi

The PCI revision id determines the sku.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
index c873228bf05f..dbac24e44174 100644
--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
@@ -1592,7 +1592,7 @@ static int navi10_set_peak_clock_by_device(struct smu_context *smu)
         uint32_t sclk_freq = 0, uclk_freq = 0;
         uint32_t uclk_level = 0;

-       switch (adev->rev_id) {
+       switch (adev->pdev->revision) {
         case 0xf0: /* XTX */
         case 0xc0:
                 sclk_freq = NAVI10_PEAK_SCLK_XTX;
--
2.20.1

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20190726/e511a472/attachment.html>


More information about the amd-gfx mailing list