Page MenuHomePhabricator

Trusted Firmware AProject
ActivePublic

Recent Activity

Feb 28 2023

CameronNemo updated subscribers of T678: stm32mp1: support generating multiple images in one build.
Feb 28 2023, 4:43 PM · Trusted Firmware A, TF-A Enhancement
samgithub11 updated subscribers of T678: stm32mp1: support generating multiple images in one build.
Feb 28 2023, 6:48 AM · Trusted Firmware A, TF-A Enhancement

Feb 27 2023

madhukar-Arm closed T981: default attributes of (E)SPIs for gicv3 as Resolved.
Feb 27 2023, 5:31 PM · Trusted Firmware A
madhukar-Arm added a comment to T981: default attributes of (E)SPIs for gicv3.

A fix has been made available through the patch https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/18679. It is now merged. Thanks to Sylwester Garncarek.

Feb 27 2023, 5:30 PM · Trusted Firmware A

Feb 21 2023

bith3ad added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

Please see https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/19401 which should fix this for all targets.

Feb 21 2023, 2:17 PM · Trusted Firmware A

Jan 8 2023

CJKay added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

The patch stack is still a work in progress so BL1 is the only fixed image so far, but BL2 and BL31 need the same treatment. Your best bet until I get around to applying these fixes to the remaining images is the current workaround (TF_LDFLAGS="--no-warn-rwx-segment").

Jan 8 2023, 11:29 AM · Trusted Firmware A
jan-kiszka added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

Thanks, good to know. So, 2.9 will likely carry a fix? Is there a better patch I can use already (the one referenced does not directly appear to solve the issue)?

Jan 8 2023, 11:06 AM · Trusted Firmware A
CJKay added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

Hi Jan, sorry for the delay. This is currently in progress under the mixed-rwx topic: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/18661/5

Jan 8 2023, 10:52 AM · Trusted Firmware A
jan-kiszka added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

What's the status of this? Currently trying to build TF-A against the bookworm toolchain, and there the warning is even fatal. For now I'm working around it with this patch:

Jan 8 2023, 7:59 AM · Trusted Firmware A

Jan 3 2023

soby-mathew added a comment to T1011: Fast approach to clean a memory?.

I want to find a way to clean a memory region in TF-A firmware.

Jan 3 2023, 10:23 AM · Trusted Firmware A

Dec 19 2022

odeprez added a comment to T1011: Fast approach to clean a memory?.

I want to find a way to clean a memory region in TF-A firmware.

Can you elaborate what you mean by "clean" ?
From the description it seems to be a simple memset, in which case data may remain in caches.
Does the requested operation need to complete to memory e.g. involving cache clean?

Dec 19 2022, 9:42 AM · Trusted Firmware A

Dec 13 2022

shumeigiku created T1011: Fast approach to clean a memory?.
Dec 13 2022, 10:38 AM · Trusted Firmware A

Dec 7 2022

dkl added a comment to T1010: nxp/crypto/caam (formerly fsl_sec): Type-punning undefined behavior leads to unaligned access in BL31 firmware and unhandled exception in EL3.

Found a fix in atf master which seems to touch on exactly this issue: https://github.com/ARM-software/arm-trusted-firmware/commit/fa7fdfabf07d91439b0869ffd8e805f0166294bf

Dec 7 2022, 12:51 PM · Trusted Firmware A, TF-A Bug
dkl created T1010: nxp/crypto/caam (formerly fsl_sec): Type-punning undefined behavior leads to unaligned access in BL31 firmware and unhandled exception in EL3.
Dec 7 2022, 10:37 AM · Trusted Firmware A, TF-A Bug

Nov 17 2022

abertschi added a watcher for Trusted Firmware A: abertschi.
Nov 17 2022, 4:53 PM

Nov 16 2022

derrick-huang added a comment to T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0).

There may be something wrong with my network that I can't visit https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a. I will follow up this issue after my network is fixed.

Nov 16 2022, 1:39 AM · TF-A Bug, Trusted Firmware A

Nov 15 2022

QSchulz moved T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0) from In Progress to Closed on the Trusted Firmware A board.
Nov 15 2022, 11:44 AM · TF-A Bug, Trusted Firmware A
odeprez added a comment to T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0).

fix submitted

Nov 15 2022, 11:20 AM · TF-A Bug, Trusted Firmware A
QSchulz moved T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0) from Backlog to In Progress on the Trusted Firmware A board.
Nov 15 2022, 10:02 AM · TF-A Bug, Trusted Firmware A

Nov 14 2022

joannafarley-arm added a comment to T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0).

Patch from Bug submitter also raised https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/17768

Nov 14 2022, 5:48 PM · TF-A Bug, Trusted Firmware A
QSchulz added a project to T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0): TF-A Bug.
Nov 14 2022, 4:16 PM · TF-A Bug, Trusted Firmware A
QSchulz claimed T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0).
Nov 14 2022, 4:16 PM · TF-A Bug, Trusted Firmware A
QSchulz created T1008: Rockchip: refusal to parse FDT from U-Boot since 94b2f94bd63258c300b53ad421488c3c4455712b (after v2.7.0).
Nov 14 2022, 4:15 PM · TF-A Bug, Trusted Firmware A

Nov 10 2022

pmanish87 added a comment to T1007: Taking configuration values from the environment in TF-A makefiles.

I agree with the idea and its a good capability to have. I don't thing there will be many TF-A build flags which has chance of name collision with environment variables. we can add TF-A prefix to them.

Nov 10 2022, 8:47 PM · Trusted Firmware A
gyuri-szing created T1007: Taking configuration values from the environment in TF-A makefiles.
Nov 10 2022, 12:05 PM · Trusted Firmware A

Sep 27 2022

Luoject assigned T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on to Andre-ARM.

Hi Andre-ARM, to fix the problem, here's the pull request: https://github.com/ARM-software/arm-trusted-firmware/pull/1988

Sep 27 2022, 7:44 AM · Trusted Firmware A, TF-A Bug
Luoject added a comment to T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on.

Hi,
thanks for the info, I will have a look at this, though probably only later this week.
As for rebuilding: I assume you are using the firmware drops from the pftf github?
This is deeply hidden in the EDK2 build system, but it will effectively use a precompiled version of bl31.bin checked into the edk2-non-osi.git repository. This will be placed into the first 128KB of RPI_EFI.fd file, filled up with 0xff.
So to replace just bl31.bin, you simply overwrite the first part of that file, with your compiled version.
To get bl31.bin from source, you just need an aarch64 (cross-)compiler, then:
$ CROSS_COMPILE=aarch64-linux-gnu- make PLAT=rpi4 DEBUG=0
This should be described in docs/plat/rpi4.rst. If you find something missing, let me know, or even better: send a patch ;-)

Sep 27 2022, 5:18 AM · Trusted Firmware A, TF-A Bug

Sep 26 2022

Andre-ARM added a comment to T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on.

Hi,
thanks for the info, I will have a look at this, though probably only later this week.
As for rebuilding: I assume you are using the firmware drops from the pftf github?
This is deeply hidden in the EDK2 build system, but it will effectively use a precompiled version of bl31.bin checked into the edk2-non-osi.git repository. This will be placed into the first 128KB of RPI_EFI.fd file, filled up with 0xff.
So to replace just bl31.bin, you simply overwrite the first part of that file, with your compiled version.
To get bl31.bin from source, you just need an aarch64 (cross-)compiler, then:
$ CROSS_COMPILE=aarch64-linux-gnu- make PLAT=rpi4 DEBUG=0
This should be described in docs/plat/rpi4.rst. If you find something missing, let me know, or even better: send a patch ;-)

Sep 26 2022, 1:18 PM · Trusted Firmware A, TF-A Bug
Luoject added a comment to T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on.

So that's a lot of details (thanks for that!), but what is the actual problem? That secondaries cannot be taken offline? Or that they don't came back online? And did that work before the commit you mentioned?

Sep 26 2022, 12:09 PM · Trusted Firmware A, TF-A Bug
Andre-ARM added a comment to T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on.

So that's a lot of details (thanks for that!), but what is the actual problem? That secondaries cannot be taken offline? Or that they don't came back online? And did that work before the commit you mentioned?

Sep 26 2022, 9:55 AM · Trusted Firmware A, TF-A Bug
Luoject updated the task description for T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on.
Sep 26 2022, 7:42 AM · Trusted Firmware A, TF-A Bug

Sep 25 2022

felixsinger added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

I can confirm this occurs with binutils 2.39. We (coreboot) are trying to update binutils from our toolchain and we are about to adjust our build system. --no-warn-rwx-segment fixes the issue. https://review.coreboot.org/c/coreboot/+/66920

Sep 25 2022, 4:40 PM · Trusted Firmware A

Sep 24 2022

joannafarley-arm updated subscribers of T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on.

Pinging @Andre-ARM RPi4 platform code owner for comment.

Sep 24 2022, 3:23 PM · Trusted Firmware A, TF-A Bug
Luoject added a project to T1003: TF-A: RPi4 fails to boot secondary core at second time by PSCI cpu_on: Trusted Firmware A.
Sep 24 2022, 11:02 AM · Trusted Firmware A, TF-A Bug

Sep 22 2022

zandrey added a comment to T1000: imx8m does not start after EHF with S-EL2 SPMC change.

Hello Olivier,

Sep 22 2022, 1:05 PM · Trusted Firmware A, TF-A Bug
odeprez added a comment to T1000: imx8m does not start after EHF with S-EL2 SPMC change.

Thanks for your reply. Looks like there is a fix under works:

Sep 22 2022, 11:22 AM · Trusted Firmware A, TF-A Bug
mirschkyn added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

Adding that the linking warns about both rwx-sections and execstack for bl2 too.
So both are needed or the linking needs to be fixed.
I think the no-warn flags are only available to newer tools, so defaulting to them will probably break things.

Sep 22 2022, 10:50 AM · Trusted Firmware A

Sep 17 2022

zandrey added a comment to T1000: imx8m does not start after EHF with S-EL2 SPMC change.

Hello Olivier,

Sep 17 2022, 7:34 PM · Trusted Firmware A, TF-A Bug

Sep 13 2022

odeprez added a comment to T1000: imx8m does not start after EHF with S-EL2 SPMC change.

Hi,
From the logs I understand BL31 is started by U-Boot SPL rather than TF-A's BL1/BL2, correct?
Would it be possible to gather more verbose logs (build with DEBUG=1 LOG_LEVEL=50) ?
Can you share the TF-A command line used to build this platform?
In particular what's the state of EL3_EXCEPTION_HANDLING, SPD, SPMD_SPM_AT_SEL2 toggles?
Thanks, Olivier.

Sep 13 2022, 7:54 AM · Trusted Firmware A, TF-A Bug

Sep 11 2022

joannafarley-arm updated subscribers of T1000: imx8m does not start after EHF with S-EL2 SPMC change.

Ping @raghuncstate for comment https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=7c2fe62f1347bb94d82e9fdd3bc5eaebedaf0bc7

Sep 11 2022, 10:20 AM · Trusted Firmware A, TF-A Bug

Sep 10 2022

zandrey added projects to T1000: imx8m does not start after EHF with S-EL2 SPMC change: TF-A Bug, Trusted Firmware A.
Sep 10 2022, 8:21 PM · Trusted Firmware A, TF-A Bug

Sep 8 2022

joannafarley-arm added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

Hey Chris, I may have raised the bug wrong we are tracking internally as its binutils-2.39, sorry!

Sep 8 2022, 4:33 PM · Trusted Firmware A
CJKay added a comment to T996: Compiling bl31.elf with binutils 2.39 warns/fails with “ LOAD segment with RWX permissions”.

Hi Heitbaum, could you tell me which toolchain you're using to build TF-A? The latest Arm GNU AArch64 toolchain is 11.3.Rel1, which packages binutils-2.38 and therefore compiles successfully, so I'm currently unable to reproduce this error.

Sep 8 2022, 3:53 PM · Trusted Firmware A

Aug 19 2022

joannafarley-arm closed T998: dtc warns when compiling TF-A with FVP_HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts as Resolved.
Aug 19 2022, 1:16 PM · Trusted Firmware A
nadlertz added a comment to T998: dtc warns when compiling TF-A with FVP_HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts.

I see. Thanks for the replies. Feel free to close this task then.

Aug 19 2022, 11:34 AM · Trusted Firmware A
joannafarley-arm added a comment to T998: dtc warns when compiling TF-A with FVP_HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts.

Regarding this web page reporting system its mainly now being used for Bug reporting. There is now a TF-A mailing list https://lists.trustedfirmware.org/mailman3/lists/tf-a.lists.trustedfirmware.org/ where many more people can help with questions.

Aug 19 2022, 11:21 AM · Trusted Firmware A
Andre-ARM added a comment to T998: dtc warns when compiling TF-A with FVP_HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts.

Yes, this is a known issue. The DTs for the base FVP model were once imported from the Linux tree, but haven't been updated since. Meanwhile both DTC and the DT schema compliance tooling in the kernel tree got stricter, so the old files trigger warnings now.
One could go ahead and just fix each of those warnings, but I am actually working on rearranging the FVP DT files, so we can sync them from the kernel tree. That should fix those messages automatically.

Aug 19 2022, 11:03 AM · Trusted Firmware A

Aug 17 2022

nadlertz updated the task description for T998: dtc warns when compiling TF-A with FVP_HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts.
Aug 17 2022, 7:44 AM · Trusted Firmware A
nadlertz added a comment to T998: dtc warns when compiling TF-A with FVP_HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts.

I tried to follow the guidelines on https://github.com/ARM-software/tf-issues but I can't find where to add the "question" label. Sorry about this.

Aug 17 2022, 7:38 AM · Trusted Firmware A
nadlertz triaged T998: dtc warns when compiling TF-A with FVP_HW_CONFIG_DTS=fdts/fvp-base-gicv3-psci-1t.dts as Low priority.
Aug 17 2022, 7:35 AM · Trusted Firmware A