[PATCH] soc: qcom: socinfo: Add support to retrieve TME build details

Kathiravan Thirumoorthy posted 1 patch 7 months ago
drivers/soc/qcom/socinfo.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] soc: qcom: socinfo: Add support to retrieve TME build details
Posted by Kathiravan Thirumoorthy 7 months ago
Add support to retrieve Trust Management Engine (TME) image details
from SMEM, which is present in the IPQ5424 SoC.

Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
---
Note: On IPQ SoCs, the Trust Management Engine is referred to as TME-L
(Lite). Other SoCs from different business units may use variants like
TME-M. For consistency, the image name is retained as "TME".
---
 drivers/soc/qcom/socinfo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
index 8c4147737c35e3878db2def47f34c03ffc1fea52..391380820f082d8daa5c764d5f3c44e6240e18a2 100644
--- a/drivers/soc/qcom/socinfo.c
+++ b/drivers/soc/qcom/socinfo.c
@@ -48,6 +48,7 @@
 #define SMEM_IMAGE_TABLE_CDSP1_INDEX    19
 #define SMEM_IMAGE_TABLE_GPDSP_INDEX    20
 #define SMEM_IMAGE_TABLE_GPDSP1_INDEX   21
+#define SMEM_IMAGE_TABLE_TME_INDEX	28
 #define SMEM_IMAGE_VERSION_TABLE       469
 
 /*
@@ -67,6 +68,7 @@ static const char *const socinfo_image_names[] = {
 	[SMEM_IMAGE_TABLE_CDSP1_INDEX] = "cdsp1",
 	[SMEM_IMAGE_TABLE_GPDSP_INDEX] = "gpdsp",
 	[SMEM_IMAGE_TABLE_GPDSP1_INDEX] = "gpdsp1",
+	[SMEM_IMAGE_TABLE_TME_INDEX] = "tme",
 };
 
 static const char *const pmic_models[] = {

---
base-commit: 8566fc3b96539e3235909d6bdda198e1282beaed
change-id: 20250519-tme-crm-version-a1c7aa3ce820

Best regards,
-- 
Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Re: [PATCH] soc: qcom: socinfo: Add support to retrieve TME build details
Posted by Bjorn Andersson 6 months ago
On Mon, 19 May 2025 19:14:01 +0530, Kathiravan Thirumoorthy wrote:
> Add support to retrieve Trust Management Engine (TME) image details
> from SMEM, which is present in the IPQ5424 SoC.
> 
> 

Applied, thanks!

[1/1] soc: qcom: socinfo: Add support to retrieve TME build details
      commit: 64a026dd896e423a177fe87e11aa69bf5348c27b

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>
Re: [PATCH] soc: qcom: socinfo: Add support to retrieve TME build details
Posted by Kathiravan Thirumoorthy 6 months, 1 week ago
On 5/19/2025 7:14 PM, Kathiravan Thirumoorthy wrote:
> Add support to retrieve Trust Management Engine (TME) image details
> from SMEM, which is present in the IPQ5424 SoC.
>
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
> ---
> Note: On IPQ SoCs, the Trust Management Engine is referred to as TME-L
> (Lite). Other SoCs from different business units may use variants like
> TME-M. For consistency, the image name is retained as "TME".
> ---
>   drivers/soc/qcom/socinfo.c | 2 ++
>   1 file changed, 2 insertions(+)


Bjorn, can this be picked up for v6.17?


>
> diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
> index 8c4147737c35e3878db2def47f34c03ffc1fea52..391380820f082d8daa5c764d5f3c44e6240e18a2 100644
> --- a/drivers/soc/qcom/socinfo.c
> +++ b/drivers/soc/qcom/socinfo.c
> @@ -48,6 +48,7 @@
>   #define SMEM_IMAGE_TABLE_CDSP1_INDEX    19
>   #define SMEM_IMAGE_TABLE_GPDSP_INDEX    20
>   #define SMEM_IMAGE_TABLE_GPDSP1_INDEX   21
> +#define SMEM_IMAGE_TABLE_TME_INDEX	28
>   #define SMEM_IMAGE_VERSION_TABLE       469
>   
>   /*
> @@ -67,6 +68,7 @@ static const char *const socinfo_image_names[] = {
>   	[SMEM_IMAGE_TABLE_CDSP1_INDEX] = "cdsp1",
>   	[SMEM_IMAGE_TABLE_GPDSP_INDEX] = "gpdsp",
>   	[SMEM_IMAGE_TABLE_GPDSP1_INDEX] = "gpdsp1",
> +	[SMEM_IMAGE_TABLE_TME_INDEX] = "tme",
>   };
>   
>   static const char *const pmic_models[] = {
>
> ---
> base-commit: 8566fc3b96539e3235909d6bdda198e1282beaed
> change-id: 20250519-tme-crm-version-a1c7aa3ce820
>
> Best regards,
Re: [PATCH] soc: qcom: socinfo: Add support to retrieve TME build details
Posted by Dmitry Baryshkov 7 months ago
On Mon, May 19, 2025 at 07:14:01PM +0530, Kathiravan Thirumoorthy wrote:
> Add support to retrieve Trust Management Engine (TME) image details
> from SMEM, which is present in the IPQ5424 SoC.
> 
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
> ---
> Note: On IPQ SoCs, the Trust Management Engine is referred to as TME-L
> (Lite). Other SoCs from different business units may use variants like
> TME-M. For consistency, the image name is retained as "TME".
> ---
>  drivers/soc/qcom/socinfo.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

-- 
With best wishes
Dmitry
Re: [PATCH] soc: qcom: socinfo: Add support to retrieve TME build details
Posted by Dmitry Baryshkov 7 months ago
On Mon, May 19, 2025 at 07:14:01PM +0530, Kathiravan Thirumoorthy wrote:
> Add support to retrieve Trust Management Engine (TME) image details
> from SMEM, which is present in the IPQ5424 SoC.
> 
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
> ---
> Note: On IPQ SoCs, the Trust Management Engine is referred to as TME-L
> (Lite). Other SoCs from different business units may use variants like
> TME-M. For consistency, the image name is retained as "TME".
> ---
>  drivers/soc/qcom/socinfo.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

-- 
With best wishes
Dmitry