Skip to contentSkip to conversation

qemux86-64: Allow higher tunes

PATCH In review Tom Rini 3 participants 6 messages Aug 11, 2022 – Dec 9, 2022

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 qemux86-64: Allow higher tunes

Back in 0be64e54a0e6 ("qemux86: Allow higher tunes") we moved the qemux86 machine to using the core-i7 tune file, for maximum flexibility and to allow for enabling advanced processor features if desired or required by various packagess, without changing the default tune. Do the same now for qemux86-64.

Cc Joshua Watt <[email protected]>
Cc Richard Purdie <[email protected]>
---
 meta/conf/machine/qemux86-64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/qemux86-64.conf +1 -1
index 901353499c81..864086791179 100644
@@ -10,7 +10,7 @@ PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa"
 
 require conf/machine/include/qemu.inc
 DEFAULTTUNE ?= "core2-64"
-require conf/machine/include/x86/tune-core2.inc
+require conf/machine/include/x86/tune-corei7.inc
 require conf/machine/include/x86/qemuboot-x86.inc
 
 UBOOT_MACHINE ?= "qemu-x86_64_defconfig"
Signature · 1 line
2.25.1
#1 lore raw

This is less useful than it may seem, and merely moves the supported CPU from circa-2006 core 2 to circa-2008 core i7. You won't get AVX or anything newer, which requires adding these instructions to qemu usermode (a project I'd like to do if I had the time).

Alex

Quoted 39 lines · Tom Rini

Back in 0be64e54a0e6 ("qemux86: Allow higher tunes") we moved the qemux86 machine to using the core-i7 tune file, for maximum flexibility and to allow for enabling advanced processor features if desired or required by various packagess, without changing the default tune. Do the same now for qemux86-64.

Cc Joshua Watt <[email protected]>
Cc Richard Purdie <[email protected]>
---
 meta/conf/machine/qemux86-64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/qemux86-64.conf +1 -2
index 901353499c81..864086791179 100644
@@ -10,7 +10,7 @@ PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa"
 
 require conf/machine/include/qemu.inc
 DEFAULTTUNE ?= "core2-64"
-require conf/machine/include/x86/tune-core2.inc
+require conf/machine/include/x86/tune-corei7.inc
 require conf/machine/include/x86/qemuboot-x86.inc
 
 UBOOT_MACHINE ?= "qemu-x86_64_defconfig"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#169248): https://lists.openembedded.org/g/openembedded-core/message/169248
Mute This Topic: https://lists.openembedded.org/mt/92961093/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
Quoted 4 lines · Alexander Kanavin

This is less useful than it may seem, and merely moves the supported CPU from circa-2006 core 2 to circa-2008 core i7. You won't get AVX or anything newer, which requires adding these instructions to qemu usermode (a project I'd like to do if I had the time).

True but it's also the case that tune-corei7.conf is the newest one in oe-core, yes? I had previously peeked in meta-intel which has a skylake tune, but bringing that in is something I'd leave to Intel/WR folks to take care of.

Signature · 1 line
Tom
#3 lore raw
Quoted 9 lines · Tom Rini
Quoted 4 lines

This is less useful than it may seem, and merely moves the supported CPU from circa-2006 core 2 to circa-2008 core i7. You won't get AVX or anything newer, which requires adding these instructions to qemu usermode (a project I'd like to do if I had the time).

True but it's also the case that tune-corei7.conf is the newest one in oe-core, yes? I had previously peeked in meta-intel which has a skylake tune, but bringing that in is something I'd leave to Intel/WR folks to take care of.

Yes, from making things consistent perspective this change is fine.

The skylake tune in meta-intel gives its users two less than great
choices: disable qemu usermode, or disable everything that qemu doesn't support (AVX and up).

Alex

#5 lore raw
Quoted 9 lines · Anuj
Quoted 3 lines · Alexander Kanavin

You won't get AVX or
anything newer, which requires adding these instructions to qemu usermode (a project I'd like to do if I had the time).

https://lore.kernel.org/all/[email protected]/

I didn't notice any v3 or an update on the bug.

This is now merged in qemu:
https://lists.nongnu.org/archive/html/qemu-devel/2022-10/msg02253.html

7.2 will be out shortly, so then we can look into adding skylake tunes and perhaps moving qemux86_64 to them. Making skylake a fully supported default in meta-intel would be nice too.

Alex