| 12a8e953 | 05-Nov-2024 |
Ryan Everett <ryan.everett@arm.com> |
fix(psa): fix P-384 PSA key signature verification
The buffer size allocated for the raw ECDSA signatures was too small for P-384 signatures. This led to mbedtls aborting the generation of the raw s
fix(psa): fix P-384 PSA key signature verification
The buffer size allocated for the raw ECDSA signatures was too small for P-384 signatures. This led to mbedtls aborting the generation of the raw sig.
Fix this by increasing the buffer size to the required value.
Change-Id: I06a9cfe1f4cb2603c5fbe945714e90460c24edb8 Signed-off-by: Ryan Everett <ryan.everett@arm.com>
show more ...
|
| ffbc2b90 | 06-Nov-2024 |
Yann Gautier <yann.gautier@st.com> |
Merge "fix(romlib): prevent race condition on the build directory" into integration |
| 9bc738d2 | 06-Nov-2024 |
Manish V Badarkhe <manish.badarkhe@arm.com> |
Merge changes I0448caa4,I8ee666ee into integration
* changes: build: install dependencies before doc build fix(docs): fix the example command for doc build |
| 19d52a83 | 09-Aug-2024 |
Andre Przywara <andre.przywara@arm.com> |
feat(cpufeat): add ENABLE_FEAT_LS64_ACCDATA
Armv8.6 introduced the FEAT_LS64 extension, which provides a 64 *byte* store instruction. A related instruction is ST64BV0, which will replace the lowest
feat(cpufeat): add ENABLE_FEAT_LS64_ACCDATA
Armv8.6 introduced the FEAT_LS64 extension, which provides a 64 *byte* store instruction. A related instruction is ST64BV0, which will replace the lowest 32 bits of the data with a value taken from the ACCDATA_EL1 system register (so that EL0 cannot alter them). Using that ST64BV0 instruction and accessing the ACCDATA_EL1 system register is guarded by two SCR_EL3 bits, which we should set to avoid a trap into EL3, when lower ELs use one of those.
Add the required bits and pieces to make this feature usable: - Add the ENABLE_FEAT_LS64_ACCDATA build option (defaulting to 0). - Add the CPUID and SCR_EL3 bit definitions associated with FEAT_LS64. - Add a feature check to check for the existing four variants of the LS64 feature and detect future extensions. - Add code to save and restore the ACCDATA_EL1 register on secure/non-secure context switches. - Enable the feature with runtime detection for FVP and Arm FPGA.
Please note that the *basic* FEAT_LS64 feature does not feature any trap bits, it's only the addition of the ACCDATA_EL1 system register that adds these traps and the SCR_EL3 bits.
Change-Id: Ie3e2ca2d9c4fbbd45c0cc6089accbb825579138a Signed-off-by: Andre Przywara <andre.przywara@arm.com>
show more ...
|
| 50d9383b | 03-Sep-2024 |
Tamas Ban <tamas.ban@arm.com> |
build: install dependencies before doc build
Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: I0448caa4e22c13d4dd821261642833d49ff7a234 |
| 9db2b059 | 02-Sep-2024 |
Tamas Ban <tamas.ban@arm.com> |
fix(docs): fix the example command for doc build
Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: I8ee666ee4cd135d09380ce31751ddba9962ff831 |
| c1c406a4 | 07-Oct-2024 |
Harrison Mutai <harrison.mutai@arm.com> |
fix(arm): load dt before updating entry point
For firmware handoff, ensure the device tree (dt) is loaded into memory before setting the entry point arguments for the next bootloader stage. This all
fix(arm): load dt before updating entry point
For firmware handoff, ensure the device tree (dt) is loaded into memory before setting the entry point arguments for the next bootloader stage. This allows the dt to be found and its address passed as an argument.
Change-Id: Ifedd7c573e2d4f6d68c596907d9d6c6a3eded317 Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
show more ...
|
| 88ed66bd | 06-Nov-2024 |
Soby Mathew <soby.mathew@arm.com> |
Merge "docs: el3 token signing" into integration |
| b226357b | 14-Oct-2024 |
Raghu Krishnamurthy <raghupathyk@nvidia.com> |
docs: el3 token signing
Add documentation for the feature where EL3 can be used to sign realm attestation token requests using RMM_EL3_TOKEN_SIGN command. This patch also adds documentation for the
docs: el3 token signing
Add documentation for the feature where EL3 can be used to sign realm attestation token requests using RMM_EL3_TOKEN_SIGN command. This patch also adds documentation for the RMM_EL3_FEATURES features command that can be used to discover support for features such as RMM_EL3_TOKEN_SIGN.
Change-Id: Iab5a157761ed17931210c3702f813198fc9c4b3a Signed-off-by: Raghu Krishnamurthy <raghupathyk@nvidia.com>
show more ...
|
| a9fdd198 | 06-Nov-2024 |
Joanna Farley <joanna.farley@arm.com> |
Merge changes from topic "xlnx_fix_plat_extn_decl_link" into integration
* changes: fix(versal2): variable conflicting with external linkage fix(versal-net): variable conflicting with external l
Merge changes from topic "xlnx_fix_plat_extn_decl_link" into integration
* changes: fix(versal2): variable conflicting with external linkage fix(versal-net): variable conflicting with external linkage fix(versal): variable conflicting with external linkage fix(zynqmp): variable conflicting with external linkage fix(versal2): add external declaration fix(versal): add external declaration fix(zynqmp): add external declaration
show more ...
|
| 830ed392 | 05-Nov-2024 |
Govindraj Raja <govindraj.raja@arm.com> |
Merge "feat(feat_sctlr2): enable FEAT_SCTLR2 for Realm world" into integration |
| e053e89f | 05-Nov-2024 |
Govindraj Raja <govindraj.raja@arm.com> |
Merge "fix(st): set no-pie option when building ST elf file" into integration |
| add536ed | 05-Nov-2024 |
Govindraj Raja <govindraj.raja@arm.com> |
Merge "fix(st-ddr): move skipddc_dat definition" into integration |
| 34088d7d | 05-Nov-2024 |
Govindraj Raja <govindraj.raja@arm.com> |
Merge changes I26cefbb5,I6a8b3528,I323fb741 into integration
* changes: fix(stm32mp2): set PLAT_MAX_PWR_LVL to one feat(stm32mp2): boot BL33 at EL1 or EL2 feat(stm32mp2): disable unsupported f
Merge changes I26cefbb5,I6a8b3528,I323fb741 into integration
* changes: fix(stm32mp2): set PLAT_MAX_PWR_LVL to one feat(stm32mp2): boot BL33 at EL1 or EL2 feat(stm32mp2): disable unsupported features
show more ...
|
| e53fc040 | 31-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
build(rk3399): m0: Makefile: respect verbosity for linkerfile
All commands in the Makefile respect the verbosity except this one, so let's be consistent and respect it for that one as well.
Signed-
build(rk3399): m0: Makefile: respect verbosity for linkerfile
All commands in the Makefile respect the verbosity except this one, so let's be consistent and respect it for that one as well.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: I5d1af4ee321e29449b927509cfa5ece01765a99e
show more ...
|
| c0c908e1 | 31-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
build(rk3399): m0: fail linker and assembler on warnings
Match the top Makefile flags and fail on warnings for the linker (ld) and assembler (as).
Signed-off-by: Quentin Schulz <quentin.schulz@cher
build(rk3399): m0: fail linker and assembler on warnings
Match the top Makefile flags and fail on warnings for the linker (ld) and assembler (as).
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: I53fbcbdbda109b1dfe39b390a41c1ef3fd7d3e04
show more ...
|
| 6feb164b | 31-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
build(rk3399): m0: remove redundant M0_CROSS_COMPILE
The included toolchain.mk uses M0_CROSS_COMPILE if present, or defaults to arm-none-eabi-, which is the value this variable holds in this Makefil
build(rk3399): m0: remove redundant M0_CROSS_COMPILE
The included toolchain.mk uses M0_CROSS_COMPILE if present, or defaults to arm-none-eabi-, which is the value this variable holds in this Makefile.
Let's remove it.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: Id805703cec0f118acdf4629e345924031b2c8c4b
show more ...
|
| 6fbec46a | 31-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
feat(build): rk3399: m0: add support for new binutils versions
c.f. 1f49db5f25cd ("feat(build): add support for new binutils versions") for the actual reasons. This commit applies the same logic but
feat(build): rk3399: m0: add support for new binutils versions
c.f. 1f49db5f25cd ("feat(build): add support for new binutils versions") for the actual reasons. This commit applies the same logic but for the m0 FW for RK3399 since it uses a different set of flags.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: I955b229a7d9d473892f3f3483eaf6e33ffe0e273
show more ...
|
| 5049f910 | 31-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
fix(rk3399): m0: Makefile: fix outside array bounds warning
Both GCC and clang actually complain about:
""" In file included from src/dram.c:12: src/dram.c: In function 'm0_main': include/rk3399_mc
fix(rk3399): m0: Makefile: fix outside array bounds warning
Both GCC and clang actually complain about:
""" In file included from src/dram.c:12: src/dram.c: In function 'm0_main': include/rk3399_mcu.h:15:34: warning: array subscript 0 is outside array bounds of 'volatile unsigned int[0]' [-Warray-bounds=] 15 | (*(volatile unsigned int *)(c)); __v; }) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/rk3399_mcu.h:16:69: note: in definition of macro 'mmio_write_32' 16 | #define mmio_write_32(c, v) ((*(volatile unsigned int *)(c)) = (v)) | ^ src/dram.c:67:23: note: in expansion of macro 'mmio_read_32' 67 | mmio_read_32(PARAM_ADDR + PARAM_FREQ_SELECT)); | ^~~~~~~~~~~~ cc1: note: source object is likely at address zero In function 'ddr_set_pll', inlined from 'm0_main' at src/dram.c:71:2: include/rk3399_mcu.h:14:40: warning: array subscript 0 is outside array bounds of 'volatile unsigned int[0]' [-Warray-bounds=] 14 | #define mmio_read_32(c) ({unsigned int __v = \ | ^~~ include/rk3399_mcu.h:16:69: note: in definition of macro 'mmio_write_32' 16 | #define mmio_write_32(c, v) ((*(volatile unsigned int *)(c)) = (v)) | ^ src/dram.c:47:23: note: in expansion of macro 'mmio_read_32' 47 | mmio_read_32(PARAM_ADDR + PARAM_DPLL_CON0)); | ^~~~~~~~~~~~ In function 'm0_main': cc1: note: source object is likely at address zero In function 'ddr_set_pll', inlined from 'm0_main' at src/dram.c:71:2: include/rk3399_mcu.h:14:40: warning: array subscript 0 is outside array bounds of 'volatile unsigned int[0]' [-Warray-bounds=] 14 | #define mmio_read_32(c) ({unsigned int __v = \ | ^~~ include/rk3399_mcu.h:16:69: note: in definition of macro 'mmio_write_32' 16 | #define mmio_write_32(c, v) ((*(volatile unsigned int *)(c)) = (v)) | ^ src/dram.c:49:23: note: in expansion of macro 'mmio_read_32' 49 | mmio_read_32(PARAM_ADDR + PARAM_DPLL_CON1)); | ^~~~~~~~~~~~ In function 'm0_main': cc1: note: source object is likely at address zero include/rk3399_mcu.h:16:35: warning: array subscript 0 is outside array bounds of 'volatile unsigned int[0]' [-Warray-bounds=] 16 | #define mmio_write_32(c, v) ((*(volatile unsigned int *)(c)) = (v)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/dram.c:80:9: note: in expansion of macro 'mmio_write_32' 80 | mmio_write_32(PARAM_ADDR + PARAM_M0_DONE, M0_DONE_FLAG); | ^~~~~~~~~~~~~ cc1: note: source object is likely at address zero """
The global Makefile defines --param=min-pagesize=0 already, so let's just apply the same fix for the m0 part of the RK3399 binary.
Suggested-by: Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: I4f29a579b9e4b01aa2540746ef46e2a382f0012e
show more ...
|
| efe45dd5 | 31-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
refactor(rk3399): m0: Makefile: use same tools as in build_macros.mk
This should make it easier to spot mistakes or reuse rules by comparing this Makefile with build_macros.mk.
Additionally, this a
refactor(rk3399): m0: Makefile: use same tools as in build_macros.mk
This should make it easier to spot mistakes or reuse rules by comparing this Makefile with build_macros.mk.
Additionally, this allows to provide flags that aren't supported by CC (e.g. --no-warn-rwx-segments).
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: Iba121d53959ff4f8bd10a14280c4d93a710dc9db
show more ...
|
| 87577afe | 31-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
refactor(rk3399): m0: Makefile: specify ARCH to be rk3399-m0
cortex-m0 is not a recognized ARCH in our build system so most macros need to be redefined to use hardcoded strings which isn't ideal.
W
refactor(rk3399): m0: Makefile: specify ARCH to be rk3399-m0
cortex-m0 is not a recognized ARCH in our build system so most macros need to be redefined to use hardcoded strings which isn't ideal.
While this now has limited use-case, a future commit will allow to make use of this fixed variable via macros.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: I6d1e588d2ab27d7a60f32e5369370c43d68b3a20
show more ...
|
| f8793888 | 28-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
fix(rk3588): pmu: fix assembly symbol redefinition
Somehow cpus_pd_req_enter_wfi() gets called multiple times and clang isn't happy about redefining the same label multiple times (it is an inline fu
fix(rk3588): pmu: fix assembly symbol redefinition
Somehow cpus_pd_req_enter_wfi() gets called multiple times and clang isn't happy about redefining the same label multiple times (it is an inline function).
An option could be to force the code to not be inlined (with __attribute__((noinline))) as removing the explicit inline still made the compiler inline the code.
This is not an issue on GCC because the compiler doesn't respect the inline request[1]. If the function is forced inlined with inline __attribute__((__always_inline__)), the same build issue as found on clang happens for GCC.
Use a local label[2] instead and make the branch instruction use the latest previously defined local label instead, so that clang is happy and the code is consistent with other assembly instructions in this file which 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 section Suggested-by: Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: Ie9f55135b2f95a78deb7cbb94f9a62d3ba61e808
show more ...
|
| 7f25d3cc | 11-May-2021 |
Khem Raj <raj.khem@gmail.com> |
fix(rockchip): pmu: Do not mark already defined functions as weak
These functions are already defined as static functions in same header Fixes
| plat/rockchip/common/drivers/pmu/pmu_com.h:35:14: er
fix(rockchip): pmu: Do not mark already defined functions as weak
These functions are already defined as static functions in same header Fixes
| plat/rockchip/common/drivers/pmu/pmu_com.h:35:14: error: weak identifier 'pmu_power_domain_ctr' never declared [-Werror] | #pragma weak pmu_power_domain_ctr | ^ | plat/rockchip/common/drivers/pmu/pmu_com.h:36:14: error: weak identifier 'check_cpu_wfie' never declared [-Werror] | #pragma weak check_cpu_wfie | ^
Signed-off-by: Khem Raj <raj.khem@gmail.com> [fixed alignment in commit log] [added fix(rockchip): prefix in commit title] Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: I96d4acbe743ba4b8996f0be0fa713b341bd4903c
show more ...
|
| f86c230a | 11-May-2021 |
Khem Raj <raj.khem@gmail.com> |
fix(rk3399): dram: Fix build with gcc 11
This is a redundant assignment which GCC warns about.
Fixes
plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c:781:11: error: explicitly assigning value
fix(rk3399): dram: Fix build with gcc 11
This is a redundant assignment which GCC warns about.
Fixes
plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c:781:11: error: explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself [-Werror,-Wself-assign] twr_tmp = twr_tmp; ~~~~~~~ ^ ~~~~~~~
Signed-off-by: Khem Raj <raj.khem@gmail.com> [add fix(rk3399): prefix to commit title] Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: Ib12281e0720346ffe68e81a24ea772ddc89d4f83
show more ...
|
| 6e38cc97 | 28-Oct-2024 |
Quentin Schulz <quentin.schulz@cherry.de> |
fix(rk3288): remove unused function
clang complains about it and refuses to build otherwise, so let's remove this seemingly unused function.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
fix(rk3288): remove unused function
clang complains about it and refuses to build otherwise, so let's remove this seemingly unused function.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Change-Id: Ie81b014feccfb93984fbf776dc69ca493cea89d0
show more ...
|