| 4593b932 | 27-Jun-2024 |
Nishant Sharma <nishant.sharma@arm.com> |
feat(rdv3): introduce platform handler for Group0 interrupt
This patch introduces a handler for RD-V3 variants to handle Group0 secure interrupts. Currently, it is empty but serves as a placeholder
feat(rdv3): introduce platform handler for Group0 interrupt
This patch introduces a handler for RD-V3 variants to handle Group0 secure interrupts. Currently, it is empty but serves as a placeholder for future Group0 interrupt sources.
Signed-off-by: Nishant Sharma <nishant.sharma@arm.com> Signed-off-by: Rakshit Goyal <rakshit.goyal@arm.com> Change-Id: Ifa418094f6075a6cdc33e63eec1825103bbf6d68
show more ...
|
| 82f46593 | 27-Sep-2023 |
Nishant Sharma <nishant.sharma@arm.com> |
feat(neoverse-rd): use larger stack size when S-EL2 spmc is enabled
Larger stack size is needed when S-EL2 SPMC is enabled. This is required because BL31 xlat map framework makes more nested calls w
feat(neoverse-rd): use larger stack size when S-EL2 spmc is enabled
Larger stack size is needed when S-EL2 SPMC is enabled. This is required because BL31 xlat map framework makes more nested calls when this feature is enabled.
Signed-off-by: Nishant Sharma <nishant.sharma@arm.com> Signed-off-by: Rakshit Goyal <rakshit.goyal@arm.com> Change-Id: Ib3f2abf38b576ba96402dab4ba995d8b648b4cc7
show more ...
|
| 842ba2f2 | 27-Jan-2025 |
Rakshit Goyal <rakshit.goyal@arm.com> |
fix(neoverse-rd): set correct SVE vector lengths
Affected platforms: RD-N2, RD-V1, RD-V1-MC, RD-V3 and their configurations.
Previously, the SVE vector lengths for these platforms were being taken
fix(neoverse-rd): set correct SVE vector lengths
Affected platforms: RD-N2, RD-V1, RD-V1-MC, RD-V3 and their configurations.
Previously, the SVE vector lengths for these platforms were being taken from the default configuration. This commit updates their respective platform.mk files to specify the correct vector lengths.
Signed-off-by: Rakshit Goyal <rakshit.goyal@arm.com> Change-Id: I8919257e2cec5c0e819424ff44a623dc3ab1a368
show more ...
|
| aacdfdfe | 04-Feb-2025 |
Olivier Deprez <olivier.deprez@arm.com> |
Merge "fix(tc): enable Last-level cache (LLC) for tc4" into integration |
| 8f0235fb | 31-Jan-2025 |
Leo Yan <leo.yan@arm.com> |
feat(tc): get entropy with PSA Crypto API
The PSA Crypto API is available with sending messages to RSE. Change to invoke PSA Crypto API for getting entropy.
Change-Id: I4b2dc4eb99606c2425b64949d9c
feat(tc): get entropy with PSA Crypto API
The PSA Crypto API is available with sending messages to RSE. Change to invoke PSA Crypto API for getting entropy.
Change-Id: I4b2dc4eb99606c2425b64949d9c3f5c576883758 Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Icen Zeyada <Icen.Zeyada2@arm.com>
show more ...
|
| 2ae197ac | 16-May-2024 |
Leo Yan <leo.yan@arm.com> |
feat(tc): enable trng
Enable the trng on the platform, which can be used by other features. `rng-seed` has been removed and enabled `FEAT_RNG_TRAP` to trap to EL3 when accessing system registers RND
feat(tc): enable trng
Enable the trng on the platform, which can be used by other features. `rng-seed` has been removed and enabled `FEAT_RNG_TRAP` to trap to EL3 when accessing system registers RNDR and RNDRRS
Change-Id: Ibde39115f285e67d31b14863c75beaf37493deca Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Icen Zeyada <Icen.Zeyada2@arm.com>
show more ...
|
| 895d973d | 04-Feb-2025 |
Olivier Deprez <olivier.deprez@arm.com> |
Merge "fix(morello): remove stray white-space in 'morello/platform.mk'" into integration |
| a3f96179 | 31-May-2024 |
Leo Yan <leo.yan@arm.com> |
feat(tc): initialize the RSE communication in earlier phase
Move the RSE MHU channel initialization to the platform setup phase, this allows the services (e.g. TRNG service) to talk to RSE during th
feat(tc): initialize the RSE communication in earlier phase
Move the RSE MHU channel initialization to the platform setup phase, this allows the services (e.g. TRNG service) to talk to RSE during the service init function.
Change-Id: Id0ff6e49117008463f11b2dc3c585daca00f609c Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Icen Zeyada <Icen.Zeyada2@arm.com>
show more ...
|
| da305ec7 | 26-Sep-2024 |
Boyan Karatotev <boyan.karatotev@arm.com> |
feat(arm): convert arm platforms to expect a wakeup
Newer cores in upcoming platforms may refuse to power down. The PSCI library is already prepared for this so convert platform code to also allow t
feat(arm): convert arm platforms to expect a wakeup
Newer cores in upcoming platforms may refuse to power down. The PSCI library is already prepared for this so convert platform code to also allow this. This is simple - drop the `wfi` + panic and let common code deal with the fallout. The end result will be the same (sans the message) except the platform will have fewer responsibilities. The only exception is for cores being signalled to power off gracefully ahead of system reset. That path must also be terminal so replace the end with the same psci_pwrdown_cpu_end() to behave the same as the generic implementation. It will handle wakeups and panic, hoping that the system gets reset from under it. The dmb is upgraded to a dsb so no functional change.
Change-Id: I381f96bec8532bda6ccdac65de57971aac42e7e8 Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
|
| 45c7328c | 20-Sep-2024 |
Boyan Karatotev <boyan.karatotev@arm.com> |
fix(cpus): avoid SME related loss of context on powerdown
Travis' and Gelas' TRMs tell us to disable SME (set PSTATE.{ZA, SM} to 0) when we're attempting to power down. What they don't tell us is th
fix(cpus): avoid SME related loss of context on powerdown
Travis' and Gelas' TRMs tell us to disable SME (set PSTATE.{ZA, SM} to 0) when we're attempting to power down. What they don't tell us is that if this isn't done, the powerdown request will be rejected. On the CPU_OFF path that's not a problem - we can force SVCR to 0 and be certain the core will power off.
On the suspend to powerdown path, however, we cannot do this. The TRM also tells us that the sequence could also be aborted on eg. GIC interrupts. If this were to happen when we have overwritten SVCR to 0, upon a return to the caller they would experience a loss of context. We know that at least Linux may call into PSCI with SVCR != 0. One option is to save the entire SME context which would be quite expensive just to work around. Another option is to downgrade the request to a normal suspend when SME was left on. This option is better as this is expected to happen rarely enough to ignore the wasted power and we don't want to burden the generic (correct) path with needless context management.
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I698fa8490ebf51461f6aa8bba84f9827c5c46ad4
show more ...
|
| 2b5e00d4 | 19-Dec-2024 |
Boyan Karatotev <boyan.karatotev@arm.com> |
feat(psci): allow cores to wake up from powerdown
The simplistic view of a core's powerdown sequence is that power is atomically cut upon calling `wfi`. However, it turns out that it has lots to do
feat(psci): allow cores to wake up from powerdown
The simplistic view of a core's powerdown sequence is that power is atomically cut upon calling `wfi`. However, it turns out that it has lots to do - it has to talk to the interconnect to exit coherency, clean caches, check for RAS errors, etc. These take significant amounts of time and are certainly not atomic. As such there is a significant window of opportunity for external events to happen. Many of these steps are not destructive to context, so theoretically, the core can just "give up" half way (or roll certain actions back) and carry on running. The point in this sequence after which roll back is not possible is called the point of no return.
One of these actions is the checking for RAS errors. It is possible for one to happen during this lengthy sequence, or at least remain undiscovered until that point. If the core were to continue powerdown when that happens, there would be no (easy) way to inform anyone about it. Rejecting the powerdown and letting software handle the error is the best way to implement this.
Arm cores since at least the a510 have included this exact feature. So far it hasn't been deemed necessary to account for it in firmware due to the low likelihood of this happening. However, events like GIC wakeup requests are much more probable. Older cores will powerdown and immediately power back up when this happens. Travis and Gelas include a feature similar to the RAS case above, called powerdown abandon. The idea is that this will improve the latency to service the interrupt by saving on work which the core and software need to do.
So far firmware has relied on the `wfi` being the point of no return and if it doesn't explicitly detect a pending interrupt quite early on, it will embark onto a sequence that it expects to end with shutdown. To accommodate for it not being a point of no return, we must undo all of the system management we did, just like in the warm boot entrypoint.
To achieve that, the pwr_domain_pwr_down_wfi hook must not be terminal. Most recent platforms do some platform management and finish on the standard `wfi`, followed by a panic or an endless loop as this is expected to not return. To make this generic, any platform that wishes to support wakeups must instead let common code call `psci_power_down_wfi()` right after. Besides wakeups, this lets common code handle powerdown errata better as well.
Then, the CPU_OFF case is simple - PSCI does not allow it to return. So the best that can be done is to attempt the `wfi` a few times (the choice of 32 is arbitrary) in the hope that the wakeup is transient. If it isn't, the only choice is to panic, as the system is likely to be in a bad state, eg. interrupts weren't routed away. The same applies for SYSTEM_OFF, SYSTEM_RESET, and SYSTEM_RESET2. There the panic won't matter as the system is going offline one way or another. The RAS case will be considered in a separate patch.
Now, the CPU_SUSPEND case is more involved. First, to powerdown it must wipe its context as it is not written on warm boot. But it cannot be overwritten in case of a wakeup. To avoid the catch 22, save a copy that will only be used if powerdown fails. That is about 500 bytes on the stack so it hopefully doesn't tip anyone over any limits. In future that can be avoided by having a core manage its own context.
Second, when the core wakes up, it must undo anything it did to prepare for poweroff, which for the cores we care about, is writing CPUPWRCTLR_EL1.CORE_PWRDN_EN. The least intrusive for the cpu library way of doing this is to simply call the power off hook again and have the hook toggle the bit. If in the future there need to be more complex sequences, their direction can be advised on the value of this bit.
Third, do the actual "resume". Most of the logic is already there for the retention suspend, so that only needs a small touch up to apply to the powerdown case as well. The missing bit is the powerdown specific state management. Luckily, the warmboot entrypoint does exactly that already too, so steal that and we're done.
All of this is hidden behind a FEAT_PABANDON flag since it has a large memory and runtime cost that we don't want to burden non pabandon cores with.
Finally, do some function renaming to better reflect their purpose and make names a little bit more consistent.
Change-Id: I2405b59300c2e24ce02e266f91b7c51474c1145f Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
|
| db69d118 | 03-Feb-2025 |
Manish V Badarkhe <Manish.Badarkhe@arm.com> |
fix(arm): create build directory before key generation
Arm ROTPK generation may start before the build directory is created, causing errors like:
00:45:53.235 Can't open "/home/buildslave/workspac
fix(arm): create build directory before key generation
Arm ROTPK generation may start before the build directory is created, causing errors like:
00:45:53.235 Can't open "/home/buildslave/workspace/tf-a-coverity/ trusted-firmware-a/build/rd1ae/debug/arm_rotpk.bin" for writing, No such file or directory
This patch ensures the build directory is created beforehand to prevent such issues.
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: I73f7d5af00efc738e95ea79c5cacecdb6a2d20c6
show more ...
|
| d1de6b2b | 15-May-2024 |
Leo Yan <leo.yan@arm.com> |
feat(tc): enable stack protector
Enable the compiler's stack protector for detecting stack overflow issues.
Though TC platform can generate RNG from RSE via MHU channel, the stack protector canary
feat(tc): enable stack protector
Enable the compiler's stack protector for detecting stack overflow issues.
Though TC platform can generate RNG from RSE via MHU channel, the stack protector canary is used prior to MHU channel initialization.
Thus, currently here simply returns a value of the combination of a timer's value and a compile-time constant.
Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Icen Zeyada <Icen.Zeyada2@arm.com> Change-Id: I68fcc7782637b2b6b4dbbc81bc15df8c5ce0040b
show more ...
|
| 3ce41dc7 | 31-Jan-2025 |
Olivier Deprez <olivier.deprez@arm.com> |
Merge "fix(rdv3): add console name to checksum calculation on RD-V3" into integration |
| 26a520b2 | 29-Jan-2025 |
Leo Yan <leo.yan@arm.com> |
fix(tc): fix compilation error
When the SPD_spmd configuration is disabled, the compiler complaints:
plat/arm/board/tc/tc_bl2_dpe.c:234:22: error: unused variable 'array_size' [-Werror=unused-varia
fix(tc): fix compilation error
When the SPD_spmd configuration is disabled, the compiler complaints:
plat/arm/board/tc/tc_bl2_dpe.c:234:22: error: unused variable 'array_size' [-Werror=unused-variable] 234 | const size_t array_size = ARRAY_SIZE(tc_dpe_metadata); | ^~~~~~~~~~ plat/arm/board/tc/tc_bl2_dpe.c:233:16: error: unused variable 'i' [-Werror=unused-variable] 233 | size_t i; | ^ cc1: all warnings being treated as errors
Move variable declarations into the code chunk protected by the SPD_spmd configuration.
Change-Id: I1a3889938e2d4ec5efec516e9ef54034f9d711b2 Signed-off-by: Leo Yan <leo.yan@arm.com>
show more ...
|
| fc45c16b | 28-Jan-2025 |
Manish V Badarkhe <manish.badarkhe@arm.com> |
Merge "fix(rdv3): fix comment for DRAM1 carveout size" into integration |
| 2e361319 | 29-Oct-2024 |
Ben Horgan <ben.horgan@arm.com> |
fix(tc): enable certificate on the last secure partition
Distros (e.g. Buildroot and Android) can have different secure partition layout.
This commit iterates the DPE metadata table and finds index
fix(tc): enable certificate on the last secure partition
Distros (e.g. Buildroot and Android) can have different secure partition layout.
This commit iterates the DPE metadata table and finds index (i) for the first entry of the secure partition, connecting with the defined secure partition number NUM_SP, so the last secure partition index is:
i + NUM_SP - 1
Instead of setting the certificate in hard code, dynamically enables the certificate for the last secure partition base on calculated index.
Signed-off-by: Ben Horgan <ben.horgan@arm.com> Signed-off-by: Leo Yan <leo.yan@arm.com> Change-Id: Idd11b4f463bf5ccc8d82cd06bd21deeebbda67d9
show more ...
|
| 4e2369c7 | 21-Oct-2024 |
Rakshit Goyal <rakshit.goyal@arm.com> |
fix(rdv3): fix comment for DRAM1 carveout size
Corrected the comment for the size of NRD_CSS_DRAM1_CARVEOUT_SIZE (0x0C000000) from 117MB to 192MB
Signed-off-by: Rakshit Goyal <rakshit.goyal@arm.com
fix(rdv3): fix comment for DRAM1 carveout size
Corrected the comment for the size of NRD_CSS_DRAM1_CARVEOUT_SIZE (0x0C000000) from 117MB to 192MB
Signed-off-by: Rakshit Goyal <rakshit.goyal@arm.com> Change-Id: I289d37f50e70b936f717d4579d73882fac28ee95
show more ...
|
| 7b41acaf | 05-Jul-2024 |
Jagdish Gediya <jagdish.gediya@arm.com> |
fix(tc): enable Last-level cache (LLC) for tc4
EXTLLC bit in CPUECTLR_EL1(for non-gelas cpus) and in CPUECTLR2_EL1 register for gelas cpu enables external Last-level cache in the system,
External L
fix(tc): enable Last-level cache (LLC) for tc4
EXTLLC bit in CPUECTLR_EL1(for non-gelas cpus) and in CPUECTLR2_EL1 register for gelas cpu enables external Last-level cache in the system,
External LLC is present on TC4 systems in MCN but it is not enabled in CPU registers so enable it.
On TC4, Gelas vs Non-Gelas CPUs have different bits to enable EXTLLC so take care of that as well.
Change-Id: Ic6a74b4af110a3c34d19131676e51901ea2bf6e3 Signed-off-by: Jagdish Gediya <jagdish.gediya@arm.com> Signed-off-by: Icen.Zeyada <Icen.Zeyada2@arm.com>
show more ...
|
| 289578e6 | 24-Oct-2024 |
Jerry Wang <Jerry.Wang4@arm.com> |
fix(rdn2): add LCA multichip data for RD-N2-Cfg2
This patch adds the routing table addresses required for LCA enablement on RD-N2-Cfg2. CMN on RD-N2-Cfg2 uses AXI Stream IDs to route LCA connections
fix(rdn2): add LCA multichip data for RD-N2-Cfg2
This patch adds the routing table addresses required for LCA enablement on RD-N2-Cfg2. CMN on RD-N2-Cfg2 uses AXI Stream IDs to route LCA connections to the correct downstream tx_cxs_a4s port. The data programmed in the routing table are the A4S IDs of each chip.
Change-Id: I46e558f3be7f0d51b768b7c5586f15e6bc517f3a Signed-off-by: Jerry Wang <Jerry.Wang4@arm.com>
show more ...
|
| d0b93a0d | 16-Sep-2024 |
Jerry Wang <Jerry.Wang4@arm.com> |
fix(rdv3): add LCA multichip data for RD-V3-Cfg2
This patch adds the routing table addresses required for LCA enablement on RD-V3-Cfg2. Since LCA connection on rdv3 uses ACE5L instead of A4S, the ad
fix(rdv3): add LCA multichip data for RD-V3-Cfg2
This patch adds the routing table addresses required for LCA enablement on RD-V3-Cfg2. Since LCA connection on rdv3 uses ACE5L instead of A4S, the addresses programmed in the routing table is the address of memory mapped HNI with chip offset.
Change-Id: Ic235983d63e8ab3492ae566b68841d0659724e45 Signed-off-by: Jerry Wang <Jerry.Wang4@arm.com>
show more ...
|
| c89438bc | 16-Sep-2024 |
Jerry Wang <Jerry.Wang4@arm.com> |
feat(gic): add support for local chip addressing
This patch adds support for Local Chip Addressing (LCA). In a multi-chip system, enablig LCA allows each GIC Distributor to maintain its own version
feat(gic): add support for local chip addressing
This patch adds support for Local Chip Addressing (LCA). In a multi-chip system, enablig LCA allows each GIC Distributor to maintain its own version of routing table. This feature is activated when the GICD_CFGID.LCA bit is set to 1.
The existing `gic600_multichip_data` data structure did not account for the LCA feature. To support LCA: - `rt_owner_base` is replaced by `base_addrs[]`. This is required because each GICD in the system needs to be configured independently, and their base addresses must be passed to the driver. - `chip_addrs` is changed from 1D to 2D array to store the routing table for each chip's GICD. The entries in `chip_addrs` are configuration dependent, as the GIC specification does not enforce this.
On a multi-chip platform with chip count N where LCA is enabled by default, the `gic600_multichip_data` structure should contain all copies of the routing table (N*N entries). On platforms where LCA is not supported, only the first sub-array with N entries is required. The function signature of `gic600_multichip_init` remains unchanged, but if the LCA feature is enabled, the driver will expect the routing table configuration in the described format.
Change-Id: I8830c2cf90db6a0cae78e99914cd32c637284a2b Signed-off-by: Jerry Wang <Jerry.Wang4@arm.com>
show more ...
|
| bf6b1513 | 23-Jan-2025 |
Manish V Badarkhe <manish.badarkhe@arm.com> |
Merge changes I70b68b06,I7b180c3e,Id4ad925d,Ie31933e0,Ie8fe1f1d, ... into integration
* changes: refactor(tc): rename TC_FPGA_ANDROID_IMG_IN_RAM fix(tc): modify ethernet configuration for TC4 FP
Merge changes I70b68b06,I7b180c3e,Id4ad925d,Ie31933e0,Ie8fe1f1d, ... into integration
* changes: refactor(tc): rename TC_FPGA_ANDROID_IMG_IN_RAM fix(tc): modify ethernet configuration for TC4 FPGA fix(tc): modify gpio controller base addr for TC4 FPGA fix(tc): modify DPU configuration in dts for TC4 FPGA fix(tc): modify mmc configuration for TC4 FPGA feat(tc): configure UART for TC4 FPGA
show more ...
|
| b8ac81c7 | 20-Jan-2025 |
Olivier Deprez <olivier.deprez@arm.com> |
Merge "chore(fvp): use correct dts for dynamiq cores" into integration |
| d6dccfb0 | 20-Jan-2025 |
Manish Pandey <manish.pandey2@arm.com> |
Merge "build: remove Windows compatibility layer" into integration |