#include "EmonLib.h" // Include Emon LibraryĮnergyMonitor emon1 // Create an instanceĮnergyMonitor emon2 // Create an instanceĮnergyMonitor emon3 // Create an instance Ret = regmap_read(drv_data->regmap, LLCC_COMMON_STATUS0,ĭiff -git a/include/linux/soc/qcom/llcc-qcom.h b/include/linux/soc/qcom/llcc-qcom.I create custom energy monitor and use mysesnors to send data to server. + drv_data->major_version = FIELD_GET(LLCC_MAJOR_VERSION_MASK, version) + ret = regmap_read(drv_data->bcast_regmap, LLCC_COMMON_HW_INFO, &version) If (!drv_data) -496,6 +501,13 static int qcom_llcc_probe(struct platform_device *pdev) #define LLCC_LB_CNT_SHIFT -476,6 +480,7 static int qcom_llcc_probe(struct platform_device *pdev)Ĭonst struct llcc_slice_config *llcc_cfg ĭrv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL) +#define LLCC_MAJOR_VERSION_MASK GENMASK(31, 24) Include/linux/soc/qcom/llcc-qcom.h | 2 ++ĭiff -git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c Extract the version and cache it in theĭriver data so that it can be used to implement version specificįunctionality like enabling Write sub cache for given SCID.ĭrivers/soc/qcom/llcc-qcom.c | 12 ++++++++++++ The major hardware version of the LLCC IP is encoded in its 20:15 ` Add LLCC " patchwork-bot+linux-arm-msmĤ siblings, 0 replies 8+ messages in thread 9:39 ` soc: qcom: llcc-qcom: Add support for SM8250 SoC Manivannan Sadhasivam
9:39 ` arm64: dts: qcom: sm8250: Add support for LLCC block Manivannan 9:39 ` Manivannan Sadhasivam
Of Code Aurora Forum, hosted by The Linux Foundation QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. > + reg-names = "llcc_base", "llcc_broadcast_base" > diff -git a/arch/arm64/boot/dts/qcom/sm8250.dtsi > the SM8250 SoC thereby minimizing the percore caches.
> This LLCC is used to provide common cache memory pool for the cores in > Add support for Last Level Cache Controller (LLCC) in SM8250 SoC. 9:39 ` arm64: dts: qcom: sm8250: Add support for LLCC block Manivannan 4:38 ` Sai Prakash Ranjan 0 siblings, 0 replies 8+ messages in threadįrom: Sai Prakash Ranjan 4:38 UTC ( / raw)Ĭc: agross, bjorn.andersson, robh+dt, linux-arm-msm, linux-kernel,
* Used patch from Sai for using the major version extracted from the IPĪrm64: dts: qcom: sm8250: Add support for LLCC block
This series adds Last Level Cache Controller (LLCC) support for SM8250Īll 4 patches in this series are expected to go through arm-soc tree. ` (4 more replies) 0 siblings, 5 replies 8+ messages in threadįrom: Manivannan Sadhasivam 9:39 UTC ( / raw)Ĭc: linux-arm-msm, linux-kernel, dmitry.baryshkov, saiprakash.ranjan, 9:39 ` dt-bindings: msm: Add LLCC for SM8250 Manivannan Sadhasivam Add LLCC support for SM8250 SoC All of help / color / mirror / Atom feed * Add LLCC support for SM8250 SoC 9:39 Manivannan Sadhasivam