[Skiboot] [PATCH v2 2/5] phb4: Track PEC index in dt and phb4 struct
Stewart Smith
stewart at linux.ibm.com
Tue Jul 31 13:26:06 AEST 2018
Reza Arbab <arbab at linux.ibm.com> writes:
> Knowing the PEC index is going to be important when we enable relaxed
> ordering, so store this value for later use.
>
> Signed-off-by: Alistair Popple <alistair at popple.id.au>
> [arbab at linux.ibm.com: Rebase/refactor original changes]
> Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
> Reviewed-By: Alistair Popple <alistair at popple.id.au>
> ---
> hw/phb4.c | 2 ++
> include/phb4.h | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/hw/phb4.c b/hw/phb4.c
> index a3aa8b8..39962ca 100644
> --- a/hw/phb4.c
> +++ b/hw/phb4.c
> @@ -5311,6 +5311,7 @@ static void phb4_create(struct dt_node *np)
> /* Populate base stuff */
> p->index = dt_prop_get_u32(np, "ibm,phb-index");
> p->chip_id = dt_prop_get_u32(np, "ibm,chip-id");
> + p->pec = dt_prop_get_u32(np, "ibm,phb-pec-index");
> chip = get_chip(p->chip_id);
> p->regs = (void *)dt_get_address(np, 0, NULL);
> p->int_mmio = (void *)dt_get_address(np, 1, NULL);
can you please also update doc/device-tree/ as to when this came in and
what it is?
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list