From: John Stultz <john.stultz@linaro.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Chris Ball <chris@printf.net>, Johan Rudholm <jrudholm@gmail.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [Regression?] qemu-system-arm flooding "sd_write_data: not in Receiving-Data state"
Date: Mon, 14 Apr 2014 17:28:38 -0700 [thread overview]
Message-ID: <534C7D36.9090008@linaro.org> (raw)
(Forgive the duplicate, I forgot to cc lkml)
I was testing v3.15-rc1 in my qemu-system-arm environment and noticed a
flood of the following messages:
sd_write_data: not in Receiving-Data state
After looking around in the kernel and not finding such a message, I
realized this was actually a message from qemu, not the kernel.
The system seems to boot normally, but is just very noisy w/ the qemu
messages.
Not sure if this is really a problem with qemu-system-arm, but this
doesn't occur w/ 3.14 and previous kernels.
Bisecting it down pointed to:
commit e7f3d22289e4307b3071cc18b1d8ecc6598c0be4
Author: Ulf Hansson <ulf.hansson@linaro.org>
Date: Fri Jan 10 14:51:42 2014 +0100
mmc: mmci: Handle CMD irq before DATA irq
In case of a read operation both MCI_CMDRESPEND and MCI_DATAEND
can be
set in the status register when entering the interrupt handler. This is
due to that the card start sending data before the host has
acknowledged the command response.
To resolve the issue for this scenario, we must start by
handling the
CMD irq instead of the DATA irq. The reason is beacuse the completion
of the DATA irq will not respect the current command and then causing
it to be garbled.
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Johan Rudholm <jrudholm@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
$ qemu-system-arm -version
QEMU emulator version 1.5.0 (Debian 1.5.0+dfsg-3ubuntu5.3), Copyright
(c) 2003-2008 Fabrice Bellard
Booting w/:
qemu-system-arm -kernel zImage-arm -M vexpress-a9 -cpu cortex-a9
-nographic -m 1024 -append 'root=/dev/mmcblk0p2 rw mem=1024M
raid=noautodetect console=ttyAMA0,38400n8 rootwait vmalloc=256MB
devtmpfs.mount=0' -sd test-arm.img -redir tcp:4300::22
Let me know if you have any other questions or need any other info to
help trouble-shoot this.
thanks
-john
next reply other threads:[~2014-04-15 0:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 0:28 John Stultz [this message]
2014-04-15 7:26 ` [Regression?] qemu-system-arm flooding "sd_write_data: not in Receiving-Data state" Ulf Hansson
2014-04-15 21:12 ` John Stultz
2014-04-15 21:40 ` Peter Maydell
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=534C7D36.9090008@linaro.org \
--to=john.stultz@linaro.org \
--cc=chris@printf.net \
--cc=jrudholm@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.maydell@linaro.org \
--cc=ulf.hansson@linaro.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