Re: [PATCH] drivers: soc: qcom: smem: Switch partitions to xarray
From: Shawn Guo
Date: Sun Apr 19 2026 - 08:55:50 EST
On Fri, Apr 10, 2026 at 11:02:30AM +0530, 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>
Nit: drop "drivers: " from subject prefix to match the existing style.
Tested-by: Shawn Guo <shengchao.guo@xxxxxxxxxxxxxxxx> # On Nord