From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Eric Biggers <ebiggers@kernel.org>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Ard Biesheuvel <ardb@kernel.org>
Subject: Re: [PATCH] MIPS: bcm63xx: nvram: avoid inefficient use of crc32_le_combine()
Date: Tue, 20 May 2025 08:56:11 +0200 [thread overview]
Message-ID: <aCwni0qo_2IxfffY@alpha.franken.de> (raw)
In-Reply-To: <20250511182836.21611-1-ebiggers@kernel.org>
On Sun, May 11, 2025 at 11:28:36AM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> bcm963xx_nvram_checksum() was using crc32_le_combine() to update a CRC
> with four zero bytes. However, this is about 5x slower than just
> CRC'ing four zero bytes in the normal way. Just do that instead.
>
> (We could instead make crc32_le_combine() faster on short lengths. But
> all its callers do just fine without it, so I'd like to just remove it.)
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>
> Please consider this patch for the mips tree for 6.16. If it doesn't
> get picked up, I'll take it through the crc tree.
>
> include/linux/bcm963xx_nvram.h | 16 ++++++----------
> 1 file changed, 6 insertions(+), 10 deletions(-)
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
prev parent reply other threads:[~2025-05-20 6:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-11 18:28 [PATCH] MIPS: bcm63xx: nvram: avoid inefficient use of crc32_le_combine() Eric Biggers
2025-05-20 6:56 ` Thomas Bogendoerfer [this message]
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=aCwni0qo_2IxfffY@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=ardb@kernel.org \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=ebiggers@kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.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 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.