mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Herbert Xu <herbert@gondor.apana.org.au>, Harsh Jain <Harsh@chelsio.com>
Cc: joro@8bytes.org, linux-crypto@vger.kernel.org,
	iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org,
	leedom@chelsio.com
Subject: Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU
Date: Mon, 25 Sep 2017 19:45:31 +0100	[thread overview]
Message-ID: <1506365131.5294.37.camel@infradead.org> (raw)
In-Reply-To: <20170920080151.GA3348@gondor.apana.org.au>

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

On Wed, 2017-09-20 at 16:01 +0800, Herbert Xu wrote:
> Harsh Jain <Harsh@chelsio.com> wrote:
> > 
> > While debugging DMA mapping error in chelsio crypto driver we
> observed that when scatter/gather list received by driver has some
> entry with page->offset > 4096 (PAGE_SIZE). It starts giving DMA
> error.  Without IOMMU it works fine.
> 
> This is not a bug.  The network stack can and will feed us such
> SG lists.

Hm? Under what circumstances is the offset permitted to be >
PAGE_SIZE? 

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 4938 bytes --]

  parent reply	other threads:[~2017-09-25 18:45 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-16  6:11 Harsh Jain
2017-09-20  8:01 ` Herbert Xu
2017-09-20 10:12   ` Robin Murphy
2017-09-20 11:20     ` Harsh Jain
2017-09-25 17:46     ` Casey Leedom
2017-09-25 15:54       ` Raj, Ashok
2017-09-25 18:46         ` Casey Leedom
2017-09-26  3:46           ` Harsh Jain
2017-09-26 12:21             ` Harsh Jain
2017-09-26 14:22               ` Robin Murphy
2017-09-26 14:34                 ` Raj, Ashok
2017-09-26 14:40                   ` Raj, Ashok
2017-09-26 20:50                     ` Casey Leedom
2017-09-26 18:15                   ` Robin Murphy
     [not found]                 ` <MWHPR12MB1600694D099E1CFAD6849A68C87B0@MWHPR12MB1600.namprd12.prod.outlook.com>
2017-09-26 16:10                   ` Dan Williams
2017-09-27 16:31                     ` Casey Leedom
2017-09-27 17:13                       ` Dan Williams
2017-10-01  8:59                         ` Christoph Hellwig
2017-09-27 17:18                       ` Robin Murphy
2017-09-27 14:48                         ` Raj, Ashok
2017-09-27 21:29                           ` Casey Leedom
2017-09-27 19:07                             ` Raj, Ashok
2017-09-27 22:13                               ` Casey Leedom
2017-09-28  5:01                                 ` Harsh Jain
2017-09-28 10:33                                 ` Herbert Xu
2017-09-28 13:38                             ` Harsh Jain
2017-09-28 13:05                               ` Raj, Ashok
2017-09-29  5:37                                 ` Harsh Jain
2017-09-27 17:30                         ` Casey Leedom
2017-09-26 17:30                 ` Casey Leedom
2017-09-25 19:31       ` Dan Williams
2017-09-25 20:05         ` Casey Leedom
2017-09-25 20:11           ` Dan Williams
2017-09-25 19:03             ` Raj, Ashok
2017-09-25 23:41               ` Casey Leedom
2017-09-26 13:04             ` Harsh Jain
2017-09-20 11:30   ` Harsh Jain
2017-09-25 18:45   ` David Woodhouse [this message]
2017-09-25 20:19     ` Casey Leedom
2017-09-26 11:17     ` Harsh Jain

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=1506365131.5294.37.camel@infradead.org \
    --to=dwmw2@infradead.org \
    --cc=Harsh@chelsio.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=iommu@lists.linux-foundation.org \
    --cc=joro@8bytes.org \
    --cc=leedom@chelsio.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome