[PATCH v2 0/2] Add support to extract the image versions beyond the first 32 images

Kathiravan Thirumoorthy posted 2 patches 3 months, 1 week ago
drivers/soc/qcom/smem.c    |  4 ++--
drivers/soc/qcom/socinfo.c | 45 +++++++++++++++++++++++++++++++++++++--------
2 files changed, 39 insertions(+), 10 deletions(-)
[PATCH v2 0/2] Add support to extract the image versions beyond the first 32 images
Posted by Kathiravan Thirumoorthy 3 months, 1 week ago
SMEM item 667 contains the image version details beyond the first 32 images.
Add support for the same. While at it, drop the WARN_ON() from
qcom_smem_get() and qcom_smem_alloc() as it doesn't add any values.

IPQ platforms doesn't have the SMEM item 667. So I couldn't validate the
image version details from SMEM item 667.

Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
---
Changes in v2:
- Dropped the qcom_smem_validate_item() and removed the WARN_ON()
- Check for the return value and exit when fetching the SMEM item 667
- Link to v1: https://lore.kernel.org/r/20251030-image-crm-part2-v1-0-676305a652c6@oss.qualcomm.com

---
Kathiravan Thirumoorthy (2):
      soc: qcom: smem: drop the WARN_ON() on SMEM item validation
      soc: qcom: socinfo: add support to extract more than 32 image versions

 drivers/soc/qcom/smem.c    |  4 ++--
 drivers/soc/qcom/socinfo.c | 45 +++++++++++++++++++++++++++++++++++++--------
 2 files changed, 39 insertions(+), 10 deletions(-)
---
base-commit: 131f3d9446a6075192cdd91f197989d98302faa6
change-id: 20251028-image-crm-part2-1f6bbefea2d8

Best regards,
-- 
Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Re: [PATCH v2 0/2] Add support to extract the image versions beyond the first 32 images
Posted by Bjorn Andersson 3 months ago
On Fri, 31 Oct 2025 11:21:00 +0530, Kathiravan Thirumoorthy wrote:
> SMEM item 667 contains the image version details beyond the first 32 images.
> Add support for the same. While at it, drop the WARN_ON() from
> qcom_smem_get() and qcom_smem_alloc() as it doesn't add any values.
> 
> IPQ platforms doesn't have the SMEM item 667. So I couldn't validate the
> image version details from SMEM item 667.
> 
> [...]

Applied, thanks!

[1/2] soc: qcom: smem: drop the WARN_ON() on SMEM item validation
      commit: d403276969b2aae147f671506a6c69089587ddd7
[2/2] soc: qcom: socinfo: add support to extract more than 32 image versions
      commit: db252c105648d1c15826b24dd4251b005e243c30

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>