Skip to content

systemd-boot: add EFI_MEMORY_ATTRIBUTE_PROTOCOL warning downgrade patch#2730

Open
aswinm94 wants to merge 1 commit into
qualcomm-linux:masterfrom
aswinm94:systemd
Open

systemd-boot: add EFI_MEMORY_ATTRIBUTE_PROTOCOL warning downgrade patch#2730
aswinm94 wants to merge 1 commit into
qualcomm-linux:masterfrom
aswinm94:systemd

Conversation

@aswinm94

@aswinm94 aswinm94 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Add backport systemd-boot patch that downgrades the
EFI_MEMORY_ATTRIBUTE_PROTOCOL missing message from warning to debug.

U-Boot currently does not implement EFI_MEMORY_ATTRIBUTE_PROTOCOL,
causing systemd-boot to display a warning during every boot on
EFI 2.10+ platforms. The warning triggers log_wait() behavior,
introducing an unnecessary boot-time delay even though the
condition is a known U-Boot limitation and requires no user action.

Include the patch in the systemd-boot recipe to suppress the
non-actionable warning and avoid the associated boot delay on
U-Boot-based systems.

upstream-status: Backport [https://github.com/systemd/systemd/pull/43017]

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 4417473

nodistro
Pass: 10 | Fail: 0 | Total: 10
qcom-distro_linux-qcom-6.18
Pass: 211 | Fail: 0 | Total: 239
qcom-distro
Pass: 265 | Fail: 0 | Total: 297

@test-reporting-app

test-reporting-app Bot commented Jul 13, 2026

Copy link
Copy Markdown

Test Results

  110 files  ±0    657 suites  ±0   5h 44m 19s ⏱️ - 1h 38m 2s
  157 tests  - 4    155 ✅ +16   1 💤 ±0  1 ❌  - 20 
4 239 runs   - 3  4 184 ✅ +37  54 💤  - 1  1 ❌  - 39 

For more details on these failures, see this check.

Results for commit d69cf39. ± Comparison against base commit cf1ada4.

This pull request removes 4 tests.
lava ‑ auto-login-action
lava ‑ lava-test-retry
lava ‑ lava-test-shell
lava ‑ minimal-boot

♻️ This comment has been updated with latest results.

@lumag Dmitry Baryshkov (lumag) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also you are not changing the "boot" recipe. Don't blindly c&p the description of the patch. Write a suitable commit message.

logging at LOG_DEBUG instead. Warnings are still emitted for
other UEFI >= 2.10 firmware that lack the protocol.

Upstream-Status: Pending [platform-specific: works around

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Pending patches, please. Post it and get reviewed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue is not specific to qualcomm, please fix in either u-boot or in systemd upstream, and once done backport to the respective projects (e.g. systemd -> oe-core, u-boot-qcom, here).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dmitry Baryshkov (@lumag) , Ricardo Salveti (@ricardosalveti)
The change has been merged in upstream
systemd/systemd#43017
backported the submitted patch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, can you send to oe-core as well? Justifying that it is useful to reduce the boot time when booting with u-boot based firmware.

@aswinm94 aswinm94 changed the title boot: skip NX_COMPAT warning on U-Boot firmware systemd-boot: add EFI_MEMORY_ATTRIBUTE_PROTOCOL warning downgrade patch Jul 15, 2026

SRC_URI:append:qcom = " \
file://0001-boot-stub-honor-PE-SectionAlignment-when-loading-inn.patch \
file://0002-boot-downgrade-EFI_MEMORY_ATTRIBUTE_PROTOCOL-warning.patch \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, we need to patch both recipes-core/systemd/systemd-boot_%.bbappend and recipes-core/systemd/systemd_%.bbappend, since systemd-boot produces the efi binary that gets into the deploy folder, but the efi binary that is available as a package comes from systemd (it is an issue in oe-core itself).

 
Add backport systemd patch that downgrades the
EFI_MEMORY_ATTRIBUTE_PROTOCOL missing message from warning to debug.
 
U-Boot currently does not implement EFI_MEMORY_ATTRIBUTE_PROTOCOL,
causing systemd to display a warning during every boot on
EFI 2.10+ platforms. The warning triggers log_wait() behavior,
introducing an unnecessary boot-time delay even though the
condition is a known U-Boot limitation and requires no user action.
 
Include the patch in the systemd & systemd-boot recipe to suppress the
non-actionable warning and avoid the associated boot delay on
U-Boot-based systems.

Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

Test run workflow

Test jobs for commit d69cf39

nodistro
Pass: 10 | Fail: 0 | Total: 10
qcom-distro_linux-qcom-6.18
Pass: 232 | Fail: 0 | Total: 259
qcom-distro
Pass: 278 | Fail: 1 | Total: 306

@qcomlnxci

Copy link
Copy Markdown

Test Coral run workflow

Test jobs for commit d69cf39

  • qcomdistro: multimedia image-prop
    Pass: 42 | Fail: 2 | Total: 44
  • qcomdistro: multimedia image
    Pass: 10 | Fail: 2 | Total: 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants