All of lore.kernel.org
 help / color / mirror / Atom feed
From: fijam@archlinux.us (JM)
To: linux-arm-kernel@lists.infradead.org
Subject: I/O issues with writing to mtdblock devices on kirkwood
Date: Mon, 12 Oct 2015 16:29:51 +0200	[thread overview]
Message-ID: <CAKzmTe2f1FdjM5VZ-ju+ZQ4z0Dxk4x1ywJCfi1OX5eSaCr=51w@mail.gmail.com> (raw)
In-Reply-To: <20151011153548.GA9808@lunn.ch>

On Sun, Oct 11, 2015 at 5:35 PM, Andrew Lunn <andrew@lunn.ch> wrote:
> On Sun, Oct 11, 2015 at 04:37:52PM +0200, JM wrote:
>> On Sat, Sep 5, 2015 at 11:08 PM, Andrew Lunn <andrew@lunn.ch> wrote:
>> > On Fri, Aug 21, 2015 at 01:24:17PM +0100, Ian Campbell wrote:
>> >> Hi kirkwood-upstream,
>> >>
>> >> We (Debian) have had a couple of reports of I/O errors running Debian
>> >> on kirkwood, specifically it seems to relate to later kernels (e.g.
>> >> 4.0+) and I _suspect_ (without proof) that it may be due to the switch
>> >> from board files to the DTS based kernel, or some change implied by
>> >> this (e.g. different SATA driver now or timeouts have changed
>> >> perhaps?).
>> >
>> > Hi Ian
>> >
>> > I've not reproduced this exactly, but something similar.
>> >
>> > I do a find / and in parallel a cat /dev/mtdblock3 > /dev/null
>> >
>> > While the cat is active, the find grinds to a halt. I don't get any
>> > SATA timeouts, but that could be because /dev/mtdblock3 is small
>> > enough that the timers don't expire.
>> >
>> > So i will now try to track down if there is a lock getting contended,
>> > or at least why only the cat process makes progress.
>> >
>> >    Andrew
>>
>> Is there any update on this? The bug persists with kernel 4.2.1
>
> Sorry, not had time to look.
>
> Do you have any idea when the issue started? My QNAP box got device
> tree support somewhere around 3.5. So i would be tempted to see if
> that has the issue, and then git bisect from there. Could you do the
> same with you hardware?
>
>      Andrew

Thanks for the reply.

I'm afraid my only box is 'in production' and I'd be very reluctant to
test older kernels there as I use fairly recent filesystem features. I
have a feeling this bug has been around for a long time (or perhaps is
even inherent to the way the mtdblock driver is written) and has only
been brought out of its dormancy due to some more recent changes, as I
remember my device momentarily freezing during flashing with Debian
Wheezy (kernel 3.2) (although at that time it wouldn't result in a
complete SATA reset). This could use an independent confirmation
though.

Best regards,
Jan

  reply	other threads:[~2015-10-12 14:29 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 12:24 I/O issues with writing to mtdblock devices on kirkwood Ian Campbell
2015-08-21 13:07 ` Andrew Lunn
2015-08-21 20:23   ` Ian Campbell
2015-09-05 21:08 ` Andrew Lunn
2015-09-06 12:11   ` Ian Campbell
2015-10-11 14:37   ` JM
2015-10-11 15:35     ` Andrew Lunn
2015-10-12 14:29       ` JM [this message]
2015-10-12 16:05         ` Rob J. Epping
2015-10-12 16:21           ` Andrew Lunn
2015-10-13  7:51             ` Ian Campbell
     [not found]               ` <5626B4DC.8000407@mcfarlanes.me>
     [not found]                 ` <5627F4E8.3030907@mcfarlanes.me>
2015-10-21 21:11                   ` Ian Campbell
2015-10-21 21:22                     ` Iain McFarlane
2015-10-21 21:28                       ` JM
2015-10-21 21:31                         ` Iain McFarlane
2015-10-22  0:38                       ` Andrew Lunn
2015-10-22  6:40                       ` Ian Campbell
2015-10-22  6:40                       ` Ian Campbell
2016-01-11 23:00       ` Martin Michlmayr
2016-01-11 23:22         ` Mark Brown
2016-01-11 23:43           ` Andrew Lunn
2016-01-12  1:21             ` Mark Brown
2016-01-12  0:07           ` Martin Michlmayr
2016-01-12  0:47             ` Mark Brown
2016-01-12  1:19               ` Andrew Lunn
2016-01-12  1:31                 ` Mark Brown
2016-01-12 16:29                 ` Arnd Bergmann
2016-01-12 18:02                   ` Mark Brown
2016-01-12 21:49                     ` Arnd Bergmann
2016-01-12 22:00                       ` Mark Brown
2016-01-12 22:41                         ` Arnd Bergmann
2016-01-13 11:42                           ` Mark Brown

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='CAKzmTe2f1FdjM5VZ-ju+ZQ4z0Dxk4x1ywJCfi1OX5eSaCr=51w@mail.gmail.com' \
    --to=fijam@archlinux.us \
    --cc=linux-arm-kernel@lists.infradead.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.