Loading arch/arm64/configs/vendor/sdmsteppe-auto-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -609,6 +609,7 @@ CONFIG_QMP_DEBUGFS_CLIENT=y CONFIG_QCOM_SMP2P_SLEEPSTATE=y CONFIG_QCOM_CDSP_RM=y CONFIG_QCOM_CX_IPEAK=y CONFIG_QCOM_ADSP_MANUAL_VOTE=y CONFIG_DEVFREQ_GOV_PASSIVE=y CONFIG_QCOM_BIMC_BWMON=y CONFIG_ARM_MEMLAT_MON=y Loading arch/arm64/configs/vendor/sdmsteppe-auto_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -636,6 +636,7 @@ CONFIG_QMP_DEBUGFS_CLIENT=y CONFIG_QCOM_SMP2P_SLEEPSTATE=y CONFIG_QCOM_CDSP_RM=y CONFIG_QCOM_CX_IPEAK=y CONFIG_QCOM_ADSP_MANUAL_VOTE=y CONFIG_DEVFREQ_GOV_PASSIVE=y CONFIG_QCOM_BIMC_BWMON=y CONFIG_ARM_MEMLAT_MON=y Loading drivers/soc/qcom/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -895,6 +895,15 @@ config QCOM_AOP_DDRSS_COMMANDS help This driver allows messages to be sent to the AOP to affect the DDRSS behavior. config QCOM_ADSP_MANUAL_VOTE bool "Send commands to ADSP to unvote and vote during Suspend and resume" help This driver is used to manually release and acquire the ADSP vote from APPS processor during system suspend and resume. This driver sends message over QMI to the service which is running on ADSP. endmenu config QCOM_HYP_CORE_CTL Loading drivers/soc/qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -103,3 +103,4 @@ obj-$(CONFIG_MSM_HAB) += hab/ obj-$(CONFIG_QCOM_HYP_CORE_CTL) += hyp_core_ctl.o obj-$(CONFIG_QCOM_AOP_DDRSS_COMMANDS) += aop_ddrss_cmds.o obj-$(CONFIG_RMNET_CTL) += rmnet_ctl/ obj-$(CONFIG_QCOM_ADSP_MANUAL_VOTE) += adsp_vote_qmi.o adsp_lpm_voting_v01.o drivers/soc/qcom/adsp_lpm_voting_v01.c 0 → 100644 +49 −0 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include <linux/soc/qcom/qmi.h> #include "adsp_lpm_voting_v01.h" struct qmi_elem_info prod_set_lpm_vote_req_msg_v01_ei[] = { { .data_type = QMI_UNSIGNED_1_BYTE, .elem_len = 1, .elem_size = sizeof(u8), .is_array = NO_ARRAY, .tlv_type = 0x01, .offset = offsetof(struct prod_set_lpm_vote_req_msg_v01, keep_adsp_out_of_lpm), }, { .data_type = QMI_EOTI, .is_array = NO_ARRAY, }, }; struct qmi_elem_info prod_set_lpm_vote_resp_msg_v01_ei[] = { { .data_type = QMI_STRUCT, .elem_len = 1, .elem_size = sizeof(struct qmi_response_type_v01), .is_array = NO_ARRAY, .tlv_type = 0x02, .offset = offsetof(struct prod_set_lpm_vote_resp_msg_v01, resp), .ei_array = qmi_response_type_v01_ei, }, { .data_type = QMI_EOTI, .is_array = NO_ARRAY, }, }; Loading
arch/arm64/configs/vendor/sdmsteppe-auto-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -609,6 +609,7 @@ CONFIG_QMP_DEBUGFS_CLIENT=y CONFIG_QCOM_SMP2P_SLEEPSTATE=y CONFIG_QCOM_CDSP_RM=y CONFIG_QCOM_CX_IPEAK=y CONFIG_QCOM_ADSP_MANUAL_VOTE=y CONFIG_DEVFREQ_GOV_PASSIVE=y CONFIG_QCOM_BIMC_BWMON=y CONFIG_ARM_MEMLAT_MON=y Loading
arch/arm64/configs/vendor/sdmsteppe-auto_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -636,6 +636,7 @@ CONFIG_QMP_DEBUGFS_CLIENT=y CONFIG_QCOM_SMP2P_SLEEPSTATE=y CONFIG_QCOM_CDSP_RM=y CONFIG_QCOM_CX_IPEAK=y CONFIG_QCOM_ADSP_MANUAL_VOTE=y CONFIG_DEVFREQ_GOV_PASSIVE=y CONFIG_QCOM_BIMC_BWMON=y CONFIG_ARM_MEMLAT_MON=y Loading
drivers/soc/qcom/Kconfig +9 −0 Original line number Diff line number Diff line Loading @@ -895,6 +895,15 @@ config QCOM_AOP_DDRSS_COMMANDS help This driver allows messages to be sent to the AOP to affect the DDRSS behavior. config QCOM_ADSP_MANUAL_VOTE bool "Send commands to ADSP to unvote and vote during Suspend and resume" help This driver is used to manually release and acquire the ADSP vote from APPS processor during system suspend and resume. This driver sends message over QMI to the service which is running on ADSP. endmenu config QCOM_HYP_CORE_CTL Loading
drivers/soc/qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -103,3 +103,4 @@ obj-$(CONFIG_MSM_HAB) += hab/ obj-$(CONFIG_QCOM_HYP_CORE_CTL) += hyp_core_ctl.o obj-$(CONFIG_QCOM_AOP_DDRSS_COMMANDS) += aop_ddrss_cmds.o obj-$(CONFIG_RMNET_CTL) += rmnet_ctl/ obj-$(CONFIG_QCOM_ADSP_MANUAL_VOTE) += adsp_vote_qmi.o adsp_lpm_voting_v01.o
drivers/soc/qcom/adsp_lpm_voting_v01.c 0 → 100644 +49 −0 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include <linux/soc/qcom/qmi.h> #include "adsp_lpm_voting_v01.h" struct qmi_elem_info prod_set_lpm_vote_req_msg_v01_ei[] = { { .data_type = QMI_UNSIGNED_1_BYTE, .elem_len = 1, .elem_size = sizeof(u8), .is_array = NO_ARRAY, .tlv_type = 0x01, .offset = offsetof(struct prod_set_lpm_vote_req_msg_v01, keep_adsp_out_of_lpm), }, { .data_type = QMI_EOTI, .is_array = NO_ARRAY, }, }; struct qmi_elem_info prod_set_lpm_vote_resp_msg_v01_ei[] = { { .data_type = QMI_STRUCT, .elem_len = 1, .elem_size = sizeof(struct qmi_response_type_v01), .is_array = NO_ARRAY, .tlv_type = 0x02, .offset = offsetof(struct prod_set_lpm_vote_resp_msg_v01, resp), .ei_array = qmi_response_type_v01_ei, }, { .data_type = QMI_EOTI, .is_array = NO_ARRAY, }, };