Lines Matching +full:rpm +full:- +full:msm8974
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2021, The Linux Foundation. All rights reserved.
73 u64 accumulated = stat->accumulated; in qcom_print_stats()
78 if (stat->last_entered_at > stat->last_exited_at) in qcom_print_stats()
79 accumulated += arch_timer_read_counter() - stat->last_entered_at; in qcom_print_stats()
81 seq_printf(s, "Count: %u\n", stat->count); in qcom_print_stats()
82 seq_printf(s, "Last Entered At: %llu\n", stat->last_entered_at); in qcom_print_stats()
83 seq_printf(s, "Last Exited At: %llu\n", stat->last_exited_at); in qcom_print_stats()
89 struct subsystem_data *subsystem = s->private; in qcom_subsystem_sleep_stats_show()
93 stat = qcom_smem_get(subsystem->pid, subsystem->smem_item, NULL); in qcom_subsystem_sleep_stats_show()
104 struct stats_data *d = s->private; in qcom_soc_sleep_stats_show()
105 void __iomem *reg = d->base; in qcom_soc_sleep_stats_show()
111 if (d->appended_stats_avail) { in qcom_soc_sleep_stats_show()
129 size_t stats_offset = config->stats_offset; in qcom_create_soc_sleep_stat_files()
134 * On RPM targets, stats offset location is dynamic and changes from target in qcom_create_soc_sleep_stat_files()
140 if (config->dynamic_offset) { in qcom_create_soc_sleep_stat_files()
145 for (i = 0; i < config->num_records; i++) { in qcom_create_soc_sleep_stat_files()
152 * For rpmh-sleep-stats: "aosd", "cxsd" and "ddr". in qcom_create_soc_sleep_stat_files()
153 * For rpm-sleep-stats: "vmin" and "vlow". in qcom_create_soc_sleep_stat_files()
175 if (!config->subsystem_stats_in_smem) in qcom_create_subsystem_stat_files()
191 config = device_get_match_data(&pdev->dev); in qcom_stats_probe()
193 return -ENODEV; in qcom_stats_probe()
197 return -ENOMEM; in qcom_stats_probe()
199 d = devm_kcalloc(&pdev->dev, config->num_records, in qcom_stats_probe()
202 return -ENOMEM; in qcom_stats_probe()
204 for (i = 0; i < config->num_records; i++) in qcom_stats_probe()
205 d[i].appended_stats_avail = config->appended_stats_avail; in qcom_stats_probe()
214 device_set_pm_not_required(&pdev->dev); in qcom_stats_probe()
236 /* Older RPM firmwares have the stats at a fixed offset instead */
262 { .compatible = "qcom,apq8084-rpm-stats", .data = &rpm_data_dba0 },
263 { .compatible = "qcom,msm8226-rpm-stats", .data = &rpm_data_dba0 },
264 { .compatible = "qcom,msm8916-rpm-stats", .data = &rpm_data_dba0 },
265 { .compatible = "qcom,msm8974-rpm-stats", .data = &rpm_data_dba0 },
266 { .compatible = "qcom,rpm-stats", .data = &rpm_data },
267 { .compatible = "qcom,rpmh-stats", .data = &rpmh_data },
268 { .compatible = "qcom,sdm845-rpmh-stats", .data = &rpmh_data_sdm845 },