From: Clemens Ladisch <clemens@ladisch.de>
To: Lukasz Stelmach <stlman@poczta.fm>,
Stefan Richter <stefanr@s5r6.in-berlin.de>,
linux1394-devel@lists.sourceforge.net,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [BUG] ohci_enable() fails during resume
Date: Tue, 23 Jun 2015 09:56:01 +0200 [thread overview]
Message-ID: <55891111.50809@ladisch.de> (raw)
In-Reply-To: <55872606.3070801@poczta.fm>
Lukasz Stelmach wrote:
> A bit, suddenly by desktop PC started to fail to resume. [...]
> The failing code is somewhere around line 2400 of
> drivers/firewire/ohci.c (the latest mainline).
> 0x000000000000003f <+31>: callq 0xffffffffffffb037 <copy_config_rom>
> 0x0000000000000044 <+36>: mov 0x898(%rbx),%rax
> -->0x000000000000004b <+43>: mov (%rax),%edx <--
(The copy_config_rom call was not actually executed; the else branch
jumped to 44.)
ohci->next_config_rom is NULL because ohci->config_rom is NULL.
> The code around the line 2400 appears to handle multiple
> firewire ports (if I recognise variable names correctly, e.g.
> next_config_rom).
No, this code handles multiple versions of the same data structure.
> Hardware bug in the on-board firewire controller *and* a bug in the
> driver.
Indeed; this appears to be the culprit:
> [ 232.855042] firewire_ohci 0000:04:03.0: added OHCI v1.0 device as card 0, 8 IR + 8 IT contexts, quirks 0x0
> [ 232.864724] firewire_ohci 0000:04:03.0: bad self ID 0/1 (00000000 != ~00000000)
With the "bad self ID", bus_reset_work() just aborts, and the controller
is never completely initialized (therefore the unexpected NULL).
Try unloading and reloading the firewire-ohci module to see if you can
ever avoid the "bad self ID" error. But if it stays, your hardware
indeed appears to be broken.
Regards,
Clemens
prev parent reply other threads:[~2015-06-23 8:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-21 21:00 [BUG] ohci_enable() fails during resume Lukasz Stelmach
2015-06-23 7:56 ` Clemens Ladisch [this message]
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=55891111.50809@ladisch.de \
--to=clemens@ladisch.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=stefanr@s5r6.in-berlin.de \
--cc=stlman@poczta.fm \
/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