Home
last modified time | relevance | path

Searched hist:"7 f471c593d33a0c88e3db1e8852ec71d0a8d1d1b" (Results 1 – 2 of 2) sorted by relevance

/rk3399_ARM-atf/lib/extensions/sve/
H A Dsve.c7f471c593d33a0c88e3db1e8852ec71d0a8d1d1b Mon Sep 01 17:51:19 UTC 2025 Marek Vasut <marek.vasut+renesas@mailbox.org> fix(cpufeat): configure CPTR_EL2.ZEN and CPTR_EL2.TZ to match Linux

Linux Documentation/arch/arm64/booting.rst states that:
"
For CPUs with the Scalable Vector Extension (FEAT_SVE) present:
...
- If the kernel is entered at EL1 and EL2 is present:
- CPTR_EL2.TZ (bit 8) must be initialised to 0b0.
- CPTR_EL2.ZEN (bits 17:16) must be initialised to 0b11.
"
Without these settings, Linux kernel hangs on boot when trying
to use SVE. Adjust the register settings to match Linux kernel
expectations.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Change-Id: I9a72810dd902b08f9c61f157cc31e603aad2f73a
/rk3399_ARM-atf/include/arch/aarch64/
H A Darch.h7f471c593d33a0c88e3db1e8852ec71d0a8d1d1b Mon Sep 01 17:51:19 UTC 2025 Marek Vasut <marek.vasut+renesas@mailbox.org> fix(cpufeat): configure CPTR_EL2.ZEN and CPTR_EL2.TZ to match Linux

Linux Documentation/arch/arm64/booting.rst states that:
"
For CPUs with the Scalable Vector Extension (FEAT_SVE) present:
...
- If the kernel is entered at EL1 and EL2 is present:
- CPTR_EL2.TZ (bit 8) must be initialised to 0b0.
- CPTR_EL2.ZEN (bits 17:16) must be initialised to 0b11.
"
Without these settings, Linux kernel hangs on boot when trying
to use SVE. Adjust the register settings to match Linux kernel
expectations.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Change-Id: I9a72810dd902b08f9c61f157cc31e603aad2f73a