From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Matthew Wilcox <matthew@wil.cx>,
Stefan Richter <stefanr@s5r6.in-berlin.de>,
linux-pci@vger.kernel.org, linux1394-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org,
Dominik Brodowski <linux@dominikbrodowski.net>
Subject: Re: DMAR:[fault reason 02] Present bit in context entry is clear (firewire-ohci)
Date: Sat, 22 May 2010 12:09:05 -0700 [thread overview]
Message-ID: <20100522120905.154ff932@jbarnes-x201> (raw)
In-Reply-To: <1274553643.11551.17300.camel@macbook.infradead.org>
On Sat, 22 May 2010 19:40:43 +0100
David Woodhouse <dwmw2@infradead.org> wrote:
> On Sat, 2010-05-22 at 06:12 -0600, Matthew Wilcox wrote:
> > On Sat, May 22, 2010 at 12:26:15PM +0200, Stefan Richter wrote:
> > > Hi,
> > >
> > > I came across a report of the subject message. What does it mean; what
> > > type of bug should be look for?
> > >
> > > https://bugzilla.redhat.com/show_bug.cgi?id=587178
> > > >>>
> > > firewire_ohci 0000:04:00.4: PCI INT C -> GSI 16 (level, low) -> IRQ 16
> > > firewire_ohci 0000:04:00.4: setting latency timer to 64
> > > firewire_ohci: Added fw-ohci device 0000:04:00.4, OHCI version 1.0
> > > DRHD: handling fault status reg 2
> > > DMAR:[DMA Read] Request device [04:00.0] fault addr fffff000
> > > DMAR:[fault reason 02] Present bit in context entry is clear
> > > DMAR:[DMA Read] Request device [04:00.0] fault addr fffff000
> > > DMAR:[fault reason 02] Present bit in context entry is clear
> > > DMAR:[DMA Read] Request device [04:00.0] fault addr fffff000
> > > DMAR:[fault reason 02] Present bit in context entry is clear
> > > <<<
> > >
> > > The log sounds as if this happens during from-device DMA of 04:00.4 into
> > > a consistent buffer, yet the fault is logged for device 04:00.0. The
> > > log is from a Dell M4500. The devices are, according to a web search,
> > > 04:00.0 CardBus bridge [0607]: Ricoh Co Ltd Device [1180:e476] (rev 02)
> > > 04:00.4 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd Device [1180:e832]
> > > (rev 03) (prog-if 10)
> >
> > I would guess that the DMAR can't distinguish between the different
> > devices behind the Cardbus bridge. Adding Dave Woodhouse.
>
> Yeah, the DMAR looks at the source-id in the PCIe transactions, and it
> sounds like those are all 04:00.0. But we've probably set up the DMAR to
> allow the transactions from 04:00.4, and then it naturally faults when a
> "different" device actually ends up doing the transaction.
>
> If you make the pci_find_upstream_pcie_bridge() function do the
> appropriate thing for this device, does it then work as expected?
>
> Whether that's a _sane_ thing to do or not is possibly more of a Jesse
> question...
Well, if cardbus bridges tend to behave this way in general it would
make sense to simply use the cardbus bride id everywhere, rather than
the specific functions of the device. Cc'ing Dominik.
Jesse
next prev parent reply other threads:[~2010-05-22 19:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-22 10:26 DMAR:[fault reason 02] Present bit in context entry is clear (firewire-ohci) Stefan Richter
2010-05-22 12:12 ` Matthew Wilcox
2010-05-22 18:40 ` David Woodhouse
2010-05-22 19:09 ` Jesse Barnes [this message]
2010-05-30 14:18 ` Stefan Richter
2011-11-19 17:21 ` Tomáš Janoušek
2011-11-30 16:16 ` Clemens Ladisch
2011-12-01 9:14 ` Tomáš Janoušek
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=20100522120905.154ff932@jbarnes-x201 \
--to=jbarnes@virtuousgeek.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=linux@dominikbrodowski.net \
--cc=matthew@wil.cx \
--cc=stefanr@s5r6.in-berlin.de \
/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