diff options
author | Alistair Francis <alistair.francis@xilinx.com> | 2017-08-25 10:59:24 -0700 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-08-27 20:19:29 +1000 |
commit | 068563ffad4896f1512b3bcf97a11dc40cdbca2e (patch) | |
tree | db0e7beb12a185bc99ebfd4769c8c74245c12623 | |
parent | 7cc7bede17d65c496509c3d10b3ff0964d29c16f (diff) | |
download | meta-xilinx-068563ffad4896f1512b3bcf97a11dc40cdbca2e.tar.gz |
arm-trusted-firmware: Update ATF patches to match mainline
Update the patches that we are holding in Yocto to reflect the commits
that have been accepted by the mainline ATF project.
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2 files changed, 27 insertions, 18 deletions
diff --git a/recipes-bsp/arm-trusted-firmware/files/psci_common-Resolve-GCC-static-analysis-false-positi.patch b/recipes-bsp/arm-trusted-firmware/files/psci_common-Resolve-GCC-static-analysis-false-positi.patch index f7065859..bc9bf61c 100644 --- a/recipes-bsp/arm-trusted-firmware/files/psci_common-Resolve-GCC-static-analysis-false-positi.patch +++ b/recipes-bsp/arm-trusted-firmware/files/psci_common-Resolve-GCC-static-analysis-false-positi.patch | |||
@@ -1,9 +1,9 @@ | |||
1 | From 0197ad57b44fb7f10ca604891e0974110748fbd5 Mon Sep 17 00:00:00 2001 | 1 | From 8596a87e75421016b83ed7f2ffb342114f48b5ca Mon Sep 17 00:00:00 2001 |
2 | From: Alistair Francis <alistair.francis@xilinx.com> | 2 | From: Alistair Francis <alistair.francis@xilinx.com> |
3 | Date: Mon, 21 Aug 2017 10:19:40 -0700 | 3 | Date: Wed, 23 Aug 2017 13:55:21 -0700 |
4 | Subject: [PATCH] psci_common: Resolve GCC static analysis false positive | 4 | Subject: [PATCH] psci_common: Resolve GCC static analysis false positive |
5 | 5 | ||
6 | Previously commit 555ebb34db8f3424c1b394df2f10ec attmpted to fix this | 6 | Previously commit 555ebb34db8f3424c1b394df2f10ecf9c1f70901 attmpted to fix this |
7 | GCC issue: | 7 | GCC issue: |
8 | 8 | ||
9 | services/std_svc/psci/psci_common.c: In function 'psci_do_state_coordination': | 9 | services/std_svc/psci/psci_common.c: In function 'psci_do_state_coordination': |
@@ -12,29 +12,38 @@ array bounds [-Werror=array-bounds] | |||
12 | psci_req_local_pwr_states[pwrlvl - 1][cpu_idx] = req_pwr_state; | 12 | psci_req_local_pwr_states[pwrlvl - 1][cpu_idx] = req_pwr_state; |
13 | 13 | ||
14 | This fix doesn't work as asserts aren't built in non-debug build flows. | 14 | This fix doesn't work as asserts aren't built in non-debug build flows. |
15 | Let's ensure this error is fixed for all build cases. | 15 | |
16 | Let's use GCCs #pragma option (documented here: | ||
17 | https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html) to avoid | ||
18 | this false positive instead. | ||
16 | 19 | ||
17 | Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> | 20 | Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> |
18 | Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | ||
19 | --- | 21 | --- |
20 | Upstream Status: Pending | 22 | Upstream Status: Accepted in mainline, pending for 2017.3 |
21 | 23 | ||
22 | lib/psci/psci_common.c | 2 ++ | 24 | lib/psci/psci_common.c | 7 +++++++ |
23 | 1 file changed, 2 insertions(+) | 25 | 1 file changed, 7 insertions(+) |
24 | 26 | ||
25 | diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c | 27 | diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c |
26 | index 68cdd6eb..a8c94215 100644 | 28 | index 68cdd6eb..3843d4df 100644 |
27 | --- a/lib/psci/psci_common.c | 29 | --- a/lib/psci/psci_common.c |
28 | +++ b/lib/psci/psci_common.c | 30 | +++ b/lib/psci/psci_common.c |
29 | @@ -394,6 +394,8 @@ void psci_do_state_coordination(unsigned int end_pwrlvl, | 31 | @@ -216,8 +216,15 @@ static void psci_set_req_local_pwr_state(unsigned int pwrlvl, |
30 | plat_local_state_t target_state, *req_states; | 32 | unsigned int cpu_idx, |
31 | 33 | plat_local_state_t req_pwr_state) | |
32 | assert(end_pwrlvl <= PLAT_MAX_PWR_LVL); | 34 | { |
33 | + if (end_pwrlvl > PLAT_MAX_PWR_LVL) | 35 | + /* |
34 | + return; | 36 | + * This should never happen, we have this here to avoid |
35 | parent_idx = psci_cpu_pd_nodes[cpu_idx].parent_node; | 37 | + * "array subscript is above array bounds" errors in GCC. |
38 | + */ | ||
39 | assert(pwrlvl > PSCI_CPU_PWR_LVL); | ||
40 | +#pragma GCC diagnostic push | ||
41 | +#pragma GCC diagnostic ignored "-Warray-bounds" | ||
42 | psci_req_local_pwr_states[pwrlvl - 1][cpu_idx] = req_pwr_state; | ||
43 | +#pragma GCC diagnostic pop | ||
44 | } | ||
36 | 45 | ||
37 | /* For level 0, the requested state will be equivalent | 46 | /****************************************************************************** |
38 | -- | 47 | -- |
39 | 2.11.0 | 48 | 2.11.0 |
40 | 49 | ||
diff --git a/recipes-bsp/arm-trusted-firmware/files/zynqmp-Remove-duplicate-const-declaration.patch b/recipes-bsp/arm-trusted-firmware/files/zynqmp-Remove-duplicate-const-declaration.patch index dd127fb5..aeb5a203 100644 --- a/recipes-bsp/arm-trusted-firmware/files/zynqmp-Remove-duplicate-const-declaration.patch +++ b/recipes-bsp/arm-trusted-firmware/files/zynqmp-Remove-duplicate-const-declaration.patch | |||
@@ -10,7 +10,7 @@ Fixing compilation errors due to duplicate 'const' keyword: | |||
10 | 10 | ||
11 | Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> | 11 | Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> |
12 | --- | 12 | --- |
13 | Upstream Status: Accepted in mainline, patch send to Xilinx | 13 | Upstream Status: Accepted for 2017.3 |
14 | 14 | ||
15 | plat/xilinx/zynqmp/pm_service/pm_client.c | 2 +- | 15 | plat/xilinx/zynqmp/pm_service/pm_client.c | 2 +- |
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |