[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v14 4/4] target/ppc: trigger PERFM EBBs from power8-pmu.c

From: Richard Henderson
Subject: Re: [PATCH v14 4/4] target/ppc: trigger PERFM EBBs from power8-pmu.c
Date: Fri, 25 Feb 2022 09:58:54 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 2/25/22 00:11, Daniel Henrique Barboza wrote:
This patch adds the EBB exception support that are triggered by
Performance Monitor alerts. This happens when a Performance Monitor
alert occurs and MMCR0_EBE, BESCR_PME and BESCR_GE are set.

fire_PMC_interrupt() will execute the raise_ebb_perfm_exception() helper
which will check for MMCR0_EBE, BESCR_PME and BESCR_GE bits. If all bits
are set, do_ebb() will attempt to trigger a PERFM EBB event.

If the EBB facility is enabled in both FSCR and HFSCR we consider that
the EBB is valid and set BESCR_PMEO. After that, if we're running in
problem state, fire a POWERPC_EXCP_PERM_EBB immediately. Otherwise we'll

Signed-off-by: Daniel Henrique Barboza<danielhb413@gmail.com>
  target/ppc/cpu.h         |  5 +++++
  target/ppc/excp_helper.c | 48 ++++++++++++++++++++++++++++++++++++++++
  target/ppc/power8-pmu.c  |  3 +--
  3 files changed, 54 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]