All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] recipes-kernel/linux: Enable NUMA Kconfig from DISTRO_FEATURES
@ 2018-04-16 20:02 Alistair Francis
  2018-04-17 20:52 ` Andre McCurdy
  0 siblings, 1 reply; 3+ messages in thread
From: Alistair Francis @ 2018-04-16 20:02 UTC (permalink / raw)
  To: openembedded-core

If the user has set numa as a distro feature enable NUMA support in the
kernel config.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 meta/recipes-kernel/linux/files/numa.cfg  | 4 ++++
 meta/recipes-kernel/linux/linux-yocto.inc | 3 +++
 2 files changed, 7 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/files/numa.cfg

diff --git a/meta/recipes-kernel/linux/files/numa.cfg b/meta/recipes-kernel/linux/files/numa.cfg
new file mode 100644
index 0000000..bb0f9ab
--- /dev/null
+++ b/meta/recipes-kernel/linux/files/numa.cfg
@@ -0,0 +1,4 @@
+CONFIG_NUMA=y
+CONFIG_ACPI_NUMA=y
+CONFIG_NUMA_BALANCING=y
+CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 3bb872a..cf97cd1 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -28,6 +28,9 @@ KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
 
 KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
 
+SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'numa', ' file://numa.cfg', '', d)}"
+KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}"
+
 # A KMACHINE is the mapping of a yocto $MACHINE to what is built
 # by the kernel. This is typically the branch that should be built,
 # and it can be specific to the machine or shared
-- 
2.7.4



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

* Re: [PATCH] recipes-kernel/linux: Enable NUMA Kconfig from DISTRO_FEATURES
  2018-04-16 20:02 [PATCH] recipes-kernel/linux: Enable NUMA Kconfig from DISTRO_FEATURES Alistair Francis
@ 2018-04-17 20:52 ` Andre McCurdy
  2018-04-18  7:45   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Andre McCurdy @ 2018-04-17 20:52 UTC (permalink / raw)
  To: Alistair Francis; +Cc: OE Core mailing list

On Mon, Apr 16, 2018 at 1:02 PM, Alistair Francis
<alistair.francis@wdc.com> wrote:
> If the user has set numa as a distro feature enable NUMA support in the
> kernel config.

Isn't NUMA something which would be machine specific rather than
distro specific?

> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
>  meta/recipes-kernel/linux/files/numa.cfg  | 4 ++++
>  meta/recipes-kernel/linux/linux-yocto.inc | 3 +++
>  2 files changed, 7 insertions(+)
>  create mode 100644 meta/recipes-kernel/linux/files/numa.cfg
>
> diff --git a/meta/recipes-kernel/linux/files/numa.cfg b/meta/recipes-kernel/linux/files/numa.cfg
> new file mode 100644
> index 0000000..bb0f9ab
> --- /dev/null
> +++ b/meta/recipes-kernel/linux/files/numa.cfg
> @@ -0,0 +1,4 @@
> +CONFIG_NUMA=y
> +CONFIG_ACPI_NUMA=y
> +CONFIG_NUMA_BALANCING=y
> +CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
> diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
> index 3bb872a..cf97cd1 100644
> --- a/meta/recipes-kernel/linux/linux-yocto.inc
> +++ b/meta/recipes-kernel/linux/linux-yocto.inc
> @@ -28,6 +28,9 @@ KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
>
>  KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
>
> +SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'numa', ' file://numa.cfg', '', d)}"
> +KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}"
> +
>  # A KMACHINE is the mapping of a yocto $MACHINE to what is built
>  # by the kernel. This is typically the branch that should be built,
>  # and it can be specific to the machine or shared
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH] recipes-kernel/linux: Enable NUMA Kconfig from DISTRO_FEATURES
  2018-04-17 20:52 ` Andre McCurdy
@ 2018-04-18  7:45   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2018-04-18  7:45 UTC (permalink / raw)
  To: Andre McCurdy, Alistair Francis; +Cc: OE Core mailing list



On 4/17/18 1:52 PM, Andre McCurdy wrote:
> On Mon, Apr 16, 2018 at 1:02 PM, Alistair Francis
> <alistair.francis@wdc.com> wrote:
>> If the user has set numa as a distro feature enable NUMA support in the
>> kernel config.
> 
> Isn't NUMA something which would be machine specific rather than
> distro specific?

Yes, I think MACHINE_FEATURE seems a better fit



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

end of thread, other threads:[~2018-04-18  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-16 20:02 [PATCH] recipes-kernel/linux: Enable NUMA Kconfig from DISTRO_FEATURES Alistair Francis
2018-04-17 20:52 ` Andre McCurdy
2018-04-18  7:45   ` Khem Raj

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.