From: Michael Ellerman <mpe@ellerman.id.au>
To: Paul Mackerras <paulus@ozlabs.org>,
Matthew Wilcox <mawilcox@microsoft.com>
Cc: "linuxppc-dev\@ozlabs.org" <linuxppc-dev@ozlabs.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org,
"linux-s390\@vger.kernel.org" <linux-s390@vger.kernel.org>
Subject: Re: [PATCH] bitmap: Fix optimization of bitmap_set/clear for big-endian machines
Date: Wed, 25 Oct 2017 12:30:24 +0200 [thread overview]
Message-ID: <87y3nzzfi7.fsf@concordia.ellerman.id.au> (raw)
In-Reply-To: <20171025084602.GC25140@fergus.ozlabs.ibm.com>
Paul Mackerras <paulus@ozlabs.org> writes:
> On Wed, Oct 25, 2017 at 07:39:48AM +0000, Matthew Wilcox wrote:
>> Hang on, don't tell me you found this by inspection. Are you not
>> running the bitmap testcase, enabled by CONFIG_TEST_BITMAP? Either
>> that should be producing an error, or there's a missing test case, or
>> your inspection is wrong ...
Oops.
[ 1.907533] test_bitmap: test 13: input is '0-2047:128/256' OK, Time: 1359
[ 1.907596] set not equal 0 8
[ 1.907640] set not __equal 0 8
[ 1.907684] clear not equal 0 8
[ 1.907728] clear not __equal 0 8
[ 1.907772] set not equal 0 16
[ 1.907816] set not __equal 0 16
[ 1.907861] clear not equal 0 16
[ 1.907905] clear not __equal 0 16
[ 1.907949] set not equal 0 24
[ 1.907993] set not __equal 0 24
[ 1.908038] clear not equal 0 24
[ 1.908082] clear not __equal 0 24
...
[ snip ~30,000 lines ]
...
[ 3.345729] set not equal 1008 8
[ 3.345773] set not __equal 1008 8
[ 3.345818] clear not equal 1008 8
[ 3.345863] clear not __equal 1008 8
[ 3.345909] test_bitmap: all 460506 tests passed
^^^^^^^^^^^^^^^^^^^^^^^
O_o
With the patch:
[ 1.904393] test_bitmap: test 13: input is '0-2047:128/256' OK, Time: 1359
[ 1.916270] test_bitmap: all 460506 tests passed
cheers
next prev parent reply other threads:[~2017-10-25 10:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20171025065726.GA25140@fergus.ozlabs.ibm.com>
[not found] ` <MWHPR21MB08455F1374F717DBA20B7798CB440@MWHPR21MB0845.namprd21.prod.outlook.com>
2017-10-25 8:46 ` Paul Mackerras
2017-10-25 9:11 ` Matthew Wilcox
2017-10-25 10:30 ` Michael Ellerman [this message]
2017-10-25 12:11 Matthew Wilcox
2017-11-03 2:57 ` Michael Ellerman
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=87y3nzzfi7.fsf@concordia.ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mawilcox@microsoft.com \
--cc=paulus@ozlabs.org \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®