summaryrefslogtreecommitdiff
path: root/thermalConfig.cpp
AgeCommit message (Collapse)Author
2023-05-16Revert "thermal-hal: Add thermal HAL 2.0 support for monaco"HEADuminekotachibana-mr1Jake Weinstein
Qualcomm picked "thermal-hal: Add support for hal specific configuration." 39ff74035adc9fe28715e7000e7fe48e8e2b5fe4 to LA.VENDOR.13.2.0, which duplicates these functions. Stick with the new upstream rather than old upstream. Monaco is a wearable chip, which we do not expect to support anyway. This reverts commit ffd812bff5dab55dad2cc4833f4c069fa67e005c. Change-Id: I9db8df14305819fbdaf755ace8ae7f2cf752e1ab
2023-05-07Merge tag 'LA.VENDOR.13.2.0.r1-15000-KAILUA.0' of ↵chrisl7
https://git.codelinaro.org/clo/la/platform/hardware/qcom/thermal into topaz LA.VENDOR.13.2.0.r1-15000-KAILUA.0 * tag 'LA.VENDOR.13.2.0.r1-15000-KAILUA.0' of https://git.codelinaro.org/clo/la/platform/hardware/qcom/thermal: thermal-hal: Add support for hal specific configuration. thermal_hal: Add support to handle CPUs with non-sequential core_ids thermal-hal: Add tsens,bcl configuration for kona thermal-hal: Add thermal HAL 2.0 support for KALAMA QCS, QCM thermal-hal: update cpu, vbat and socd sensor configurations for khaje thermal-hal: Add fan cdev type in thermal-hal support for Kalama HHG
2023-05-07thermal-hal: Enable thermal_hal support for yupik variantsGopala Krishna Nuthaki
Enabel thermal config support for yupik variants. Change-Id: I75a9b242cc77da3efc70974e427f76e65f3cf86c Signed-off-by: Gopala Krishna Nuthaki <quic_gnuthaki@quicinc.com> Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-03-27thermal-hal: Add support for hal specific configuration.Nitesh Kumar
Add support for hal configuration to include CPU, GPU, and adc senosors. Change-Id: Id0f7cfa2b0eb9a3dec3aad30042fd8eb8d8baa65 Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2023-03-09thermal-hal: Add support for parrot configurationNitesh Kumar
Add support for parrot configuration to include all SoC ids. Change-Id: I75f5ca3ee435874a8adaa0211646a4a7ae62c28c Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2023-03-09thermal-hal: Add support for ravelin configurationNitesh Kumar
Add support for ravelin configuration to include skin. Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2023-03-09thermal-hal: Add support for ravelin configurationPriyansh Jain
Add support for ravelin configuration to include all the CPU, GPU, skin, battery and BCL configurations. Change-Id: Ia954d932dd19cd207a214f472c87eb5c78ee1ec1 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-03-09thermal-hal: Add support for anorak configuration.Nitesh Kumar
Add support for anorak configuration to include CPU, GPU, NPU, BCL and skin. Change-Id: Ie52be4e0daa027d31ca1b0ff07b0906307ce975e Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2023-03-09thermal-hal: update skin temperature threshold for diwaliPriyansh Jain
update skin temperature threshold for diwali. Change-Id: I64cc99cb94d92d57070e3128926020c262f48d91 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-03-09thermal-hal: add support for severity in HAL config for throttling thresholdPriyansh Jain
Add support to selectively configure thermal HAL severity for throttling threshold for any HAL config. Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-03-09thermal-hal: Add support for diwali variantsGopala Krishna Nuthaki
Add soc_id to enable hal 2.0 support for diwali variants. Change-Id: I942cdee6e3701a3ed27121c795aa52c00e37cb72
2023-03-09thermal-hal: Add support for parrot configurationPriyansh Jain
Add support for parrot configuration to include all the CPU, GPU, NSP, skin, battery and BCL configurations. Change-Id: I89b5eaa6293e0431f117d015fe20fae741a77911 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-03-09thermal-hal: Add support for neo configurationPriyansh Jain
Add support for neo configuration to include all the CPU, GPU, NSP. Change-Id: Ie0e63def4e5456cd8c45593ba1d388f1af7ed051
2023-03-09thermal-hal: Update Ibat thresholds for diwailiMinghao Zhang
Change Ibat sensors into pm7250b-ibat-lvl0 and update its throt_thresh, shutdown_thresh and vr_thresh. Change-Id: Iafca728b305a3326eb60a11b1c43ba09ad43b528
2023-02-25thermal-hal: Update sensor name for skin config rule for MONACOGopala Krishna Nuthaki
Modify skin rule from quiet-therm sensor to pa-therm0 as respectibve ADC mapping is updated by pmic team. Add hal support for monaco variant. Change-Id: Ie3645fb7feef2e1f7904999069219eb6ccef29df Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-25thermal-hal: Add thermal HAL 2.0 support for talos and variantsMinghao Zhang
Add thermal HAL 2.0 support for talos and variants. Change-Id: Idd56b4dfd2441957914f7c6df301a19b50bbaed0 Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-25thermal-hal: Update thermal HAL 2.0 configs for SA8150PMinghao Zhang
1. Add a new map battery_bcl_cfg_disable_map to distinguish target socs need not battery and bcl config. 2. Update thermal HAL 2.0 configs for SA8150P. Change-Id: I086fcb5ee44c98e71e946f5d0bd164888f345a22 Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-25thermal-hal: Add thermal HAL 2.0 support for monacoManaf Meethalavalappu Pallikunhi
Add thermal HAL 2.0 support for monaco. Change-Id: I2e4c97718e851aa29cdb335c551d296248d065c4 Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-25thermal-hal: Add thermal HAL 2.0 support for blairManaf Meethalavalappu Pallikunhi
Add thermal HAL 2.0 support for blair target. It shares sensor configuration with holi. Change-Id: I1ae5e027b23f0391a7102ba3292366b456033a09 Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-25thermal-hal: Add thermal HAL 2.0 support for sdm845Gopala Krishna Nuthaki
Add thermal HAL 2.0 support for sdm845. Change-Id: If942a342ccca11c68c351b9b67326bf0198dbf6c Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-25thermal-hal: Add thermal HAL 2.0 support for sdm439 and variantsMinghao Zhang
Add thermal HAL 2.0 support for sdm439 and variants. Change-Id: Ia089986645ddfe4500a90a653c8ba2f6452e3c2a Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-02-14Merge "thermal-hal: update cpu, vbat and socd sensor configurations for khaje"qctecmdr
2023-02-14Merge "thermal-hal: Add thermal HAL 2.0 support for KALAMA QCS, QCM"qctecmdr
2023-01-13thermal-hal: Add tsens,bcl configuration for konaPriyansh Jain
Add support for kona target for tsens,bcl. Change-Id: I819b911d73e05cb4dbc88c912a4c7836c8dc0393 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-01-10thermal-hal: Add thermal HAL 2.0 support for KALAMA QCS, QCMBhasker Reddy Komatireddy
Add thermal HAL 2.0 support for KALAMA QCS and QCM. Change-Id: I9386f963d8a4ba740ca8bf71bcde3c9ad85e71f9
2023-01-06thermal-hal: update cpu, vbat and socd sensor configurations for khajeManaf Meethalavalappu Pallikunhi
Update proper tsens mapping for silver cores for khaje. Also update BCL sensors like vbat and socd sensor configurations as well. Change-Id: I2855b3461922f3969fa30d34f71d81f0384163d6
2022-12-02thermal-hal: Enable support for different khaje variantsManaf Meethalavalappu Pallikunhi
Enable different khaje variants support for thermal-hal by adding soc id of those variants. Change-Id: I8c127896c10aa88bb157281ce4de8beeb3cb6a70
2022-09-13thermal-hal: Update copyright markingsPriyansh Jain
Update copyright markings as per latest marking recommendation. Change-Id: I5ad5f467bff9f1aa9c34affdd0850cd33a9b1513 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2022-09-07Merge "thermal-hal: Add CPU, GPU, bcl sensors for khaje"qctecmdr
2022-09-05thermal-hal: Add thermal HAL 2.0 support for KALAMA_SG and KALAMAP_SGcongying
Add thermal HAL 2.0 support for KALAMA_SG and KALAMAP_SG.
2022-09-01thermal-hal: Add CPU, GPU, bcl sensors for khajePriyansh Jain
Add CPU, GPU, Skin and BCL sensors for khaje. Change-Id: If41cd0474b68f7ddbeb01dbdd0fe46d06099ea70 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2022-08-24Merge "thermal-hal: Update Kalama configuration for skin"qctecmdr
2022-08-15thermal-hal: Update Kalama configuration for skinRashid Zafar
Update skin configuration for Kalama to use different sensor name and threshold settings. Change-Id: I94cb49c4a05092938802600f1e32002d75e0fa96
2022-06-30thermal-hal: update NPU sensor thresholds for kalamaManaf Meethalavalappu Pallikunhi
Update NPU sensors thresholds for kalama based on latest recommendation. Change-Id: I7ebd8b1884ed855fe5e8561b0ac84f5f4e4eee82
2022-02-03thermal-hal: Add support for Kalama configurationManaf Meethalavalappu Pallikunhi
Add support for kalama configuration to include all the CPU, GPU, NSP, skin, battery and BCL configurations. Change-Id: Iaa427ce2eb0a68ac7daa71d1336fc61302e798db
2022-02-03thermal-hal: Add thermal HAL 2.0 support for WAIPIO-LTE variantGopala Krishna Nuthaki
Add thermal HAL 2.0 support for WAIPIO-LTE variant. Change-Id: I097ff7e0099299cb129ba5d9a6ba7a11548080a6
2021-11-10thermal-hal: add soc id for CapePriyansh Jain
add soc id for Cape target. Change-Id: Ie096f5b92b2e9bebbd9d21dd1be2ee6427ee8628
2021-09-20thermal-hal: Add support for Diwali configurationPriyansh Jain
Add support for waipio configuration to include all the CPU, GPU, NSP, skin, battery and BCL configurations. Change-Id: I99dff1225e87c8510f39da491be3097e7fabdecf
2021-07-29thermal-hal: Add exception handling for stoiRam Chandrasekar
stoi can throw exception when an invalid value is passed in buffer. Enable exception handling and add retry mechanism when a exception is thrown. Change-Id: I2c1e0ddbbb408cb6b9739b516296125ec1efd64a
2021-04-26thermal-hal: Add support for Waipio configurationRam Chandrasekar
Add support for waipio configuration to include all the CPU, GPU, NSP, skin, battery and BCL configurations. Change-Id: I028b936d54e751feec7ddcd79742060d19de23c3
2021-03-16Merge "thermal-hal: Add thermal HAL 2.0 support for YUPIK-LTE variant"qctecmdr
2021-03-17thermal-hal: Add thermal HAL 2.0 support for YUPIK-LTE variantGopala Krishna Nuthaki
Add thermal HAL 2.0 support for YUPIK-LTE variant. Change-Id: I143ee578848c044d80ee8d9111076c2da703e687
2021-03-08thermal-hal: Add thermal HAL 2.0 support for SM8325 and SM8325PMinghao Zhang
Add thermal HAL 2.0 support for SM8325 and SM8325P. Change-Id: I9540baa9664d47c939da0bd03f90f230f360cbeb
2021-01-21Merge "thermal-hal: Add thermal HAL 2.0 support for yupik"qctecmdr
2021-01-18thermal-hal: Add thermal HAL 2.0 support for yupikGopala Krishna Nuthaki
Add thermal HAL 2.0 support for yupik target. Change-Id: I1cb8ec1c56d20d92f92974f5e7cd095ae8acbf6c Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
2021-01-14thermal-hal: Add thermal HAL 2.0 support for lagoon variantsMinghao Zhang
Add thermal HAL 2.0 support for lagoon variants. Change-Id: I81e0fe59596a467a28d3a0ca8a7750cb9a24afaf
2020-12-28thermal-hal: Add thermal HAL 2.0 support for bengal and variantsMinghao Zhang
Add thermal HAL 2.0 support for bengal and variants. Change-Id: I7e1cd2489b7ee53a0830495531cf0525356a2b53
2020-11-25Merge "thermal-hal: Update the common data object with the status"qctecmdr
2020-11-18thermal-hal: Update the common data object with the statusRam Chandrasekar
thermal-hal has a hash map storing all the sensor instances. Use the same instance to read and update the temperature, update the severity and determine the next threshold based on severity. Not using the same instance can lead to a situation where the information is updated in the local copy rather than in the global copy in the hash map. Also change the return signature of the estimateseverity function to return the new severity value if it is changed. Otherwise it will return -1. This provided a mechanism for the caller's to know if there is any change in severity for that sensor. Change-Id: I34c2a271b505fea969db6f4a04321e63c0181ea7
2020-11-16thermal-hal: Add thermal HAL 2.0 support for sm8150 and variantsMinghao Zhang
Add thermal HAL 2.0 support for sm8150 and variants. Change-Id: I2ec6290dfe5def2b7e240932bc8ff5e8214fb2b4