From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDten-00033n-Lp for qemu-devel@nongnu.org; Fri, 17 Jun 2016 09:17:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDtei-0002nh-Je for qemu-devel@nongnu.org; Fri, 17 Jun 2016 09:17:57 -0400 From: Dmitry Osipenko Date: Fri, 17 Jun 2016 16:17:25 +0300 Message-Id: Subject: [Qemu-devel] [PATCH v14 0/3] PTimer fixes/features and ARM MPTimer conversion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers , qemu-arm@nongnu.org Cc: Peter Crosthwaite , Peter Maydell Hello, Current QEMU ARM MPTimer device model provides only a certain subset of the emulation behavior, so this patch series is supposed to add missing parts by converting the MPTimer to use generic ptimer helper. It fixes some important ptimer bugs and provides new features that are required for the ARM MPTimer. Emulation behavior is verified against the real HW by running specially crafted MPTimer tests in both icount and non-icount modes: https://gist.github.com/digetx/dbd46109503b1a91941a Changelog: I ommitted old changelog since the rest of the precursor ptimer patches already been applied and the ARM MPTimer patch has Peter's Crosthwaite r-b. V14: Set the ptimer policy in the ptimer_init() instead of adding ptimer_set_policy(), keeping ptimer VMState unchanged and dropped hw_error() hardening asserts as per Peter's Maydell V13 review comments, addressed the rest of the review comments. Dmitry Osipenko (3): hw/ptimer: Support running with counter = 0 by introducing new policy feature hw/ptimer: Fix counter - 1 returned by ptimer_get_count for the active timer arm_mptimer: Convert to use ptimer hw/arm/musicpal.c | 2 +- hw/core/ptimer.c | 49 ++++++++------- hw/dma/xilinx_axidma.c | 2 +- hw/m68k/mcf5206.c | 2 +- hw/m68k/mcf5208.c | 2 +- hw/net/fsl_etsec/etsec.c | 2 +- hw/net/lan9118.c | 2 +- hw/timer/allwinner-a10-pit.c | 2 +- hw/timer/arm_mptimer.c | 133 +++++++++++++++++++++-------------------- hw/timer/arm_timer.c | 2 +- hw/timer/aspeed_timer.c | 2 +- hw/timer/digic-timer.c | 2 +- hw/timer/etraxfs_timer.c | 6 +- hw/timer/exynos4210_mct.c | 7 ++- hw/timer/exynos4210_pwm.c | 2 +- hw/timer/exynos4210_rtc.c | 4 +- hw/timer/grlib_gptimer.c | 2 +- hw/timer/imx_epit.c | 4 +- hw/timer/imx_gpt.c | 2 +- hw/timer/lm32_timer.c | 2 +- hw/timer/milkymist-sysctl.c | 4 +- hw/timer/puv3_ost.c | 2 +- hw/timer/sh_timer.c | 2 +- hw/timer/slavio_timer.c | 2 +- hw/timer/xilinx_timer.c | 2 +- include/hw/ptimer.h | 7 ++- include/hw/timer/arm_mptimer.h | 5 +- 27 files changed, 133 insertions(+), 122 deletions(-) -- 2.9.0