From 9c2cc3a10cace3cb647ecf42197396c9761097ed Mon Sep 17 00:00:00 2001 From: Rex Zhu Date: Wed, 10 May 2017 15:51:09 +0800 Subject: [PATCH] drm/amd/powerplay: fix bug in processing CKS_Enable bit. Typo in the mask. Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c index 00e95511e19a..efda1d732c88 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c @@ -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); -- 2.30.2