[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 05/25] tests: Add a simple test of the CMSDK APB dual time
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 05/25] tests: Add a simple test of the CMSDK APB dual timer |
Date: |
Thu, 28 Jan 2021 14:38:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/28/21 12:41 PM, Peter Maydell wrote:
> Add a simple test of the CMSDK dual timer, since we're about to do
> some refactoring of how it is clocked.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> Message-id: 20210121190622.22000-6-peter.maydell@linaro.org
> ---
> v1->v2 changes:
> - phrase various clock_step() arguments as calculations
> based on tick counts and the ns-per-tick value rather
> than just the final numbers
> - remove set-but-not-used QTestState *s variable
> that gcc warns about but clang does not
> - use 40 * 256 in test_prescale() as suggested by Luc
> ---
> tests/qtest/cmsdk-apb-dualtimer-test.c | 130 +++++++++++++++++++++++++
> MAINTAINERS | 1 +
> tests/qtest/meson.build | 1 +
> 3 files changed, 132 insertions(+)
> create mode 100644 tests/qtest/cmsdk-apb-dualtimer-test.c
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- [PATCH v2 00/25] Convert CMSDK timer, watchdog, dualtimer to Clock framework, Peter Maydell, 2021/01/28
- [PATCH v2 02/25] clock: Add new clock_has_source() function, Peter Maydell, 2021/01/28
- [PATCH v2 03/25] tests: Add a simple test of the CMSDK APB timer, Peter Maydell, 2021/01/28
- [PATCH v2 05/25] tests: Add a simple test of the CMSDK APB dual timer, Peter Maydell, 2021/01/28
- [PATCH v2 01/25] ptimer: Add new ptimer_set_period_from_clock() function, Peter Maydell, 2021/01/28
- [PATCH v2 07/25] hw/timer/cmsdk-apb-timer: Add Clock input, Peter Maydell, 2021/01/28
- [PATCH v2 04/25] tests: Add a simple test of the CMSDK APB watchdog, Peter Maydell, 2021/01/28
- [PATCH v2 06/25] hw/timer/cmsdk-apb-timer: Rename CMSDKAPBTIMER struct to CMSDKAPBTimer, Peter Maydell, 2021/01/28
- [PATCH v2 08/25] hw/timer/cmsdk-apb-dualtimer: Add Clock input, Peter Maydell, 2021/01/28
- [PATCH v2 10/25] hw/arm/armsse: Rename "MAINCLK" property to "MAINCLK_FRQ", Peter Maydell, 2021/01/28
- [PATCH v2 09/25] hw/watchdog/cmsdk-apb-watchdog: Add Clock input, Peter Maydell, 2021/01/28
- [PATCH v2 11/25] hw/arm/armsse: Wire up clocks, Peter Maydell, 2021/01/28