[Skiboot] [PATCH v12 08/10] skiboot: Add opal call to enable/disable Nest IMC
Michael Neuling
mikey at neuling.org
Wed Jun 14 14:59:55 AEST 2017
> + switch (type) {
> + case OPAL_IMC_COUNTERS_NEST:
> + /* Fetch the IMC control block structure */
> + cb = get_imc_cb();
> + status = be64_to_cpu(cb->imc_chip_run_status);
> +
> + /* Check whether the engine is already running */
> + if (status == NEST_IMC_RUNNING)
> + return ret;
> +
> + /* Set the run command */
> + op = NEST_IMC_ENABLE;
> +
> + /* Write the command to the control block now */
> + cb->imc_chip_command = op;
this needs a cpu_to_be(op)
same with all the other imc_chip_commands here and the next patch.
Mikey
More information about the Skiboot
mailing list