drm/amd/display: Ctrl stutter mode through module parameter
authorrex zhu <rex.zhu@amd.com>
Wed, 27 Jun 2018 10:19:08 +0000 (18:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:51 +0000 (16:38 -0500)
use ppfeaturemask to enable/disable stutter mode.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 356ac27d01802944ffde49b683003fbc8992d74d..74683071fa817a422d30527af716ad7f6fa4bb75 100644 (file)
@@ -1535,7 +1535,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
                /*
                 * Temporary disable until pplib/smu interaction is implemented
                 */
-               dm->dc->debug.disable_stutter = true;
+               dm->dc->debug.disable_stutter = amdgpu_pp_feature_mask & PP_STUTTER_MODE ? false : true;
                break;
 #endif
        default: