mbox series

[0/4] Expose GT CNTFRQ as a CPU property to support AST2600

Message ID 20191128054527.25450-1-andrew@aj.id.au (mailing list archive)
Headers show
Series Expose GT CNTFRQ as a CPU property to support AST2600 | expand

Message

Andrew Jeffery Nov. 28, 2019, 5:45 a.m. UTC
Hello,

This is a belated follow-up from a few of my earlier attempts to fix up the
ARM generic timer for correct behaviour on the ASPEED AST2600 SoC. The AST2600
clocks the generic timer at the rate of HPLL, which is configured to 1125MHz.
This is significantly quicker than the currently hard-coded generic timer rate
of 62.5MHz and so we see "sticky" behaviour in the guest.

Please review.

Andrew

Andrew Jeffery (4):
  target/arm: Remove redundant scaling of nexttick
  target/arm: Abstract the generic timer frequency
  target/arm: Prepare generic timer for per-platform CNTFRQ
  ast2600: Configure CNTFRQ at 1125MHz

 hw/arm/aspeed_ast2600.c |  3 +++
 target/arm/cpu.c        | 41 +++++++++++++++++++++++++++++++++--------
 target/arm/cpu.h        | 28 ++++++++++++++++++++++++++++
 target/arm/helper.c     | 24 ++++++++++++++++++------
 4 files changed, 82 insertions(+), 14 deletions(-)

Comments

Richard Henderson Dec. 2, 2019, 6:09 p.m. UTC | #1
On 11/27/19 5:45 AM, Andrew Jeffery wrote:
> Andrew Jeffery (4):
>   target/arm: Remove redundant scaling of nexttick
>   target/arm: Abstract the generic timer frequency
>   target/arm: Prepare generic timer for per-platform CNTFRQ
>   ast2600: Configure CNTFRQ at 1125MHz

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


r~