[Skiboot] [PATCH 2/2] astbmc: Use oem hiomap ipmi command for bmc_sw_ami

Andrew Jeffery andrew at aj.id.au
Mon Feb 18 17:29:36 AEDT 2019



On Mon, 18 Feb 2019, at 16:56, Lei YU wrote:
> After BMC uses hiomap for PNOR access, skiboot needs to use oem hiomap
> IPMI command to access PNOR.
> 
> Tested on Palmetto with OpenBMC + mboxd and verify the skiboot could
> access PNOR correctly and is able to boot to petitboot.
> 
> Signed-off-by: Lei YU <mine260309 at gmail.com>
> ---
>  platforms/astbmc/common.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
> index bc0e58f..faa73e2 100644
> --- a/platforms/astbmc/common.c
> +++ b/platforms/astbmc/common.c
> @@ -459,6 +459,7 @@ void astbmc_exit(void)
>  const struct bmc_sw_config bmc_sw_ami = {

How do we detect what firmware the BMC is running? Because it's a bit
misleading to use the _ami struct when we've only tested OpenBMC.

>  	.ipmi_oem_partial_add_esel   = IPMI_CODE(0x3a, 0xf0),
>  	.ipmi_oem_pnor_access_status = IPMI_CODE(0x3a, 0x07),
> +	.ipmi_oem_hiomap_cmd         = IPMI_CODE(0x3a, 0x5a),
>  };
>  
>  const struct bmc_sw_config bmc_sw_openbmc = {
> -- 
> 2.7.4
> 
>


More information about the Skiboot mailing list