Re: [PATCH v2] soc: qcom: smem: Switch partitions to xarray

From: Konrad Dybcio

Date: Thu Apr 23 2026 - 06:13:18 EST


On 4/23/26 11:56 AM, Pranav Mahesh Phansalkar wrote:
> From: Tony Truong <tony.truong@xxxxxxxxxxxxxxxx>
>
> The partitions array is currently statically sized and uses the remote
> host ID as an index.
>
> Future protocol improvements to allow for more than two hosts in a
> partition will require hostIDs to be bitwise significant integers.
> This will result in large, sparse host IDs that generally exceed the
> current static limit.
>
> Switch to using xarray to efficiently handle these sparse indices and
> allow for dynamic growth.
>
> Signed-off-by: Tony Truong <tony.truong@xxxxxxxxxxxxxxxx>
> Signed-off-by: Pranav Mahesh Phansalkar <pranav.phansalkar@xxxxxxxxxxxxxxxx>
> ---

Please retain the tags you receive in previous iterations (b4 prep -u)

Tested-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx> # Glymur CRD
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>

Konrad