All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC|kirkstone] linux-ti-staging: add config preempt for am335x and am437x
@ 2023-09-14 17:10 Anand Balagopalakrishnan
  2023-09-14 19:09 ` [meta-ti] " Andrew Davis
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Anand Balagopalakrishnan @ 2023-09-14 17:10 UTC (permalink / raw)
  To: meta-ti
  Cc: reatmon, s-adivi, g-gupta, khasim, vijayp, praneeth,
	Anand Balagopalakrishnan

SGX needs a preemptible kernel. CONFIG_PREEMPT has always been enabled
on TI Linux kernels upto K5.1.

This is enabled on AM65x by default but missed out AM335x and AM437x.
Add a kernel config fragment to enable config preempt.

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
---
 .../linux/files/configs/config-preempt.cfg           | 12 ++++++++++++
 .../recipes-kernel/linux/linux-ti-staging_6.1.bb     |  1 +
 2 files changed, 13 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/files/configs/config-preempt.cfg

diff --git a/meta-ti-bsp/recipes-kernel/linux/files/configs/config-preempt.cfg b/meta-ti-bsp/recipes-kernel/linux/files/configs/config-preempt.cfg
new file mode 100644
index 00000000..c1e5ad7d
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/configs/config-preempt.cfg
@@ -0,0 +1,12 @@
+CONFIG_PREEMPT_BUILD=y
+# CONFIG_PREEMPT_NONE is not set
+CONFIG_PREEMPT=y
+CONFIG_PREEMPT_COUNT=y
+CONFIG_PREEMPTION=y
+CONFIG_PREEMPT_RCU=y
+CONFIG_TASKS_RCU_GENERIC=y
+CONFIG_TASKS_RCU=y
+CONFIG_UNINLINE_SPIN_UNLOCK=y
+# CONFIG_CEC_GPIO is not set
+CONFIG_DEBUG_PREEMPT=y
+# CONFIG_PREEMPT_TRACER is not set
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
index 8a883878..0ee63358 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
@@ -33,6 +33,7 @@ PR = "${MACHINE_KERNEL_PR}"
 
 KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
 KERNEL_GIT_PROTOCOL = "https"
+KERNEL_CONFIG_FRAGMENTS += "${WORKDIR}/config-preempt.cfg"
 SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
             file://defconfig"
 
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-09-21  0:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 17:10 [RFC|kirkstone] linux-ti-staging: add config preempt for am335x and am437x Anand Balagopalakrishnan
2023-09-14 19:09 ` [meta-ti] " Andrew Davis
2023-09-14 19:30 ` Ryan Eatmon
2023-09-14 19:36 ` [meta-ti] " Denys Dmytriyenko
2023-09-14 19:57   ` Bajjuri, Praneeth
     [not found] ` <1784DB091C7C28F5.22721@lists.yoctoproject.org>
2023-09-14 19:55   ` Denys Dmytriyenko
2023-09-15  1:47     ` [EXTERNAL] " Balagopalakrishnan, Anand
2023-09-15 16:17       ` Bajjuri, Praneeth
2023-09-15 16:42         ` Denys Dmytriyenko
2023-09-21  0:31           ` Bajjuri, Praneeth
2023-09-19  4:35         ` Balagopalakrishnan, Anand
2023-09-19 18:13           ` Denys Dmytriyenko
2023-09-20 10:04             ` [EXTERNAL] " Anand Balagopalakrishnan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.