All of lore.kernel.org
 help / color / mirror / Atom feed
From: adam.cottrel@veea.com (Adam Cottrel)
To: linux-arm-kernel@lists.infradead.org
Subject: DMA remote memcpy requests
Date: Mon, 15 Oct 2018 15:24:55 +0000	[thread overview]
Message-ID: <DM6PR04MB4059991247828ADBD6133D2FF2FD0@DM6PR04MB4059.namprd04.prod.outlook.com> (raw)
In-Reply-To: <20181015150912.GA8789@hc>

Dear Jan,

> from your description this sound like it:
> - only happens under memory pressure
> - only happens when you combine atheros DMA with something else (or
> does
>   the MMC stress test trigger any faults on its own?)
> 
> With that I would look through all the allocations in the atheros driver and
> especially look for any missing error handling. But that's just my 2 cents,
> maybe Robin or Will can give better advise here...

That is good advice.

>From what I can see, there are checks made on every alloc, however, it is possible that the failure is silently handled.

For example, memory is allocated with __GFP_IGNORE and the error flag is lost because the called returned void...

I have put in a lot of debug code to look for this type of fault - it is possible that I have missed the exact point of failure...

Is there some kind of queue of outstanding remote DMA requests? And if so, is it possible that the request queue can overflow in some way?

Best,
Adam

  reply	other threads:[~2018-10-15 15:24 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
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 [this message]
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=DM6PR04MB4059991247828ADBD6133D2FF2FD0@DM6PR04MB4059.namprd04.prod.outlook.com \
    --to=adam.cottrel@veea.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.