From: Phil Estes <pestes@us.ibm.com>
To: linuxppc-dev@ozlabs.org
Subject: writev test failure related to arch/ppc/lib/string.S changes?
Date: Mon, 18 Apr 2005 15:42:07 -0400 [thread overview]
Message-ID: <1113853327.3750.21.camel@unary.wma.ibm.com> (raw)
Hi,
Recently I applied some 2.6.7 ppc32 patches to a 2.6.5 kernel, which
included the 1.1612.2.78 changeset titled "[PATCH] PPC32: Fix copy
prefetch on non coherent PPCs". The functionality I meant to get from
that backport is working fine, but a test team which is testing my
changes note that a standard LTP testcase in the writev family now
fails, which they tracked to the changes made in arch/ppc/lib/string.S
from the above changeset.
Their comments follow:
> I checked the string.S of 2.6.7. I think there is a bug in it.
> At 114, we set ctr=r0-r7. If exception occurs, it then goes to 104,
> then 92 where r3 is set to LG_CACHELINE_BYTES. Then it goes to 99.
>
> But in the remarks before 99, the number of bytes not copied is
> r5 + (ctr << r3). This is not as what has happen because
> ctr = r0 - r7. The ctr should be adjusted before it goes to 99.
The failing test being noted is the LTP writev02 test, which is
an "expected to FAIL" testcase, but passes in this case. A bad
address is passed to writev, but instead of EFAULT, a positive
integer is returned. Again, backing out the above changeset
causes this test (among a few other writev variants which expect
failure) to pass accordingly.
Thanks for your help,
Phil Estes
pestes@us.ibm.com
next reply other threads:[~2005-04-18 21:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 19:42 Phil Estes [this message]
2005-04-19 9:47 ` writev test failure related to arch/ppc/lib/string.S changes? Paul Mackerras
2005-04-20 13:21 ` Phil Estes
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=1113853327.3750.21.camel@unary.wma.ibm.com \
--to=pestes@us.ibm.com \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).