From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Jarod Wilson <jwilson@redhat.com>
Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH update] firewire: fw-ohci: work around generation bug in TI controllers (fix AV/C and more)
Date: Wed, 16 Apr 2008 12:21:44 +0200 [thread overview]
Message-ID: <4805D338.2000704@s5r6.in-berlin.de> (raw)
In-Reply-To: <200804141330.22131.jwilson@redhat.com>
Jarod Wilson wrote:
> On Saturday 12 April 2008 04:31:25 pm Stefan Richter wrote:
>> https://bugzilla.redhat.com/show_bug.cgi?id=243081
...
>> @@ -2360,6 +2369,8 @@ pci_probe(struct pci_dev *dev, const str
>> ohci->old_uninorth = dev->vendor == PCI_VENDOR_ID_APPLE &&
>> dev->device == PCI_DEVICE_ID_APPLE_UNI_N_FW;
>> #endif
>> + ohci->bus_reset_packet_quirk = dev->vendor == PCI_VENDOR_ID_TI;
>> +
>
> I have a few cards with PCI_VENDOR_ID_CREATIVE with a TI TSB41AB2 chip on 'em
> (SoundBlaster Audigy w/FireWire port). I've not had any issues on any of the
> cards I've got, but do we want to add them to the work-around list just to be
> safe?
Right now TSB82AA2 is confirmed buggy by two slightly differing reports
(Mladen's and mine) and TSB43AB22 or TSB43AB22A is under suspicion.
Whether TSB41AB2 is affected or not is impossible to say without having
a hardware combination which triggers the bug. So far it seems the bug
occurs if there are more bus reset events than self ID complete events.
Note, I noticed the bug on my TSB82AA2 only by means of the bus reset
packet generation logging, not because of any subsequent malfunction
(because a bus reset forced by the bus manager code is always saving the
day on my setup).
If you could reproduce these conditions somehow and then check the debug
log for temporary generation mismatches, that would be good. Note that
the conditions for the bug to occur are almost exclusively influenced by
the PHY layer hardware of all nodes on the bus, while the bug itself is
caused by the link layer controller.
Anyway, if we get confirmation that the proposed patch fixes
TSB43AB22(A) and you don't have the means to prove that TSB41AB2 is not
buggy, then let's add the vendor ID of Creative as well. As mentioned,
the patch introduces a certain danger of
1. fw-core missing to send responses to requests which came in
immediately after bus reset (unlikely border case),
2. fw-core responding to requests which came in before the last
bus reset (even less likely border case, because that would only
happen if the self ID complete event was processed before an older
AR event, which does not happen according to my observations with
a bunch of different chips).
1. is to be compensated by the requester by retry. We have seen that
some simplistic requesters have difficulties with that. But luckily,
these requesters are AV/C targets and send requests as AV/C transaction
responses. I think the chances for this to happen are rather low.
2. is to be compensated by the requester by proper matching of
transaction labels and discarding transaction labels at bus reset events.
AFAIU, the ieee1394 stack has always been in danger to trip these border
cases because ohci1394 never looks at the bus reset packet generation.
So this speaks _for_ enabling the bus_reset_packet_quirk if a card is
merely under suspicion of having the bug and we are unable to find
someone who can disprove the suspicion for us.
--
Stefan Richter
-=====-==--- -=-- -==-=
http://arcgraph.de/sr/
next prev parent reply other threads:[~2008-04-16 10:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-12 19:26 [PATCH] " Stefan Richter
2008-04-12 20:31 ` [PATCH update] " Stefan Richter
2008-04-14 17:30 ` Jarod Wilson
2008-04-16 10:21 ` Stefan Richter [this message]
2008-04-17 22:47 ` Stefan Richter
2008-04-18 2:51 ` Jarod Wilson
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=4805D338.2000704@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=jwilson@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
/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
all inboxes | Powered by JetHome®