Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/powerplay: use proper revision id for navi

The PCI revision id determines the sku.

Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+2 -1
+2 -1
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
··· 23 23 24 24 #include "pp_debug.h" 25 25 #include <linux/firmware.h> 26 + #include <linux/pci.h> 26 27 #include "amdgpu.h" 27 28 #include "amdgpu_smu.h" 28 29 #include "atomfirmware.h" ··· 1593 1592 uint32_t sclk_freq = 0, uclk_freq = 0; 1594 1593 uint32_t uclk_level = 0; 1595 1594 1596 - switch (adev->rev_id) { 1595 + switch (adev->pdev->revision) { 1597 1596 case 0xf0: /* XTX */ 1598 1597 case 0xc0: 1599 1598 sclk_freq = NAVI10_PEAK_SCLK_XTX;