qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: pierrick.bouvier@linaro.org
Subject: [PATCH 2/2] Enable firmware support for PIE and GCS
Date: Thu,  2 Oct 2025 11:59:09 -0700	[thread overview]
Message-ID: <20251002185910.584990-3-richard.henderson@linaro.org> (raw)
In-Reply-To: <20251002185910.584990-1-richard.henderson@linaro.org>

---
 build_arm_trusted_firmware.sh                 |  1 +
 ...arm-trusted-firmware-support-PIE-GCS.patch | 30 +++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 patches/arm-trusted-firmware-support-PIE-GCS.patch

diff --git a/build_arm_trusted_firmware.sh b/build_arm_trusted_firmware.sh
index d223142..0b148ef 100755
--- a/build_arm_trusted_firmware.sh
+++ b/build_arm_trusted_firmware.sh
@@ -18,6 +18,7 @@ clone()
         git clone $url --single-branch --branch $version --depth 1 $src
         pushd $src
         git am ../patches/arm-trusted-firmware-support-FEAT_TCR2-and-FEAT-SCTLR2.patch
+        git am ../patches/arm-trusted-firmware-support-PIE-GCS.patch
         popd
     fi
     ln -s $src arm-trusted-firmware
diff --git a/patches/arm-trusted-firmware-support-PIE-GCS.patch b/patches/arm-trusted-firmware-support-PIE-GCS.patch
new file mode 100644
index 0000000..132e939
--- /dev/null
+++ b/patches/arm-trusted-firmware-support-PIE-GCS.patch
@@ -0,0 +1,30 @@
+From 0925eadf8922bbe811ec41fb983347928f3bc63b Mon Sep 17 00:00:00 2001
+From: Richard Henderson <richard.henderson@linaro.org>
+Date: Thu, 2 Oct 2025 11:43:11 -0700
+Subject: [PATCH] plat/qemu/common/: add support for FEAT_{S1PIE,S2PIE,GCS}
+
+---
+ plat/qemu/common/common.mk | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/plat/qemu/common/common.mk b/plat/qemu/common/common.mk
+index 6bc1084..2c344b6 100644
+--- a/plat/qemu/common/common.mk
++++ b/plat/qemu/common/common.mk
+@@ -126,6 +126,13 @@ ENABLE_FEAT_HCX		:=	2
+ ENABLE_FEAT_TCR2	:=	2
+ ENABLE_FEAT_SCTLR2	:=	2
+ 
++# 8.9
++ENABLE_FEAT_S1PIE	:=	2
++ENABLE_FEAT_S2PIE	:=	2
++
++# 9.4
++ENABLE_FEAT_GCS		=	2
++
+ # SPM_MM is not compatible with ENABLE_SVE_FOR_NS (build breaks)
+ ifeq (${SPM_MM},1)
+ 	ENABLE_SVE_FOR_NS	:= 0
+-- 
+2.43.0
+
-- 
2.43.0



  parent reply	other threads:[~2025-10-02 19:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-02 18:59 [PATCH 0/2] FEAT_GCS firmware update for test_rme_* Richard Henderson
2025-10-02 18:59 ` [PATCH 1/2] Update tf-rmm to support FEAT_S1PIE Richard Henderson
2025-10-02 20:59   ` Pierrick Bouvier
2025-10-02 18:59 ` Richard Henderson [this message]
2025-10-02 20:59   ` [PATCH 2/2] Enable firmware support for PIE and GCS Pierrick Bouvier
2025-10-02 22:01 ` [PATCH 0/2] FEAT_GCS firmware update for test_rme_* Pierrick Bouvier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251002185910.584990-3-richard.henderson@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).