Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ef34f21 authored by Ingrid Gallardo's avatar Ingrid Gallardo
Browse files

drm/msm/sde: add debugfs to disable/enable uidle



This change adds support to disable/enable uidle
feature through debugfs. Target must have the
uidle feature enabled at boot time to control the
feature runtime using this debugfs.

Change-Id: Icda74d371c13e440d4f1b0e307dcb212b7e2de69
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent 8522394f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -550,7 +550,7 @@ void sde_core_perf_crtc_update_uidle(struct drm_crtc *crtc,
	mutex_lock(&sde_core_perf_lock);

	if (!kms->perf.catalog->uidle_cfg.uidle_rev ||
		!kms->perf.catalog->uidle_cfg.debugfs_ctrl) {
		(enable && !kms->perf.catalog->uidle_cfg.debugfs_ctrl)) {
		SDE_DEBUG("uidle is not enabled %d %d\n",
			kms->perf.catalog->uidle_cfg.uidle_rev,
			kms->perf.catalog->uidle_cfg.debugfs_ctrl);
@@ -1106,6 +1106,8 @@ int sde_core_perf_debugfs_init(struct sde_core_perf *perf,

	debugfs_create_u32("uidle_perf_cnt", 0600, perf->debugfs_root,
			&sde_kms->catalog->uidle_cfg.debugfs_perf);
	debugfs_create_bool("uidle_enable", 0600, perf->debugfs_root,
			&sde_kms->catalog->uidle_cfg.debugfs_ctrl);

	return 0;
}