| 01a326ab | 22-Jun-2023 |
Prasad Kummari <prasad.kummari@amd.com> |
chore(xilinx): reorder include files as per TF-A guidelines
This commit reorders the include files in accordance with the guidelines provided by Trusted Firmware-A (TF-A). The include files are rear
chore(xilinx): reorder include files as per TF-A guidelines
This commit reorders the include files in accordance with the guidelines provided by Trusted Firmware-A (TF-A). The include files are rearranged to ensure a consistent and organized structure in the codebase, facilitating better readability and maintainability.
https: //trustedfirmware-a.readthedocs.io/en/latest/process/coding-style.html#headers-and-inclusion https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git/tree/script/static-checks/
For example, to run header check: /tf-a-ci-scripts/script/static-checks/check-include-order.py --tree ${PWD} > Includefileorder.txt
Signed-off-by: Prasad Kummari <prasad.kummari@amd.com> Change-Id: Ia5802722e69859596b94f31ec40755adbf7d865b
show more ...
|
| de7ed953 | 09-Jun-2023 |
Prasad Kummari <prasad.kummari@amd.com> |
chore(xilinx): follow kernel doc format for functional documentation
For TF-A, there is no format specified for functional documentation. For AMD-Xilinx platforms, following kernel-doc format for th
chore(xilinx): follow kernel doc format for functional documentation
For TF-A, there is no format specified for functional documentation. For AMD-Xilinx platforms, following kernel-doc format for the functional documentation to make sure AMD-xilinx documentation is align with actual code.
For example use kernel-doc from linux to call: <linux>/scripts/kernel-doc -man -v 1 >/dev/null file...
Signed-off-by: Prasad Kummari <prasad.kummari@amd.com> Change-Id: Idcc9def408b6c8da35b36f67ef82fc00890e998c
show more ...
|
| 91291633 | 08-Jun-2023 |
Akshay Belsare <akshay.belsare@amd.com> |
fix(zynqmp): type cast addresses to fix overflow issue
Type cast the build time base and size argument to unsigned integer and the limit derived from these two as unsigned long to avoid size overflo
fix(zynqmp): type cast addresses to fix overflow issue
Type cast the build time base and size argument to unsigned integer and the limit derived from these two as unsigned long to avoid size overflow issue during build.
For zynqmp platform, calculating the limit without typecasting results in build error as follows
make -j DEBUG=0 RESET_TO_BL31=1 PLAT=zynqmp \ ZYNQMP_ATF_MEM_BASE=0x70000000 ZYNQMP_ATF_MEM_SIZE=0x10000000 \ XILINX_OF_BOARD_DTB_ADDR=0x100000 bl31
plat/xilinx/zynqmp/include/platform_def.h:51:62: error: integer overflow in expression of type 'int' results in '-2147483648' [-Werror=overflow] 51 | # define BL31_LIMIT (ZYNQMP_ATF_MEM_BASE + ZYNQMP_ATF_MEM_SIZE)
Change-Id: Id093a50e748884d4fba65626e94f361f6c23cecc Signed-off-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
show more ...
|
| f51bbacf | 12-Jun-2023 |
Manish Pandey <manish.pandey2@arm.com> |
Merge "fix(zynqmp): fix prepare_dtb() memory description" into integration |
| f1a32f49 | 07-Jun-2023 |
Manish Pandey <manish.pandey2@arm.com> |
Merge "chore(xilinx): replace ATF with TFA" into integration |
| 3efee73d | 02-Jun-2023 |
Michal Simek <michal.simek@amd.com> |
fix(zynqmp): fix prepare_dtb() memory description
The commit 8ce2fbffe37d ("fix(zynqmp): fix BLXX memory limits for user defined values") fixed logic around BL31_LIMIT but didn't update prepare_dtb(
fix(zynqmp): fix prepare_dtb() memory description
The commit 8ce2fbffe37d ("fix(zynqmp): fix BLXX memory limits for user defined values") fixed logic around BL31_LIMIT but didn't update prepare_dtb() which is also using +1 logic.
Change-Id: Ia6de10d992a552ca9cfa39c14261b0f94cda95ec Signed-off-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
show more ...
|
| 3b3c70a4 | 07-Jun-2023 |
Michal Simek <michal.simek@amd.com> |
fix(zynqmp): fix sdei arm_validate_ns_entrypoint()
Don't use BL31_LIMIT macro for validation logic directly but clearly mark BL31_LIMIT as 64bit address to avoid compilation error when -Werror=logic
fix(zynqmp): fix sdei arm_validate_ns_entrypoint()
Don't use BL31_LIMIT macro for validation logic directly but clearly mark BL31_LIMIT as 64bit address to avoid compilation error when -Werror=logical-op is passed.
Likely caused by ZYNQMP_ATF_MEM_BASE + ZYNQMP_ATF_MEM_SIZE is in 64bit logic 0x100000000 and compiler handles it as 32bit value. That's why error is shown.
Use uint64_t variable for limit and also for base.
Here is command line to replicate this issue: make realclean; make -j PLAT=zynqmp DEBUG=1 RESET_TO_BL31=1 \ SPD=tspd SDEI_SUPPORT=1 ZYNQMP_ATF_MEM_BASE=0xFFFC0000 \ ZYNQMP_ATF_MEM_SIZE=0x00040000 all -Werror=logical-op
Also error which is coming: plat/xilinx/zynqmp/zynqmp_sdei.c: In function 'arm_validate_ns_entrypoint': plat/xilinx/zynqmp/zynqmp_sdei.c:19:40: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op] 19 | return (entrypoint < BL31_BASE || entrypoint > BL31_LIMIT) ? 0 : -1;
Change-Id: Ie1f1b4d2cd94b977aebb72786ecace0b062da418 Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| c8be2240 | 26-Apr-2023 |
Prasad Kummari <prasad.kummari@amd.com> |
chore(xilinx): replace ATF with TFA
Since the Arm Trusted Firmware(ATF) has been renamed to Trusted Firmware-A (TF-A), replace all the instances of ATF from code comments, macros, variables and func
chore(xilinx): replace ATF with TFA
Since the Arm Trusted Firmware(ATF) has been renamed to Trusted Firmware-A (TF-A), replace all the instances of ATF from code comments, macros, variables and functions to TF-A.
Change-Id: Iab448d96158612a3effb4e49943f8d6cb43aaad5 Signed-off-by: Prasad Kummari <prasad.kummari@amd.com> Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
show more ...
|
| c0d8ee38 | 26-May-2023 |
Joanna Farley <joanna.farley@arm.com> |
Merge "fix(zynqmp): handling of type el3 interrrupts" into integration |
| 7e3e7999 | 27-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
fix(zynqmp): make zynqmp_devices structure smaller
Pack the structure and make id/ver smaller and sorted. The change saves 400bytes in RODATA section.
Change-Id: I8bcbe8fd589ba193551a0dd2cd19572516
fix(zynqmp): make zynqmp_devices structure smaller
Pack the structure and make id/ver smaller and sorted. The change saves 400bytes in RODATA section.
Change-Id: I8bcbe8fd589ba193551a0dd2cd19572516252e73 Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| e8077044 | 24-May-2023 |
Joanna Farley <joanna.farley@arm.com> |
Merge changes from topic "xilinx-ipi" into integration
* changes: feat(xilinx): fix IPI calculation for Versal/NET feat(xilinx): setup local/remote id in header feat(xilinx): clean macro names
Merge changes from topic "xilinx-ipi" into integration
* changes: feat(xilinx): fix IPI calculation for Versal/NET feat(xilinx): setup local/remote id in header feat(xilinx): clean macro names fix(zynqmp): do not export apu_ipi fix(zynqmp): remove unused headers feat(xilinx): move IPI related macros to plat_ipi.h
show more ...
|
| 8ce2fbff | 18-May-2023 |
Ilias Apalodimas <ilias.apalodimas@linaro.org> |
fix(zynqmp): fix BLXX memory limits for user defined values
When compiling with user defined areas of memory the platform code calculates the size with (base + size - 1). However, the linker file a
fix(zynqmp): fix BLXX memory limits for user defined values
When compiling with user defined areas of memory the platform code calculates the size with (base + size - 1). However, the linker file aligns section on a page boundary. So having the -1 in the size calculations leads to an error message looking like this:
bl31.elf section `coherent_ram' will not fit in region `RAM' aarch64-buildroot-linux-uclibc-ld: region `RAM' overflowed by 1 byte
Commit 9b4ed0af02a8 ("feat(plat/zynqmp): fix section `coherent_ram' will not fit in region `RAM'") applied a similar fix, but only in the predefined for BL31LIMIT/BASE.
While at it fix all other occurences of predefined values that were calculated with -1
Fixes: 01555332faa48 ("zynqmp: Revise memory configuration options") Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Change-Id: Ic96e36808d01f6bb92e6839cec92fc52320dd3f3
show more ...
|
| e8d61f7d | 11-May-2023 |
Prasad Kummari <prasad.kummari@amd.com> |
fix(zynqmp): handling of type el3 interrrupts
The array type_el3_interrupt_table is defined for MAX_INTR_EL3(128) elements and only two interrupts - ARM_IRQ_SEC_SGI_7(15), IRQ_TTC3_1(77) are being h
fix(zynqmp): handling of type el3 interrrupts
The array type_el3_interrupt_table is defined for MAX_INTR_EL3(128) elements and only two interrupts - ARM_IRQ_SEC_SGI_7(15), IRQ_TTC3_1(77) are being handled. Current implementation is consuming 1024 bytes which can be optimized for the number of interrupts to be handled. The current array is replaced with the array of struct zynmp_intr_info_type_el3_t (id and handler as member) and with maximum number of interrupts to be handled as the size of array (MAX_INTR_EL3 = 2). User is expected to adjust MAX_INTR_EL3 based on how many interrupts are handled in TF-A. With the updated implementation, a reduction of 960 bytes is observed. Versal and Versal NET are using similar implementation introduced by commit e497421d7f1e ("feat(versal): add infrastructure to handle multiple interrupts") and commit 0654ab7f7544 ("feat(versal-net): add support for platform management").
Signed-off-by: Prasad Kummari <prasad.kummari@amd.com> Change-Id: I07aa388d38ac3ff3c0d25decbe0719087b27ee18
show more ...
|
| 068b0bc6 | 25-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
feat(xilinx): setup local/remote id in header
Use new macros IPI_LOCAL_ID/IPI_REMOTE_ID to specify source and destination channels.
Change-Id: I558eebb4d4a83ae0ca9316824f9dba7426adbe3f Signed-off-b
feat(xilinx): setup local/remote id in header
Use new macros IPI_LOCAL_ID/IPI_REMOTE_ID to specify source and destination channels.
Change-Id: I558eebb4d4a83ae0ca9316824f9dba7426adbe3f Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| bfd06265 | 25-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
feat(xilinx): clean macro names
This is preparation for cleaning up IPI local and remote side communication. As of today macros are aligned to communication channel but there is missing calculation
feat(xilinx): clean macro names
This is preparation for cleaning up IPI local and remote side communication. As of today macros are aligned to communication channel but there is missing calculation based on channel selection.
Change-Id: Iac7daf832ff372ea2fece72a15afdfe988b4b7db Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| 237c5a74 | 25-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
fix(zynqmp): do not export apu_ipi
apu_ipi structure is not used anywhere externally that's why make it static.
Change-Id: Icfa99e16ae36fcbcc83b0891aa3527993d49c7ed Signed-off-by: Michal Simek <mic
fix(zynqmp): do not export apu_ipi
apu_ipi structure is not used anywhere externally that's why make it static.
Change-Id: Icfa99e16ae36fcbcc83b0891aa3527993d49c7ed Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| 62886363 | 25-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
fix(zynqmp): remove unused headers
There is no need to include all headers. Enough to have only needed one.
Change-Id: I4813156404969df36f66c1102cd627fdc1e3e9dc Signed-off-by: Michal Simek <michal.
fix(zynqmp): remove unused headers
There is no need to include all headers. Enough to have only needed one.
Change-Id: I4813156404969df36f66c1102cd627fdc1e3e9dc Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| 1b491eea | 13-Feb-2023 |
Elyes Haouas <ehaouas@noos.fr> |
fix(tree): correct some typos
found using codespell (https://github.com/codespell-project/codespell).
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I1bfa797e3460adddeefa916bb68e22beddaf6
fix(tree): correct some typos
found using codespell (https://github.com/codespell-project/codespell).
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I1bfa797e3460adddeefa916bb68e22beddaf6373
show more ...
|
| b39af24f | 27-Apr-2023 |
Joanna Farley <joanna.farley@arm.com> |
Merge "style(xilinx): fix AMD copyright format" into integration |
| ac72bdc0 | 20-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
style(xilinx): fix AMD copyright format
There is missing comma in copyright line. It is better to have all Copyrights align to the same style that's why fix it.
Change-Id: Ifc04b474e1a172a7243b073d
style(xilinx): fix AMD copyright format
There is missing comma in copyright line. It is better to have all Copyrights align to the same style that's why fix it.
Change-Id: Ifc04b474e1a172a7243b073d944007cf17d76e87 Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| 0aab76a4 | 24-Apr-2023 |
Joanna Farley <joanna.farley@arm.com> |
Merge changes from topic "versal/xlat-v2" into integration
* changes: feat(versal): switch to xlat_v2 fix(xilinx): remove asserts around arg0/arg1 |
| 2ef07eb4 | 20-Apr-2023 |
Joanna Farley <joanna.farley@arm.com> |
Merge "fix(zynqmp): remove unused PLAT_NUM_POWER_DOMAINS" into integration |
| 72c3124f | 17-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
fix(zynqmp): remove unused PLAT_NUM_POWER_DOMAINS
Remove unused PLAT_NUM_POWER_DOMAINS macro. Macro is referenced by docs/design/psci-pd-tree.rst but it is not used in any calculation that's why it
fix(zynqmp): remove unused PLAT_NUM_POWER_DOMAINS
Remove unused PLAT_NUM_POWER_DOMAINS macro. Macro is referenced by docs/design/psci-pd-tree.rst but it is not used in any calculation that's why it is better to remove it.
Change-Id: I33f26cda6a4404061af5598ea4c751f64127e50a Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| 8be20446 | 17-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
fix(xilinx): remove asserts around arg0/arg1
The commit a6f340fe58b9 ("Introduce the new BL handover interface") extended handoff to 4 registers instead of 2. Arguments arg0-3 are not used by platfo
fix(xilinx): remove asserts around arg0/arg1
The commit a6f340fe58b9 ("Introduce the new BL handover interface") extended handoff to 4 registers instead of 2. Arguments arg0-3 are not used by platform code but in future they can be used for it. But it doesn't make sense to checking their unused value.
Change-Id: I151e4b1574465409424453c054d937487086b79a Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|
| 619bc13e | 14-Apr-2023 |
Michal Simek <michal.simek@amd.com> |
style(xilinx): replace ARM by Arm in copyrights
The commit 6bb49c876c75 ("style(hooks): adds Arm copyright style fix") is enforcing proper case for ARM. That's why fix it in plat/xilinx to make sure
style(xilinx): replace ARM by Arm in copyrights
The commit 6bb49c876c75 ("style(hooks): adds Arm copyright style fix") is enforcing proper case for ARM. That's why fix it in plat/xilinx to make sure that pre-commit.copyright won't be touching platform specific files.
Change-Id: I49c66e18d46ed871a6aa128c9b2a403d0cf83416 Signed-off-by: Michal Simek <michal.simek@amd.com>
show more ...
|