[Skiboot] [PATCH 3/3] hdata/smplink: Increment index of associated PHB
Stewart Smith
stewart at linux.vnet.ibm.com
Thu Sep 21 14:49:42 AEST 2017
Oliver O'Halloran <oohall at gmail.com> writes:
> The PHB number of the NPU device needs to be incremented per-chip or bad
> things are going to occur.
>
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---
> hdata/spira.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hdata/spira.c b/hdata/spira.c
> index 5e3d6ccc05d5..7dc8d5fa061f 100644
> --- a/hdata/spira.c
> +++ b/hdata/spira.c
> @@ -1463,7 +1463,7 @@ static void add_npus(void)
>
> /* some hostboots will give us an empty array */
> if (be32_to_cpu(links->ecnt))
> - add_npu(xscom, links, npu_index, phb_index);
> + add_npu(xscom, links, npu_index, phb_index++);
> }
Series merged to master as of 577b75727d9ee9d57e1468e52275a7d838bbabf0,
with the change discussed on Slack where npu_index++ also
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list