From: Marcel Holtmann <marcel@holtmann.org>
To: Siarhei Siamashka <siarhei.siamashka@nokia.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] sbc: powerpc altivec optimizations for 4 subbands encoding
Date: Sat, 14 Mar 2009 07:17:13 +0100 [thread overview]
Message-ID: <1237011433.24751.6.camel@localhost.localdomain> (raw)
In-Reply-To: <200903162159.49487.siarhei.siamashka@nokia.com>
Hi Siarhei,
> On the last weekend I tried to get familiar with powerpc altivec assembly and
> added some optimization for sbc encoder. Experimental patch is attached. It
> handles 4 subbands case only, so is not that much useful in practice. There
> are no problems supporting 8 subbands too, but I was just running out of
> time. The patch merges processing of 4 blocks into the single block of code.
> It's something that is also in my todo list for ARM NEON. But while this merge
> is mostly "nice to have" optimization for ARM, it is much more important for
> PowerPC because of a huge multiply-accumulate latency.
>
> And bluez a2dp seems to work fine on ppc64 linux (playstation3).
>
> In order to activate altivec code, -maltivec option needs to be added to
> gcc compilation flags.
>
> Benchmark result:
>
> time ./sbcenc -s4 somefile.au > /dev/null
>
> before:
> real 0m13.999s
> user 0m13.468s
> sys 0m0.523s
>
> after:
> real 0m5.714s
> user 0m5.199s
> sys 0m0.519s
>
> 3.2GHz CPU in playstation3 uses roughly 1.5% of cpu resources on sbc encoding
> without any optimizations. cpu usage is down to something like 0.6% after this
> optimization is applied.
please redo the patch and include a proper commit message. For example
the details from the email would be perfect for a commit message. It
doesn't need to be that verbose, but a little bit more would be nice.
Regards
Marcel
next prev parent reply other threads:[~2009-03-14 6:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-16 19:59 [PATCH] sbc: powerpc altivec optimizations for 4 subbands encoding Siarhei Siamashka
2009-03-14 6:17 ` Marcel Holtmann [this message]
2009-03-23 6:51 ` Siarhei Siamashka
2009-03-23 7:20 ` Siarhei Siamashka
2009-03-25 18:15 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1237011433.24751.6.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=siarhei.siamashka@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox