[Top][All Lists]

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

Re: [Qemu-ppc] [PATCH 1.7 v2 2/2] PPC: BookE: Make FIT/WDT timers at bes

From: Tom Musta
Subject: Re: [Qemu-ppc] [PATCH 1.7 v2 2/2] PPC: BookE: Make FIT/WDT timers at best millisecond grained
Date: Mon, 02 Dec 2013 10:50:49 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 11/25/2013 3:46 PM, Alexander Graf wrote:
> The default granularity for the FIT timer on 440 is on every 0x1000th
> transition of TB from 0 to 1. Translated that means 48828 times a second.
> Since interrupts are quite expensive for 440 and we don't really care
> about the accuracy of the FIT to that significance, let's force FIT and
> WDT to at best millisecond granularity.
> This basically restores behavior as it was in QEMU 1.6, where timers
> could only deal with millisecond granularities at all.
> This patch greatly improves performance with the 440 target and restores
> roughly the same performance level that QEMU 1.6 had for me.

@Reviewed-by: Tom Musta <address@hidden>


Is the problem the default?  If so, would it be better to change the default?
(for example, set the default TCR_FP for the 440 to 0b10).  Of course, if your
software is setting this back to 0b00, you will still have a problem.

The downside to your approach is that it eliminates the possibility for fine
grained timer interrupts for all Book E implementations and all kernels and/or
hypervisors.  I am not aware of any such system so my comment is purely


reply via email to

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