* [PATCH 0/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency
@ 2024-05-31 9:37 Marcin Juszkiewicz
2024-05-31 9:37 ` [PATCH 1/1] " Marcin Juszkiewicz
2024-06-07 13:23 ` [PATCH 0/1] " Peter Maydell
0 siblings, 2 replies; 4+ messages in thread
From: Marcin Juszkiewicz @ 2024-05-31 9:37 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Leif Lindholm, Radoslaw Biernacki, qemu-arm,
Marcin Juszkiewicz
Trusted Firmware 2.11 got released, EDK2 202405 got released as well.
Both were built for QEMU CI and proper patch is now in arm.next queue.
So all requirements to move from legacy 62.5MHz to armv8.6-ready 1GHz
frequency are fulfiled.
Marcin Juszkiewicz (1):
hw/arm/sbsa-ref: switch to 1GHz timer frequency
hw/arm/sbsa-ref.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
--
2.45.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency
2024-05-31 9:37 [PATCH 0/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency Marcin Juszkiewicz
@ 2024-05-31 9:37 ` Marcin Juszkiewicz
2024-06-03 13:45 ` Leif Lindholm
2024-06-07 13:23 ` [PATCH 0/1] " Peter Maydell
1 sibling, 1 reply; 4+ messages in thread
From: Marcin Juszkiewicz @ 2024-05-31 9:37 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Maydell, Leif Lindholm, Radoslaw Biernacki, qemu-arm,
Marcin Juszkiewicz
Updated firmware for QEMU CI is already in merge queue so we can move
platform to be future proof.
All supported cpus work fine with 1GHz timer frequency when firmware is
fresh enough.
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
hw/arm/sbsa-ref.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index 57c337fd92..7bd6898edf 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -62,16 +62,12 @@
/*
* Generic timer frequency in Hz (which drives both the CPU generic timers
- * and the SBSA watchdog-timer). Older versions of the TF-A firmware
- * typically used with sbsa-ref (including the binaries in our Avocado test
- * Aarch64SbsarefMachine.test_sbsaref_alpine_linux_max_pauth_impdef
- * assume it is this value.
+ * and the SBSA watchdog-timer). Older (<2.11) versions of the TF-A firmware
+ * assumed 62.5MHz here.
*
- * TODO: this value is not architecturally correct for an Armv8.6 or
- * better CPU, so we should move to 1GHz once the TF-A fix above has
- * made it into a release and into our Avocado test.
+ * Starting with Armv8.6 CPU 1GHz timer frequency is mandated.
*/
-#define SBSA_GTIMER_HZ 62500000
+#define SBSA_GTIMER_HZ 1000000000
enum {
SBSA_FLASH,
--
2.45.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency
2024-05-31 9:37 ` [PATCH 1/1] " Marcin Juszkiewicz
@ 2024-06-03 13:45 ` Leif Lindholm
0 siblings, 0 replies; 4+ messages in thread
From: Leif Lindholm @ 2024-06-03 13:45 UTC (permalink / raw)
To: Marcin Juszkiewicz, qemu-devel
Cc: Peter Maydell, Radoslaw Biernacki, qemu-arm
On 2024-05-31 10:37, Marcin Juszkiewicz wrote:
> Updated firmware for QEMU CI is already in merge queue so we can move
> platform to be future proof.
>
> All supported cpus work fine with 1GHz timer frequency when firmware is
> fresh enough.
>
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Thanks!
> ---
> hw/arm/sbsa-ref.c | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
> index 57c337fd92..7bd6898edf 100644
> --- a/hw/arm/sbsa-ref.c
> +++ b/hw/arm/sbsa-ref.c
> @@ -62,16 +62,12 @@
>
> /*
> * Generic timer frequency in Hz (which drives both the CPU generic timers
> - * and the SBSA watchdog-timer). Older versions of the TF-A firmware
> - * typically used with sbsa-ref (including the binaries in our Avocado test
> - * Aarch64SbsarefMachine.test_sbsaref_alpine_linux_max_pauth_impdef
> - * assume it is this value.
> + * and the SBSA watchdog-timer). Older (<2.11) versions of the TF-A firmware
> + * assumed 62.5MHz here.
> *
> - * TODO: this value is not architecturally correct for an Armv8.6 or
> - * better CPU, so we should move to 1GHz once the TF-A fix above has
> - * made it into a release and into our Avocado test.
> + * Starting with Armv8.6 CPU 1GHz timer frequency is mandated.
> */
> -#define SBSA_GTIMER_HZ 62500000
> +#define SBSA_GTIMER_HZ 1000000000
>
> enum {
> SBSA_FLASH,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency
2024-05-31 9:37 [PATCH 0/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency Marcin Juszkiewicz
2024-05-31 9:37 ` [PATCH 1/1] " Marcin Juszkiewicz
@ 2024-06-07 13:23 ` Peter Maydell
1 sibling, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2024-06-07 13:23 UTC (permalink / raw)
To: Marcin Juszkiewicz
Cc: qemu-devel, Leif Lindholm, Radoslaw Biernacki, qemu-arm
On Fri, 31 May 2024 at 10:37, Marcin Juszkiewicz
<marcin.juszkiewicz@linaro.org> wrote:
>
> Trusted Firmware 2.11 got released, EDK2 202405 got released as well.
> Both were built for QEMU CI and proper patch is now in arm.next queue.
>
> So all requirements to move from legacy 62.5MHz to armv8.6-ready 1GHz
> frequency are fulfiled.
>
> Marcin Juszkiewicz (1):
> hw/arm/sbsa-ref: switch to 1GHz timer frequency
>
> hw/arm/sbsa-ref.c | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-07 13:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 9:37 [PATCH 0/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency Marcin Juszkiewicz
2024-05-31 9:37 ` [PATCH 1/1] " Marcin Juszkiewicz
2024-06-03 13:45 ` Leif Lindholm
2024-06-07 13:23 ` [PATCH 0/1] " Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).