All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mpg123: Add support for FPU-less targets
@ 2021-02-09 14:16 robert.rosengren
  2021-02-09 19:10 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: robert.rosengren @ 2021-02-09 14:16 UTC (permalink / raw)
  To: openembedded-core; +Cc: Robert Rosengren

From: Robert Rosengren <robert.rosengren@axis.com>

Support added to configure mpg123 for FPU-less targets. Building for
fixed-point arithmetic increases performance on such devices.

Signed-off-by: Robert Rosengren <robert.rosengren@axis.com>
---
 meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb b/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb
index c9bbcd30ff..35cad6ffc4 100644
--- a/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb
+++ b/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb
@@ -40,6 +40,7 @@ EXTRA_OECONF = " \
     --with-audio='${AUDIOMODS}' \
     ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
     ${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \
+    ${@bb.utils.contains('TARGET_FPU', 'soft', '--with-cpu=generic_nofpu', '', d)} \
 "
 # Fails to build with thumb-1 (qemuarm)
 #| {standard input}: Assembler messages:
-- 
2.20.1


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

* Re: [OE-core] [PATCH] mpg123: Add support for FPU-less targets
  2021-02-09 14:16 [PATCH] mpg123: Add support for FPU-less targets robert.rosengren
@ 2021-02-09 19:10 ` Khem Raj
  2021-02-10 10:53   ` robert.rosengren
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2021-02-09 19:10 UTC (permalink / raw)
  To: robert.rosengren; +Cc: Patches and discussions about the oe-core layer

is --with-cpu=generic_nofpu applicable for all soft fpu machines or
just arm ? I wonder if it will improve or regress other nofpu
machines. Do you have any data

On Tue, Feb 9, 2021 at 6:16 AM <robert.rosengren@axis.com> wrote:
>
> From: Robert Rosengren <robert.rosengren@axis.com>
>
> Support added to configure mpg123 for FPU-less targets. Building for
> fixed-point arithmetic increases performance on such devices.
>
> Signed-off-by: Robert Rosengren <robert.rosengren@axis.com>
> ---
>  meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb b/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb
> index c9bbcd30ff..35cad6ffc4 100644
> --- a/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb
> +++ b/meta/recipes-multimedia/mpg123/mpg123_1.26.4.bb
> @@ -40,6 +40,7 @@ EXTRA_OECONF = " \
>      --with-audio='${AUDIOMODS}' \
>      ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-cpu=neon', '', d)} \
>      ${@bb.utils.contains('TUNE_FEATURES', 'altivec', '--with-cpu=altivec', '', d)} \
> +    ${@bb.utils.contains('TARGET_FPU', 'soft', '--with-cpu=generic_nofpu', '', d)} \
>  "
>  # Fails to build with thumb-1 (qemuarm)
>  #| {standard input}: Assembler messages:
> --
> 2.20.1
>
>
> 
>

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

* Re: [OE-core] [PATCH] mpg123: Add support for FPU-less targets
  2021-02-09 19:10 ` [OE-core] " Khem Raj
@ 2021-02-10 10:53   ` robert.rosengren
  2021-02-10 17:59     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: robert.rosengren @ 2021-02-10 10:53 UTC (permalink / raw)
  To: Khem Raj, Robert Rosengren
  Cc: Patches and discussions about the oe-core layer

Actually, I used a MIPS-based device lacking FPU and ran simple gstreamer/gst-play to test a mp3. A very non-scientific measurement on that device using nmon moved from roughly 100% CPU load and stuttering audio to a doable ~15-20% CPU load with the fixed point configuration. (of course all such measurements depends heavily on audio latency, queues and so on of a device hardware.)

On 2/9/21 8:10 PM, Khem Raj wrote:
> is --with-cpu=generic_nofpu applicable for all soft fpu machines or
> just arm ? I wonder if it will improve or regress other nofpu
> machines. Do you have any data
> 

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

* Re: [OE-core] [PATCH] mpg123: Add support for FPU-less targets
  2021-02-10 10:53   ` robert.rosengren
@ 2021-02-10 17:59     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2021-02-10 17:59 UTC (permalink / raw)
  To: Robert Rosengren
  Cc: Robert Rosengren, Patches and discussions about the oe-core layer

On Wed, Feb 10, 2021 at 2:54 AM Robert Rosengren <robertr@axis.com> wrote:
>
> Actually, I used a MIPS-based device lacking FPU and ran simple gstreamer/gst-play to test a mp3. A very non-scientific measurement on that device using nmon moved from roughly 100% CPU load and stuttering audio to a doable ~15-20% CPU load with the fixed point configuration. (of course all such measurements depends heavily on audio latency, queues and so on of a device hardware.)
>

OK thanks, this makes sense.

> On 2/9/21 8:10 PM, Khem Raj wrote:
> > is --with-cpu=generic_nofpu applicable for all soft fpu machines or
> > just arm ? I wonder if it will improve or regress other nofpu
> > machines. Do you have any data
> >

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

end of thread, other threads:[~2021-02-10 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 14:16 [PATCH] mpg123: Add support for FPU-less targets robert.rosengren
2021-02-09 19:10 ` [OE-core] " Khem Raj
2021-02-10 10:53   ` robert.rosengren
2021-02-10 17:59     ` 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.