[Skiboot] [PATCH 2/2] hdat: Parse BMC nodes much earlier

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Thu Mar 9 22:22:00 AEDT 2017


On 03/07/2017 09:46 AM, Oliver O'Halloran wrote:
> This moves the parsing of the BMC and LPC details to the start of the
> HDAT parsing. This allows us to enable the Skiboot log console earlier
> so we can get debug output while parsing the rest of the HDAT.
>
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> Acked-by: Michael Neuling <mikey at neuling.org>
> ---
>   hdata/fsp.c        | 28 +++++++++++++++++++++++++++-
>   hdata/hdata.h      |  1 +
>   hdata/spira.c      |  7 +++++--
>   hdata/test/stubs.c |  1 +
>   hw/lpc-uart.c      | 34 ++++++++++++++++++++++++++++++++++
>   include/skiboot.h  |  1 +
>   6 files changed, 69 insertions(+), 3 deletions(-)

.../...

>   			break;
>
>   		case SP_BAD:
> diff --git a/hdata/hdata.h b/hdata/hdata.h
> index 1d0da1e9992e..53927a3acc5b 100644
> --- a/hdata/hdata.h
> +++ b/hdata/hdata.h
> @@ -23,6 +23,7 @@ extern void memory_parse(void);
>   extern int paca_parse(void);
>   extern bool pcia_parse(void);
>   extern void fsp_parse(void);
> +extern void bmc_parse(void);
>   extern void io_parse(void);
>   extern struct dt_node *dt_add_vpd_node(const struct HDIF_common_hdr *hdr,
>   				       int indx_fru, int indx_vpd);
> diff --git a/hdata/spira.c b/hdata/spira.c
> index 4ebbc43ee2aa..512784f105aa 100644
> --- a/hdata/spira.c
> +++ b/hdata/spira.c
> @@ -1230,6 +1230,9 @@ int parse_hdat(bool is_opal)
>   	dt_add_property_cells(dt_root, "#size-cells", 2);
>   	dt_add_property_string(dt_root, "lid-type", is_opal ? "opal" : "phyp");
>
> +	/* Add any BMCs and enable the LPC UART */
> +	bmc_parse();

I know I'm late and this patch is already merged.

May be we should rename fsp_parse to sp_parse() and call here instead of calling 
both bmc/fsp_parse functions separately.

-Vasant



More information about the Skiboot mailing list