* [PATCH] arm-autonomy/linux-arm-autonomy: apply runstate fix to kernels older than 5.10
@ 2021-01-11 15:08 Diego Sueiro
2021-01-14 19:21 ` [meta-arm] " Jon Mason
0 siblings, 1 reply; 2+ messages in thread
From: Diego Sueiro @ 2021-01-11 15:08 UTC (permalink / raw)
To: meta-arm; +Cc: nd
The patch introduced in 82ffc86 is a backport from the 5.10 version. Hence,
just apply it for kernels older than 5.10.
Change-Id: I6f442f540913b5e24bea533a436b4a3104d098e9
Issue-Id: SCM-2033
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
---
.../features/arm-autonomy/xen-common.scc | 2 --
...-do-not-setup-the-runstate-info-page-if-kpti-.patch | 0
.../recipes-kernel/linux/linux-arm-autonomy.inc | 10 ++++++++++
3 files changed, 10 insertions(+), 2 deletions(-)
rename meta-arm-autonomy/recipes-kernel/linux/{arm-autonomy-kmeta/features/arm-autonomy => files}/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch (100%)
diff --git a/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc b/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc
index beee091..f359d8c 100644
--- a/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc
+++ b/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc
@@ -1,5 +1,3 @@
define KFEATURE_DESCRIPTION "Common XEN (Host and Guest) configs and patches on autonomy systems"
kconf non-hardware xen-common.cfg
-
-patch 0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
diff --git a/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch b/meta-arm-autonomy/recipes-kernel/linux/files/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
similarity index 100%
rename from meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
rename to meta-arm-autonomy/recipes-kernel/linux/files/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
diff --git a/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc b/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc
index c5cb66d..89c9fce 100644
--- a/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc
+++ b/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc
@@ -33,3 +33,13 @@ KMACHINE_arm64-autonomy-guest = "arm64-autonomy-guest"
# Add Minimal Kernel Configs for Docker runtime
KERNEL_FEATURES += "${@bb.utils.contains('DISTRO_FEATURES', \
'docker', 'features/arm-autonomy/docker-minimal.scc', '', d)}"
+
+python() {
+ from distutils.version import LooseVersion
+
+ kernelVersion = d.getVar('LINUX_VERSION')
+
+ if kernelVersion and LooseVersion(kernelVersion) < '5.10':
+ if oe.utils.any_distro_features(d, "arm-autonomy-host arm-autonomy-guest"):
+ d.appendVar('SRC_URI', ' file://files/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch' )
+}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-arm] [PATCH] arm-autonomy/linux-arm-autonomy: apply runstate fix to kernels older than 5.10
2021-01-11 15:08 [PATCH] arm-autonomy/linux-arm-autonomy: apply runstate fix to kernels older than 5.10 Diego Sueiro
@ 2021-01-14 19:21 ` Jon Mason
0 siblings, 0 replies; 2+ messages in thread
From: Jon Mason @ 2021-01-14 19:21 UTC (permalink / raw)
To: Diego Sueiro; +Cc: meta-arm, nd
On Mon, Jan 11, 2021 at 03:08:43PM +0000, Diego Sueiro wrote:
> The patch introduced in 82ffc86 is a backport from the 5.10 version. Hence,
> just apply it for kernels older than 5.10.
>
> Change-Id: I6f442f540913b5e24bea533a436b4a3104d098e9
> Issue-Id: SCM-2033
> Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Pulled into master.
Thanks,
Jon
> ---
> .../features/arm-autonomy/xen-common.scc | 2 --
> ...-do-not-setup-the-runstate-info-page-if-kpti-.patch | 0
> .../recipes-kernel/linux/linux-arm-autonomy.inc | 10 ++++++++++
> 3 files changed, 10 insertions(+), 2 deletions(-)
> rename meta-arm-autonomy/recipes-kernel/linux/{arm-autonomy-kmeta/features/arm-autonomy => files}/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch (100%)
>
> diff --git a/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc b/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc
> index beee091..f359d8c 100644
> --- a/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc
> +++ b/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/xen-common.scc
> @@ -1,5 +1,3 @@
> define KFEATURE_DESCRIPTION "Common XEN (Host and Guest) configs and patches on autonomy systems"
>
> kconf non-hardware xen-common.cfg
> -
> -patch 0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
> diff --git a/meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch b/meta-arm-autonomy/recipes-kernel/linux/files/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
> similarity index 100%
> rename from meta-arm-autonomy/recipes-kernel/linux/arm-autonomy-kmeta/features/arm-autonomy/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
> rename to meta-arm-autonomy/recipes-kernel/linux/files/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch
> diff --git a/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc b/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc
> index c5cb66d..89c9fce 100644
> --- a/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc
> +++ b/meta-arm-autonomy/recipes-kernel/linux/linux-arm-autonomy.inc
> @@ -33,3 +33,13 @@ KMACHINE_arm64-autonomy-guest = "arm64-autonomy-guest"
> # Add Minimal Kernel Configs for Docker runtime
> KERNEL_FEATURES += "${@bb.utils.contains('DISTRO_FEATURES', \
> 'docker', 'features/arm-autonomy/docker-minimal.scc', '', d)}"
> +
> +python() {
> + from distutils.version import LooseVersion
> +
> + kernelVersion = d.getVar('LINUX_VERSION')
> +
> + if kernelVersion and LooseVersion(kernelVersion) < '5.10':
> + if oe.utils.any_distro_features(d, "arm-autonomy-host arm-autonomy-guest"):
> + d.appendVar('SRC_URI', ' file://files/0001-xen-arm-do-not-setup-the-runstate-info-page-if-kpti-.patch' )
> +}
> --
> 2.17.1
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-14 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 15:08 [PATCH] arm-autonomy/linux-arm-autonomy: apply runstate fix to kernels older than 5.10 Diego Sueiro
2021-01-14 19:21 ` [meta-arm] " Jon Mason
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.