Re: [PATCH] interconnect: qcom: msm8974: Prevent integer overflow in rate

2020-11-06 Thread Brian Masney
On Fri, Nov 06, 2020 at 04:48:47PM +0200, Georgi Djakov wrote: > When sync_state support got introduced recently, by default we try to > set the NoCs to run initially at maximum rate. But as these values are > aggregated, we may end with a really big clock rate value, which is > then converted from

[PATCH] interconnect: qcom: msm8974: Prevent integer overflow in rate

2020-11-06 Thread Georgi Djakov
When sync_state support got introduced recently, by default we try to set the NoCs to run initially at maximum rate. But as these values are aggregated, we may end with a really big clock rate value, which is then converted from "u64" to "long" during the clock rate rounding. But on 32bit platforms