[Skiboot] [PATCH] core: POWER9 implement OPAL_SIGNAL_SYSTEM_RESET
Benjamin Herrenschmidt
benh at kernel.crashing.org
Thu Sep 14 12:29:05 AEST 2017
On Wed, 2017-09-13 at 18:50 +1000, Nicholas Piggin wrote:
> +static int core_set_special_wakeup(struct cpu_thread *cpu)
> +{
> + uint32_t chip_id = pir_to_chip_id(cpu->pir);
> + uint32_t core_id = pir_to_core_id(cpu->pir);
> + uint32_t swake_addr;
> + uint32_t gpmmr_addr;
> + uint64_t val;
> + int i;
> +
> + swake_addr = XSCOM_ADDR_P9_EC(core_id, P9_PPM_SPWKUP_OTR);
> + gpmmr_addr = XSCOM_ADDR_P9_EC(core_id, P9_PPM_GPMMR);
> +
We need a common place to handle special wakeups (with per-core use
counts) because I bet you that's not the only place that will need it.
Talking of which ... why do we need it anyway ? Won't the sreset wake
up the core ?
Ben.
More information about the Skiboot
mailing list