Browse Source

disp: msm: sde: add debugfs node to get current uidle status

Add a read only debugfs node to get current uidle status.
Usage:
      cat /sys/kernel/debug/dri/0/debug/core_perf/uidle_status
       N: indicate uidle is disabled.
       Y: indicate uidle is enabled.

Change-Id: I7f28b406588c19decc4efc9012f5bac63925618a
Signed-off-by: Lei Chen <[email protected]>
Lei Chen 2 năm trước cách đây
mục cha
commit
8ed479026a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      msm/sde/sde_core_perf.c

+ 3 - 1
msm/sde/sde_core_perf.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
  */
 
@@ -1442,6 +1442,8 @@ int sde_core_perf_debugfs_init(struct sde_core_perf *perf,
 			&sde_kms->catalog->uidle_cfg.fal1_max_threshold);
 	debugfs_create_bool("uidle_enable", 0600, perf->debugfs_root,
 			&sde_kms->catalog->uidle_cfg.debugfs_ctrl);
+	debugfs_create_bool("uidle_status", 0400, perf->debugfs_root,
+			&sde_kms->perf.uidle_enabled);
 
 	return 0;
 }