refactor(platforms): remove usage of psci_power_down_wfiThe callers in PSCI will now call wfi() after calling thepwr_domain_pwr_down() platform hook (previously they were mutuallyexclusive). As s
refactor(platforms): remove usage of psci_power_down_wfiThe callers in PSCI will now call wfi() after calling thepwr_domain_pwr_down() platform hook (previously they were mutuallyexclusive). As such, there is no need for platforms to do thisthemselves. In fact, it is strongly advisable for platforms not to dothis themselves so that the PSCI can apply any relevant erratamitigations.Change-Id: Ic9702edef7503996be24d984e29dfcc13bc3fcbaSigned-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
refactor: panic after calling psci_power_down_wfi()This function doesn't return and its callers that don't return eitherrely on this. Drop the dead attribute and add a panic() after it to makethi
refactor: panic after calling psci_power_down_wfi()This function doesn't return and its callers that don't return eitherrely on this. Drop the dead attribute and add a panic() after it to makethis expectation explicit. Calling `wfi` in the powerdown sequence isterminal so even if the function was made to return, there would be nofunctional change.This is useful for a following patch that makes psci_power_down_wfi()return.Change-Id: I62ca1ee058b1eaeb046966c795081e01bf45a2ebSigned-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
fix(rk3588): pmu: fix assembly symbol redefinitionSomehow cpus_pd_req_enter_wfi() gets called multiple times and clangisn't happy about redefining the same label multiple times (it is aninline fu
fix(rk3588): pmu: fix assembly symbol redefinitionSomehow cpus_pd_req_enter_wfi() gets called multiple times and clangisn't happy about redefining the same label multiple times (it is aninline function).An option could be to force the code to not be inlined (with__attribute__((noinline))) as removing the explicit inline still madethe compiler inline the code.This is not an issue on GCC because the compiler doesn't respect theinline request[1]. If the function is forced inlined withinline __attribute__((__always_inline__)), the same build issue as foundon clang happens for GCC.Use a local label[2] instead and make the branch instruction use thelatest previously defined local label instead, so that clang is happyand the code is consistent with other assembly instructions in this filewhich all use local labels.This gets rid of the following build error on clang:plat/rockchip/rk3588/drivers/pmu/pmu.c:763:7: error: symbol 'wfi_loop' is already defined 763 | "wfi_loop:\n" | ^<inline asm>:5:1: note: instantiated into assembly here 5 | wfi_loop: | ^[1] https://www.kernel.org/doc/local/inline.html[2] https://sourceware.org/binutils/docs/as/Symbol-Names.html Local Labels sectionSuggested-by: Boyan Karatotev <boyan.karatotev@arm.com>Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>Change-Id: Ie9f55135b2f95a78deb7cbb94f9a62d3ba61e808
feat(rk3588): enable crypto functionThe CPU crypto is not default on when power up, need to enable it bysoftware.Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>Change-Id: Ifee2eab5
feat(rk3588): enable crypto functionThe CPU crypto is not default on when power up, need to enable it bysoftware.Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>Change-Id: Ifee2eab55d9c13cef5f15926fb80016845e2a66d
feat(rk3588): support SCMI for clock/reset domainrockchip scmi clock controls clocks which only available in secure mode.Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>Change-Id: I5
feat(rk3588): support SCMI for clock/reset domainrockchip scmi clock controls clocks which only available in secure mode.Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>Change-Id: I5b983877a5b4e8acababbf7e0a3e2725e6479e08
feat(rk3588): support rk3588rk3588 is an Octa-core soc with Cortex-a55/a76 inside.This patch supports the following functions:1. basic platform setup2. power up/off cpus3. suspend/resume cpus4
feat(rk3588): support rk3588rk3588 is an Octa-core soc with Cortex-a55/a76 inside.This patch supports the following functions:1. basic platform setup2. power up/off cpus3. suspend/resume cpus4. suspend/resume system5. reset system6. power off systemSigned-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>Change-Id: I598109f15a2efd5b33aedd176cf708c08cb1dcf4