Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

soc: qcom: socinfo: Add support for new fields in revision 20

Add support for socinfo version 20. Version 20 adds a new field
package id and its zeroth bit contain information that can be
can be used to tune temperature thresholds on devices which might
be able to withstand higher temperatures. Zeroth bit value 1 means
that its heat dissipation is better and more relaxed thermal
scheme can be put in place and 0 means a more aggressive scheme
may be needed.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251104130906.167666-1-mukesh.ojha@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Mukesh Ojha and committed by
Bjorn Andersson
6a571d76 682921ab

+8
+6
drivers/soc/qcom/socinfo.c
··· 213 213 u32 num_func_clusters; 214 214 u32 boot_cluster; 215 215 u32 boot_core; 216 + u32 raw_package_type; 216 217 }; 217 218 218 219 struct smem_image_version { ··· 676 675 &qcom_socinfo->info.fmt); 677 676 678 677 switch (qcom_socinfo->info.fmt) { 678 + case SOCINFO_VERSION(0, 20): 679 + qcom_socinfo->info.raw_package_type = __le32_to_cpu(info->raw_package_type); 680 + debugfs_create_u32("raw_package_type", 0444, qcom_socinfo->dbg_root, 681 + &qcom_socinfo->info.raw_package_type); 682 + fallthrough; 679 683 case SOCINFO_VERSION(0, 19): 680 684 qcom_socinfo->info.num_func_clusters = __le32_to_cpu(info->num_func_clusters); 681 685 qcom_socinfo->info.boot_cluster = __le32_to_cpu(info->boot_cluster);
+2
include/linux/soc/qcom/socinfo.h
··· 82 82 __le32 num_func_clusters; 83 83 __le32 boot_cluster; 84 84 __le32 boot_core; 85 + /* Version 20 */ 86 + __le32 raw_package_type; 85 87 }; 86 88 87 89 /* Internal feature codes */