Re: [PATCH] soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation

From: Bjorn Andersson

Date: Mon Aug 31 2026 - 15:54:21 EST



On Thu, 27 Aug 2026 01:13:17 -0700, Gopikrishna Garmidi wrote:
> The DDR frequency in SMEM is reported in kHz and converted to Hz by
> multiplying it by 1000. Since the SMEM frequency value is a u32, using
> an unsuffixed integer constant causes the multiplication to be performed
> with 32-bit arithmetic.
>
> This overflows for DDR frequencies above 4294967 kHz, resulting in an
> incorrect frequency being reported through the SMEM DRAM interface.
>
> [...]

Applied, thanks!

[1/1] soc: qcom: smem: fix 32-bit overflow in DDR frequency calculation
commit: 7bb5f186784074f2a91d83e191e305238be47103

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>