Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
0d7b0963
Commit
0d7b0963
authored
5 years ago
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "meson: gxl: Fix CPU hotplug" into integration
parents
35c28cc9
b4694a86
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/meson/gxl/gxl_pm.c
+12
-2
plat/meson/gxl/gxl_pm.c
with
12 additions
and
2 deletions
+12
-2
plat/meson/gxl/gxl_pm.c
View file @
0d7b0963
...
...
@@ -162,7 +162,8 @@ static void gxbb_pwr_domain_off(const psci_power_state_t *target_state)
static
void
__dead2
gxbb_pwr_domain_pwr_down_wfi
(
const
psci_power_state_t
*
target_state
)
{
unsigned
int
core
=
plat_gxbb_calc_core_pos
(
read_mpidr_el1
());
u_register_t
mpidr
=
read_mpidr_el1
();
unsigned
int
core
=
plat_gxbb_calc_core_pos
(
mpidr
);
/* CPU0 can't be turned OFF, emulate it with a WFE loop */
if
(
core
==
GXBB_PRIMARY_CPU
)
{
...
...
@@ -173,10 +174,19 @@ static void __dead2 gxbb_pwr_domain_pwr_down_wfi(const psci_power_state_t
VERBOSE
(
"BL31: CPU0 resumed.
\n
"
);
write_rmr_el3
(
RMR_EL3_RR_BIT
|
RMR_EL3_AA64_BIT
);
/*
* Because setting CPU0's warm reset entrypoint through PSCI
* mailbox and/or mmio mapped RVBAR (0xda834650) does not seem
* to work, jump to it manually.
* In order to avoid an assert, mmu has to be disabled.
*/
disable_mmu_el3
();
((
void
(
*
)(
void
))
gxbb_sec_entrypoint
)();
}
dsbsy
();
gxl_pm_set_reset_addr
(
mpidr
,
0
);
gxl_pm_reset
(
mpidr
);
for
(;;)
wfi
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help