[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS
From: |
Leif Lindholm |
Subject: |
Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS |
Date: |
Wed, 3 Mar 2021 17:48:49 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Wed, Mar 03, 2021 at 16:16:34 +0100, Marcin Juszkiewicz wrote:
> Arm BSA (Base System Architecture) specification says:
>
> B_PE_09: PEs must implement the FEAT_PMUv3p1 extension, and the base
> system must expose a minimum of four programmable PMU counters to the
> operating system.
>
> B_PE_21: The base system must expose a minimum of two programmable PMU
> counters to a hypervisor.
>
> It is then repeated in SBSA (Server Base System Architecture)
> specification in level 3 requirements:
>
> Each PE must implement a minimum of six programmable PMU counters.
>
> So let make QEMU provide those 6 PMU counters.
>
> SBSA-ACS says now:
>
> 12 : Check number of PMU counters : Result: PASS
>
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
It would be good if we could get 6.0 closer to SBSA compliance.
Would it be worth the effort to make this controllable per cpu model?
/
Leif
> ---
> target/arm/helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/arm/helper.c b/target/arm/helper.c
> index 0e1a3b9421..02e25b5c22 100644
> --- a/target/arm/helper.c
> +++ b/target/arm/helper.c
> @@ -38,7 +38,7 @@
> #endif
>
> #define ARM_CPU_FREQ 1000000000 /* FIXME: 1 GHz, should be configurable */
> -#define PMCR_NUM_COUNTERS 4 /* QEMU IMPDEF choice */
> +#define PMCR_NUM_COUNTERS 6 /* QEMU IMPDEF choice */
>
> #ifndef CONFIG_USER_ONLY
>
> --
> 2.29.2
>
- [PATCH] arm: bump amount of PMU counters to pass SBSA ACS, Marcin Juszkiewicz, 2021/03/03
- Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS,
Leif Lindholm <=
- Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS, Peter Maydell, 2021/03/03
- Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS, Marcin Juszkiewicz, 2021/03/03
- Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS, Leif Lindholm, 2021/03/04
- Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS, Peter Maydell, 2021/03/04
- Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS, Leif Lindholm, 2021/03/04
- Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS, Peter Maydell, 2021/03/11