linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
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 23:53:25 +1000	[thread overview]
Message-ID: <1492005205.7236.63.camel@kernel.crashing.org> (raw)
In-Reply-To: <CAFE2VE+pm=bBVBx3Ws08kcKGhZO+BaxJcmskjg4DFjNKHQj-9w@mail.gmail.com>

On Wed, 2017-04-12 at 01:42 -0700, IanJiang wrote:
> 
> In my test, DMA buffers are allocated with  (bus 2, device 1, function 
> 0) in module Plx8000_NT, but DMA is issued by (bus 1 device 0 function 
> 1) in module Plx8000_DMA. And error of (bus 1 device 0 function 1) is 
> reported by EEH. 

This is going to break on other systems too. If you enable strict iommu
on x86 for example.

You need to ensure that DMA are allocated for the same requester ID
that will be performing the transactions.

Cheers,
Ben.

      reply	other threads:[~2017-04-12 13:53 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
2017-04-12  8:42             ` IanJiang
2017-04-12 13:53               ` Benjamin Herrenschmidt [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=1492005205.7236.63.camel@kernel.crashing.org \
    --to=benh@kernel.crashing.org \
    --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).