linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@au1.ibm.com>
To: IanJiang <ianjiang.cn@gmail.com>, linuxppc-dev@ozlabs.org
Subject: Re: EEH error in doing DMA with PEX 8619
Date: Wed, 12 Apr 2017 11:50:03 +1000	[thread overview]
Message-ID: <1491961803.7236.36.camel@au1.ibm.com> (raw)
In-Reply-To: <1491961190461-121224.post@n7.nabble.com>

On Tue, 2017-04-11 at 18:39 -0700, IanJiang wrote:
> On Tue, Apr 11, 2017 at 5:37 PM, Benjamin Herrenschmidt [via
> linuxppc]
> <ml-node+s10917n121182h95@n7.nabble.com> wrote:
> 
> > Another possibility would be if the requests from the PLX have a 
> > different initiator ID on the bus than the device you are setting
> > up 
> > the DMA for. 
> 
> Is there a way to check out the initiator ID in the driver? I'd like
> to make sure of this.

If you are running bare metal (ie, not under any hypervisor, aka
"powernv" platform), the EEH error log will contain a register dump. If
you paste that to us, we might be able to decode it, it will tell us
more data about the cause of the failure, including possibly the
initiator of the failing transaction.

The initiator ID (aka RID, aka bus/device/fn) of the DMA packets must
match the ones of the struct pci_dev you are using to establish the
mapping.

Cheers,
Ben.

> 
> --
> View this message in context: http://linuxppc.10917.n7.nabble.com/EEH
> -error-in-doing-DMA-with-PEX-8619-tp121121p121224.html
> Sent from the linuxppc-dev mailing list archive at Nabble.com.

  reply	other threads:[~2017-04-12  1:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-10 12:22 EEH error in doing DMA with PEX 8619 IanJiang
2017-04-10 22:24 ` Gavin Shan
2017-04-11  2:04   ` IanJiang
2017-04-11  2:15     ` Benjamin Herrenschmidt
2017-04-11  4:42       ` Gavin Shan
2017-04-11  9:26         ` IanJiang
2017-04-11  9:35           ` Benjamin Herrenschmidt
2017-04-12  1:39             ` IanJiang
2017-04-12  1:50               ` Benjamin Herrenschmidt [this message]
2017-04-12  8:42             ` IanJiang
2017-04-12 13:53               ` Benjamin Herrenschmidt

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=1491961803.7236.36.camel@au1.ibm.com \
    --to=benh@au1.ibm.com \
    --cc=ianjiang.cn@gmail.com \
    --cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).