Skip to contentSkip to conversation

genericx86: tune for i586 instead of atom

PATCH In review Jonathan Liu 4 participants 12 messages Sep 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genericx86: tune for i586 instead of atom

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -1
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
Signature · 1 line
1.8.4
#1 lore raw
Quoted 6 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't
impact the kernel build options, and if it is, that's a bug.

If the error shows up on the switch to userspace, then that's a different story.

Bruce

Quoted 26 lines
---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#2 lore raw

Hi Bruce,

The kernel output is the following:
Loading /vmlinuz.........ready.
This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.

It stops at that stage and the kernel doesn't boot at all. I started having this issue after switching my BSP to Linux 3.10.

Regards,
Jonathan

Quoted 48 lines · Bruce Ashfield
Quoted 6 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't
impact the kernel build options, and if it is, that's a bug.

If the error shows up on the switch to userspace, then that's a different story.

Bruce

Quoted 22 lines
---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

Quoted 4 lines

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#3 lore raw
Quoted 10 lines · Jonathan Liu

Hi Bruce,

The kernel output is the following:
Loading /vmlinuz.........ready.
This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.

It stops at that stage and the kernel doesn't boot at all. I started having this issue after switching my BSP to Linux 3.10.

I take it your BSP is based on the genericx86 BSP/configuration ? The entire kernel build is done with:

oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}

And unless you've put something in KERNEL_EXTRA_ARGS, that means the kernel configuration and its own Makefiles determine all compile flags and optimizations.

So switching that config file should have no impact on the build.

To confirm .. you are saying after that change you can boot again ? Best to hear from Darren/Tom or Ross on this one.

Bruce

Quoted 53 lines

Regards,
Jonathan

Quoted 48 lines · Bruce Ashfield
Quoted 6 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't
impact the kernel build options, and if it is, that's a bug.

If the error shows up on the switch to userspace, then that's a different story.

Bruce

Quoted 22 lines
---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

Quoted 4 lines

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#4 lore raw
Quoted 22 lines · Bruce Ashfield
Quoted 10 lines · Jonathan Liu

Hi Bruce,

The kernel output is the following:
Loading /vmlinuz.........ready.
This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.

It stops at that stage and the kernel doesn't boot at all. I started having this issue after switching my BSP to Linux 3.10.

I take it your BSP is based on the genericx86 BSP/configuration ? The entire kernel build is done with:

oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}

And unless you've put something in KERNEL_EXTRA_ARGS, that means the kernel configuration and its own Makefiles determine all compile flags and optimizations.

Quoted 6 lines

So switching that config file should have no impact on the build.

To confirm .. you are saying after that change you can boot again ? Best to hear from Darren/Tom or Ross on this one.

Bruce

You're right. It doesn't seem to have any impact.
Please disregard this patch.

I will try to look into this further to work out what is enabling the use of movbe in the kernel.

Regards,
Jonathan

Quoted 60 lines
Quoted 54 lines

Regards,
Jonathan

Quoted 48 lines · Bruce Ashfield
Quoted 6 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't
impact the kernel build options, and if it is, that's a bug.

If the error shows up on the switch to userspace, then that's a different story.

Bruce

Quoted 22 lines
---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

Quoted 4 lines

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#5 lore raw
Quoted 28 lines · Jonathan Liu
Quoted 27 lines · Bruce Ashfield
Quoted 10 lines · Jonathan Liu

Hi Bruce,

The kernel output is the following:
Loading /vmlinuz.........ready.
This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.

It stops at that stage and the kernel doesn't boot at all. I started having this issue after switching my BSP to Linux 3.10.

I take it your BSP is based on the genericx86 BSP/configuration ? The entire kernel build is done with:

oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}

And unless you've put something in KERNEL_EXTRA_ARGS, that means the kernel configuration and its own Makefiles determine all compile flags and optimizations.

So switching that config file should have no impact on the build.

To confirm .. you are saying after that change you can boot again ? Best to hear from Darren/Tom or Ross on this one.

Quoted 7 lines
Quoted 1 line

Bruce

You're right. It doesn't seem to have any impact.
Please disregard this patch.

I will try to look into this further to work out what is enabling the use of movbe in the kernel.

I suspect it is CONFIG_MATOM=y in the kernel config (see
http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=2b9b6d8c715b23fa119261c32ad360681f4464a9).
I am rebuilding my image to test.

Regards,
Jonathan

Quoted 64 lines

Regards,
Jonathan

Quoted 60 lines
Quoted 54 lines

Regards,
Jonathan

Quoted 48 lines · Bruce Ashfield
Quoted 6 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't
impact the kernel build options, and if it is, that's a bug.

If the error shows up on the switch to userspace, then that's a different story.

Bruce

Quoted 22 lines
---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

Quoted 4 lines

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#11 lore raw
In reply to Jonathan Liu
Quoted 8 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

Please disregard this patch. It doesn't actually fix the kernel boot issue mentioned.

Regards,
Jonathan

Quoted 20 lines
---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

#6 lore raw
In reply to Jonathan Liu
Quoted 34 lines · Jonathan Liu
Quoted 33 lines · Jonathan Liu
Quoted 22 lines · Bruce Ashfield
Quoted 10 lines · Jonathan Liu

Hi Bruce,

The kernel output is the following:
Loading /vmlinuz.........ready.
This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.

It stops at that stage and the kernel doesn't boot at all. I started having this issue after switching my BSP to Linux 3.10.

I take it your BSP is based on the genericx86 BSP/configuration ? The entire kernel build is done with:

oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}

And unless you've put something in KERNEL_EXTRA_ARGS, that means the kernel configuration and its own Makefiles determine all compile flags and optimizations.

Quoted 6 lines

So switching that config file should have no impact on the build.

To confirm .. you are saying after that change you can boot again ? Best to hear from Darren/Tom or Ross on this one.

Bruce

You're right. It doesn't seem to have any impact.
Please disregard this patch.

Quoted 6 lines
Quoted 2 lines

I will try to look into this further to work out what is enabling the use of movbe in the kernel.

I suspect it is CONFIG_MATOM=y in the kernel config (see
http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=2b9b6d8c715b23fa119261c32ad360681f4464a9).
I am rebuilding my image to test.

I have confirmed it is CONFIG_MATOM=y that was causing the boot issue.

Regards,
Jonathan

Quoted 68 lines

Regards,
Jonathan

Quoted 64 lines

Regards,
Jonathan

Quoted 60 lines
Quoted 54 lines

Regards,
Jonathan

Quoted 48 lines · Bruce Ashfield
Quoted 6 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't
impact the kernel build options, and if it is, that's a bug.

If the error shows up on the switch to userspace, then that's a different story.

Bruce

Quoted 22 lines
---
 meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
 #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
 MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

Quoted 4 lines

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#7 lore raw
Quoted 35 lines · Jonathan Liu
Quoted 34 lines · Jonathan Liu
Quoted 33 lines · Jonathan Liu
Quoted 22 lines · Bruce Ashfield
Quoted 10 lines · Jonathan Liu

Hi Bruce,

The kernel output is the following:
Loading /vmlinuz.........ready.
This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.

It stops at that stage and the kernel doesn't boot at all. I started having this issue after switching my BSP to Linux 3.10.

I take it your BSP is based on the genericx86 BSP/configuration ? The entire kernel build is done with:

oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}

And unless you've put something in KERNEL_EXTRA_ARGS, that means the kernel configuration and its own Makefiles determine all compile flags and optimizations.

Quoted 6 lines

So switching that config file should have no impact on the build.

To confirm .. you are saying after that change you can boot again ? Best to hear from Darren/Tom or Ross on this one.

Bruce

You're right. It doesn't seem to have any impact.
Please disregard this patch.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I will try to look into this further to work out what is enabling the use of movbe in the kernel.

I suspect it is CONFIG_MATOM=y in the kernel config (see
http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=2b9b6d8c715b23fa119261c32ad360681f4464a9).
I am rebuilding my image to test.

I have confirmed it is CONFIG_MATOM=y that was causing the boot issue.

That would definitely make a difference. If you are using the genericx86 PC, the default tuning was atom+ IIRC (a line has to be drawn somewhere),
and you can discuss that with the Intel guys.

But you can easily carry a configuration fragment in your own layer that disables that option if you want that same BSP to work on your platform.

Cheers,

Bruce

Quoted 77 lines

Regards,
Jonathan

Quoted 68 lines

Regards,
Jonathan

Quoted 64 lines

Regards,
Jonathan

Quoted 60 lines
Quoted 54 lines

Regards,
Jonathan

Quoted 48 lines · Bruce Ashfield
Quoted 6 lines · Jonathan Liu

Tuning for Intel Atom CPU can in result instructions being used that are not compatible with older x86 CPUs such as Intel Pentium Dual-Core E2200. This can result in Linux 3.10 failing to boot with:
"This kernel requires the following features not present on the CPU:
movbe
Unable to boot - please use a kernel appropriate for your CPU.".

That's a bit surprising, do you have a bootlog to share ? This tune file shouldn't
impact the kernel build options, and if it is, that's a bug.

If the error shows up on the switch to userspace, then that's a different story.

Bruce

Quoted 22 lines
---
  meta-yocto-bsp/conf/machine/genericx86.conf | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -2
index ff5cbc9..f5d9cd5 100644
@@ -3,7 +3,7 @@
 
  #@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
 
-include conf/machine/include/tune-atom.inc
+include conf/machine/include/tune-i586.inc
 
  MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
 
--

1.8.4

Quoted 4 lines

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#8 lore raw
Quoted 8 lines · Bruce Ashfield
Quoted 1 line

I have confirmed it is CONFIG_MATOM=y that was causing the boot issue.

That would definitely make a difference. If you are using the genericx86 PC, the default tuning was atom+ IIRC (a line has to be drawn somewhere),
and you can discuss that with the Intel guys.

But you can easily carry a configuration fragment in your own layer that disables that option if you want that same BSP to work on your platform.

I'd be inclined to say that the line for genericx86 is "atom onwards" and Pentium is sufficiently different to justify its own BSP.

Ross

#9 lore raw
Quoted 6 lines · Ross
Quoted 5 lines · Bruce Ashfield
Quoted 1 line

I have confirmed it is CONFIG_MATOM=y that was causing the boot issue.

That would definitely make a difference. If you are using the genericx86 PC, the default tuning was atom+ IIRC (a line has to be drawn somewhere),
and you can discuss that with the Intel guys.

Quoted 6 lines
Quoted 2 lines

But you can easily carry a configuration fragment in your own layer that disables that option if you want that same BSP to work on your platform.

I'd be inclined to say that the line for genericx86 is "atom onwards" and Pentium is sufficiently different to justify its own BSP.

Ross

Is CONFIG_MATOM=y being used for genericx86?
Using CONFIG_MATOM=y with Linux 3.10 seems to require MOVBE instruction which is only available on Intel Atom...

Regards,
Jonathan

#10 lore raw
Quoted 3 lines · Jonathan Liu

Is CONFIG_MATOM=y being used for genericx86?
Using CONFIG_MATOM=y with Linux 3.10 seems to require MOVBE instruction which is only available on Intel Atom...

ross@melchett /data/poky-master/tmp/work/genericx86-poky-linux/linux-yocto/3.8.13+gitAUTOINC+b60144f698_f20047520a-r4.2/linux-genericx86-standard-build

$ grep MATOM .config
# CONFIG_MATOM is not set

Apparently not.

Ross