refactor(qemu): use generic hold penConvert QEMU to use the common hold pen helpers.This is not a functional fix -- QEMU uses HW_ASSISTED_COHERENCY=1so caches are always coherent and the origina
refactor(qemu): use generic hold penConvert QEMU to use the common hold pen helpers.This is not a functional fix -- QEMU uses HW_ASSISTED_COHERENCY=1so caches are always coherent and the original 8-byte slots worked.However, aligning with the common hold pen pattern improvesconsistency and removes duplicated logic.plat_hold_pen_init() is called once from plat_setup_psci_ops() towrite HOLD_STATE_WAIT into every slot and flush to main memory.Then plat_hold_pen_signal() writes just the target slot with theentrypoint. Secondaries use the plat_hold_pen_wait_and_jump macroto poll and branch directly to the entrypoint stored in their slot,eliminating the mailbox fetch.Change-Id: I5ca1ca5fb8708024ce8a04fa80403473dcd1e257Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
show more ...
Don't return error information from console_flushAnd from crash_console_flush.We ignore the error information return by console_flush in _every_place where we call it, and casting the return typ
Don't return error information from console_flushAnd from crash_console_flush.We ignore the error information return by console_flush in _every_place where we call it, and casting the return type to void does notwork around the MISRA violation that this causes. Instead, we collectthe error information from the driver (to avoid changing that API), anddon't return it to the caller.Change-Id: I1e35afe01764d5c8f0efd04f8949d333ffb688c1Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
qemu: Implement PSCI_CPU_OFF.This is based on the rpi implementation fromhttps://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/2746.Signed-off-by: Andrew Walbran <qwandor@google.com>Ch
qemu: Implement PSCI_CPU_OFF.This is based on the rpi implementation fromhttps://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/2746.Signed-off-by: Andrew Walbran <qwandor@google.com>Change-Id: I5fe324fcd9d5e232091e01267ea12147c46bc9c1
qemu: introducing sub-platforms to qemu platformThis commit change the plat/qemu directory structure into:`-- plat `-- qemu |-- common (files shared with all qemu subplatforms)
qemu: introducing sub-platforms to qemu platformThis commit change the plat/qemu directory structure into:`-- plat `-- qemu |-- common (files shared with all qemu subplatforms) |-- qemu (original qemu platform) |-- qemu_sbsa (new sqemu_sbsa platform) |-- subplat1 `-- subplat2This opens the possibility of adding new qemu sub-platforms which reuseexisting common platform code. The first platform which will leverage newstructure will be SBSA platform.Signed-off-by: Radoslaw Biernacki <radoslaw.biernacki@linaro.org>Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>Change-Id: Id0d8133e1fffc1b574b69aa2770ebc02bb837a9b