From: John Snow <jsnow@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>
Subject: Re: [Qemu-devel] qtest hang in /x86_64/ahci/io/ncq/simple (ppc64 host)
Date: Mon, 06 Jul 2015 11:41:47 -0400 [thread overview]
Message-ID: <559AA1BB.8020709@redhat.com> (raw)
In-Reply-To: <CAFEAcA9BPHHVkk_qdEUxPs=TRZ1g74VnmPOBBrWxiEjyRxnLTw@mail.gmail.com>
On 07/06/2015 11:35 AM, Peter Maydell wrote:
> I'm seeing a qtest hang in the /x86_64/ahci/io/ncq/simple
> test case. It looks like QEMU is running OK, but the qtest test
> is busy-looping in ahci_command_wait():
>
> #0 ahci_command_wait (ahci=0x1003f3f9400, cmd=0x1003f401810) at
> /home/pm215/qemu/tests/libqos/ahci.c:929
> #1 0x000000001001ba10 in ahci_command_issue (ahci=0x1003f3f9400,
> cmd=0x1003f401810)
> at /home/pm215/qemu/tests/libqos/ahci.c:937
> #2 0x0000000010019f18 in ahci_guest_io (ahci=0x1003f3f9400, port=5
> '\005', ide_cmd=97 'a', buffer=1097728,
> bufsize=4096, sector=0) at /home/pm215/qemu/tests/libqos/ahci.c:632
> #3 0x000000001000b640 in ahci_test_io_rw_simple (ahci=0x1003f3f9400,
> bufsize=4096, sector=0, read_cmd=
> 96 '`', write_cmd=97 'a') at /home/pm215/qemu/tests/ahci-test.c:886
> #4 0x000000001000d434 in test_ncq_simple () at
> /home/pm215/qemu/tests/ahci-test.c:1439
> #5 0x00000080753db01c in 000000ca.plt_call.strncasecmp@@GLIBC_2.3+0
> () from /lib64/libglib-2.0.so.0
> #6 0x00000080753db1f8 in 000000ca.plt_call.strncasecmp@@GLIBC_2.3+0
> () from /lib64/libglib-2.0.so.0
> #7 0x00000080753db1f8 in 000000ca.plt_call.strncasecmp@@GLIBC_2.3+0
> () from /lib64/libglib-2.0.so.0
> #8 0x00000080753db1f8 in 000000ca.plt_call.strncasecmp@@GLIBC_2.3+0
> () from /lib64/libglib-2.0.so.0
> #9 0x00000080753db1f8 in 000000ca.plt_call.strncasecmp@@GLIBC_2.3+0
> () from /lib64/libglib-2.0.so.0
> #10 0x00000080753db6c0 in .g_test_run_suite () from /lib64/libglib-2.0.so.0
> #11 0x00000080753db778 in .g_test_run () from /lib64/libglib-2.0.so.0
> #12 0x000000001000de70 in main (argc=1, argv=0x3fffeeb5a578) at
> /home/pm215/qemu/tests/ahci-test.c:1703
>
> If you singlestep, we just loop round and round. Presumably
> the condition we're expecting just never becomes true.
>
> I've only seen this on a ppc64 host system; my x86-64 and arm
> 'make check' runs have been fine. Have you tested your AHCI
> qtest code on a big endian system? (Not necessarily the
> problem, Paolo also said he'd seen an intermittent failure
> in one of these ahci tests on an x86 host. But the ppc fail
> seems to be reliably always on the same test.)
>
> thanks
> -- PMM
>
I'll take a look. More than possible there's a race in the wait
conditional that I have just never seen before.
I tweaked it a little recently to wait on both NCQ and traditional
completion, but it doesn't have a timeout or anything. I'll go ahead and
fix that while I'm here.
Should be something simple, hopefully.
--js
next prev parent reply other threads:[~2015-07-06 15:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 15:35 [Qemu-devel] qtest hang in /x86_64/ahci/io/ncq/simple (ppc64 host) Peter Maydell
2015-07-06 15:41 ` John Snow [this message]
2015-07-06 16:24 ` Paolo Bonzini
2015-07-06 19:21 ` John Snow
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=559AA1BB.8020709@redhat.com \
--to=jsnow@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=stefanha@redhat.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 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.