Re: [PATCH] drivers: soc: qcom: smem: Switch partitions to xarray
From: Konrad Dybcio
Date: Fri Apr 10 2026 - 05:12:58 EST
On 4/10/26 7:32 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>
> ---
Tested-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx> # Glymur CRD
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad