public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()
Date: Fri, 11 Dec 2015 23:26:37 +0100	[thread overview]
Message-ID: <1941958.3p422lB7Mz@wuerfel> (raw)
In-Reply-To: <alpine.LFD.2.20.1512111216350.26920@knanqh.ubzr>

On Friday 11 December 2015 12:22:20 Nicolas Pitre wrote:
> Subject: [PATCH] ARM: Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()
> 
> The ARM compiler inserts calls to __aeabi_uidiv() and
> __aeabi_idiv() when it needs to perform division on signed and
> unsigned integers. If a processor has support for the udiv and
> sdiv instructions, the kernel may overwrite the beginning of those
> functions with those instructions and a "bx lr" to get better
> performance.
> 
> To ensure those functions are aligned to a 32-bit word for easier
> patching (which might not always be the case in Thumb mode) and the
> two patched instructions for each case are contained in the same cache
> line, a 8-byte alignment is enforced when ARM_PATCH_IDIV is configured.
> 
> This was heavily inspired by a previous patch by Stephen Boyd.
> 
> Signed-off-by: Nicolas Pitre <nico@linaro.org>
> 

Acked-by: Arnd Bergmann <arnd@arndb.de>

Before you put it in the patch tracker, I think it would be good to
give Stephen a chance to comment as well, since he did a lot of
work upfront and this obsoletes his original patch series.

	Arnd

  reply	other threads:[~2015-12-11 22:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11  6:26 [PATCH] ARM: Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv() Nicolas Pitre
2015-12-11  9:24 ` Arnd Bergmann
2015-12-11 17:10   ` Nicolas Pitre
2015-12-11 17:22     ` Nicolas Pitre
2015-12-11 22:26       ` Arnd Bergmann [this message]
2015-12-11 23:57         ` Nicolas Pitre
2016-01-05  1:23           ` Stephen Boyd
2016-01-05  1:42             ` Nicolas Pitre
2016-01-08  2:44               ` Stephen Boyd
2016-01-12 19:09                 ` Nicolas Pitre
2015-12-11 21:50     ` Arnd Bergmann
2015-12-11 22:00       ` Nicolas Pitre
2015-12-11 22:48         ` Arnd Bergmann
2015-12-11 22:34       ` Russell King - ARM Linux
2015-12-11 22:51         ` Arnd Bergmann
2015-12-12  0:01           ` Nicolas Pitre
2015-12-12  0:04             ` Arnd Bergmann
2015-12-12  1:17               ` Nicolas Pitre
2015-12-12 20:41                 ` Arnd Bergmann

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=1941958.3p422lB7Mz@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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