drm/amd/powerplay: fix bug in processing CKS_Enable bit.
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 10 May 2017 07:51:09 +0000 (15:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:39:39 +0000 (17:39 -0400)
Typo in the mask.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c

index 00e95511e19af1df99780646300288f5d6c2b7ed..efda1d732c88db07406a099fa348dfedf75ae1e7 100644 (file)
@@ -566,7 +566,7 @@ static int get_gfxclk_voltage_dependency_table(
                clk_table->entries[i].clk =
                                le32_to_cpu(clk_dep_table->entries[i].ulClk);
                clk_table->entries[i].cks_enable =
-                               (((clk_dep_table->entries[i].usCKSVOffsetandDisable & 0x80)
+                               (((clk_dep_table->entries[i].usCKSVOffsetandDisable & 0x8000)
                                                >> 15) == 0) ? 1 : 0;
                clk_table->entries[i].cks_voffset =
                                (clk_dep_table->entries[i].usCKSVOffsetandDisable & 0x7F);