From: Russell Currey <ruscur@russell.cc>
To: Alexey Kardashevskiy <aik@ozlabs.ru>, linuxppc-dev@lists.ozlabs.org
Cc: Alistair Popple <alistair@popple.id.au>,
Oliver O'Halloran <oohall@gmail.com>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [PATCH kernel RFC 0/2] powerpc/ioda2: An attempt to allow DMA masks between 32 and 59
Date: Tue, 23 Apr 2019 10:58:12 +1000 [thread overview]
Message-ID: <93b691b5c538d013717f9a9326bbf77e97b58a28.camel@russell.cc> (raw)
In-Reply-To: <20190412064408.85399-1-aik@ozlabs.ru>
On Fri, 2019-04-12 at 16:44 +1000, Alexey Kardashevskiy wrote:
> This is an attempt to allow DMA mask 40 or similar which are not
> large
> enough to use either a PHB3 bypass mode or a sketchy bypass.
>
> This is based on sha1
> 582549e3fbe1 Linus Torvalds Merge tag 'for-linus' of
> git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
>
> Please comment. Thanks.
Seems to uniformly fail on POWER8 and sometimes on P9 too.
On P8:
[ 2.423206] Failed to allocate a TCE memory, level shift=26
[ 2.423351] pci 0001:03 : [PE# fd] Failed to create 32-bit TCE
table, err -12
On P9:
[ 0.303055] pci 0003:01 : [PE# 1fd] Setting up 32-bit TCE table
at 0..80000000
[ 0.303119] Failed to allocate a TCE memory, level shift=30
[ 0.303147] pci 0003:01 : [PE# 1fd] Failed to create 32-bit TCE
table, err -12
Is it selecting the wrong TCE size?
> Alexey Kardashevskiy (2):
powerpc/powernv/ioda: Allocate TCE table
> levels on demand for default
DMA window
powerpc/powernv/ioda2:
> Create bigger default window with 64k IOMMU
pages
arch/powerpc/include/asm/iommu.h | 8 ++-
arch/powerpc/platforms/powernv/pci.h | 2 +-
arch/powerpc/kernel/iommu.c | 58 +++++++++++++--
----
arch/powerpc/platforms/powernv/pci-ioda-tce.c | 19 +++---
arch/powerpc/platforms/powernv/pci-ioda.c | 14 ++++-
5 files changed, 66 insertions(+), 35 deletions(-)
next prev parent reply other threads:[~2019-04-23 1:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-12 6:44 [PATCH kernel RFC 0/2] powerpc/ioda2: An attempt to allow DMA masks between 32 and 59 Alexey Kardashevskiy
2019-04-12 6:44 ` [PATCH kernel RFC 1/2] powerpc/powernv/ioda: Allocate TCE table levels on demand for default DMA window Alexey Kardashevskiy
2019-04-12 6:44 ` [PATCH kernel RFC 2/2] powerpc/powernv/ioda2: Create bigger default window with 64k IOMMU pages Alexey Kardashevskiy
2019-04-12 7:16 ` [PATCH kernel RFC 0/2] powerpc/ioda2: An attempt to allow DMA masks between 32 and 59 Russell Currey
2019-04-23 0:58 ` Russell Currey [this message]
2019-04-26 7:39 ` Alexey Kardashevskiy
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=93b691b5c538d013717f9a9326bbf77e97b58a28.camel@russell.cc \
--to=ruscur@russell.cc \
--cc=aik@ozlabs.ru \
--cc=alistair@popple.id.au \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=oohall@gmail.com \
/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).