[Skiboot] [RESEND PATCH v1 04/11]ibm-fsp/firenze: DT entry for DIMM rate

Joel Stanley joel at jms.id.au
Thu Jul 16 11:56:01 AEST 2015


On Sun, 2015-07-05 at 22:25 +0530, Madhavan Srinivasan wrote:
> diff --git a/hw/nest.c b/hw/nest.c
> index 7b13512..1798351 100644
> --- a/hw/nest.c
> +++ b/hw/nest.c
> @@ -148,5 +148,21 @@ void nest_ima_init(void)
>  		dt_add_property_cells(chip_dev, "size", SLW_IMA_SIZE);
>  		dt_add_property(chip_dev, "ibm,ima-chip", NULL, 0);
>  	}
> +
> +	/*
> +	 * Dimm rate DT Entry. Needed for % utilisation calculation.
> +	 */
> +	chip = get_chip(pir_to_chip_id(this_cpu()->pir));

get_chip(this_cpu()->chip_id)

> +	switch (chip->type) {
> +	case PROC_CHIP_P8_MURANO:
> +		dt_add_property_cells(dev,"dimm", MURANO_CENTAUR_DIMM);
> +		break;
> +	case PROC_CHIP_P8_VENICE:
> +		dt_add_property_cells(dev,"dimm", VENICE_CENTAUR_DIMM);
> +		break;
> +	default:

Print a warning?

How about naples?

> +		break;
> +	}
> +
>  	return;
>  }




More information about the Skiboot mailing list