Skip to content
GitLab
Menu
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
441b1e8d
Unverified
Commit
441b1e8d
authored
Sep 10, 2018
by
Soby Mathew
Committed by
GitHub
Sep 10, 2018
Browse files
Merge pull request #1569 from soby-mathew/sm/cov_fix_scmi
CSS: Fix overrun if system power level is not available
parents
4728900f
d4ee9aa6
Changes
1
Show whitespace changes
Inline
Side-by-side
plat/arm/css/drivers/scp/css_pm_scmi.c
View file @
441b1e8d
...
...
@@ -105,8 +105,7 @@ void css_scp_suspend(const struct psci_power_state *target_state)
* If we reach here, then assert that power down at system power domain
* level is running.
*/
assert
(
target_state
->
pwr_domain_state
[
CSS_SYSTEM_PWR_DMN_LVL
]
==
ARM_LOCAL_STATE_RUN
);
assert
(
css_system_pwr_state
(
target_state
)
==
ARM_LOCAL_STATE_RUN
);
/* For level 0, specify `scmi_power_state_sleep` as the power state */
SCMI_SET_PWR_STATE_LVL
(
scmi_pwr_state
,
ARM_PWR_LVL0
,
...
...
@@ -154,8 +153,7 @@ void css_scp_off(const struct psci_power_state *target_state)
ARM_LOCAL_STATE_OFF
);
/* PSCI CPU OFF cannot be used to turn OFF system power domain */
assert
(
target_state
->
pwr_domain_state
[
CSS_SYSTEM_PWR_DMN_LVL
]
==
ARM_LOCAL_STATE_RUN
);
assert
(
css_system_pwr_state
(
target_state
)
==
ARM_LOCAL_STATE_RUN
);
for
(;
lvl
<=
PLAT_MAX_PWR_LVL
;
lvl
++
)
{
if
(
target_state
->
pwr_domain_state
[
lvl
]
==
ARM_LOCAL_STATE_RUN
)
...
...
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