linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: DMA remote memcpy requests
Date: Fri, 12 Oct 2018 10:09:38 +0100	[thread overview]
Message-ID: <20181012090937.GA12289@arm.com> (raw)
In-Reply-To: <DM6PR04MB405938028EC04FBD07F3D96AF2E10@DM6PR04MB4059.namprd04.prod.outlook.com>

Hi Adam,

[+Robin and Cavium folks -- it's usually best to cc people as well as
 mailing the list]

On Thu, Oct 11, 2018 at 07:28:37AM +0000, Adam Cottrel wrote:
> I am using the ATH10K on Linux 14.4 with an Arm Cavium processor. During
> heavy loading, I am seeing that target initiated DMA requests are being
> silently dropped under extreme IO memory pressure and it is proving very
> difficult to isolate the root cause.

Is this ThunderX 1 or 2 or something else? Can you reproduce the issue with
mainline?

> The ATH10K firmware uses the DMA API to set up phy_addr_t pointers
> (32-bit) which are then copied to a shared ring buffer. The target then
> initiates the memcpy operation (for target-to-host reads), but I do not
> have any means of debugging the target directly, and so I am looking for
> software hooks on the host that might help debug this complex problem.

How does the firmware use the DMA API, or are you referring to a driver? If
the latter, could you point us to the code, please? Is it using the
streaming API, or is this a coherent allocation?

> Please can someone explain the low-level operation of DMA once it becomes
> a target initiated memcpy function?

I think we need a better handle on the issue first.

> p.s. I have tested with and without the IOMMU, and I have eliminated
> issues such as cache coherency being the root cause.

Right, not sure how the SMMU would help here.

Will

  reply	other threads:[~2018-10-12  9:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-11  7:28 DMA remote memcpy requests Adam Cottrel
2018-10-12  9:09 ` Will Deacon [this message]
2018-10-12  9:48   ` Adam Cottrel
2018-10-12 10:46     ` Robin Murphy
2018-10-12 11:06       ` Adam Cottrel
2018-10-15 14:34       ` Adam Cottrel
2018-10-15 15:09         ` Jan Glauber
2018-10-15 15:24           ` Adam Cottrel
2018-10-15 15:39             ` Jan Glauber
2018-10-15 15:51               ` Adam Cottrel
2018-10-18 15:36                 ` Adam Cottrel
2018-10-22 14:28                   ` Jan Glauber
2018-10-22 14:39                     ` Adam Cottrel
2018-10-22 15:33                       ` Jan Glauber
     [not found]         ` <DM6PR07MB4923F3328079199090D6D2CA9EFE0@DM6PR07MB4923.namprd07.prod.outlook.com>
2018-10-16 16:52           ` Adam Cottrel
2018-10-16 17:08             ` Robin Murphy
2018-10-12 11:03     ` Jan Glauber
2018-10-12 11:07       ` Adam Cottrel

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=20181012090937.GA12289@arm.com \
    --to=will.deacon@arm.com \
    --cc=linux-arm-kernel@lists.infradead.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).