linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tbogendoerfer@suse.de>
To: Joshua Kinard <kumba@gentoo.org>
Cc: Christoph Hellwig <hch@infradead.org>,
	Ralf Baechle <ralf@linux-mips.org>,
	Paul Burton <paul.burton@mips.com>,
	James Hogan <jhogan@kernel.org>,
	linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] MIPS: add support for SGI Octane (IP30)
Date: Mon, 14 Oct 2019 13:34:08 +0200	[thread overview]
Message-ID: <20191014133408.24fb17711d942effc92e27ee@suse.de> (raw)
In-Reply-To: <5c6ab720-218a-14aa-9112-a12b88b63bc2@gentoo.org>

On Fri, 11 Oct 2019 20:33:43 -0400
Joshua Kinard <kumba@gentoo.org> wrote:
> http://bxr.su/OpenBSD/sys/arch/sgi/sgi/ip30_machdep.c
> 
> 144    /*
> 145     * Register DMA-reachable memory constraints.
> 146     * The xbridge(4) is limited to a 31-bit region (its IOMMU features
> 147     * are too restricted to be of use).
> 148     */
> 149    dma_constraint.ucr_low = 0;
> 150    dma_constraint.ucr_high = (1UL << 31) - 1;
> 
> I never figured out how in Linux one does something equivalent.  I knew it
> needed to be done in the older dma-coherence.h file, and now in the newer
> __phys_to_dma() function here.  This is, if memory recalls correctly,
> because >2GB RAM in Octane causes issues w/ BRIDGE DMA access.

32bit DMA is always limited to 2GB address range by bridge. Right now we 
our code doesn't support 32bit DMA access at all, because it was not really
usefull for IP27. With IP30 it's probably more usefull, but my current focus
is getting basic IP30 support merged and improve it from there. And as this
is a bridge limititation everything can still be placed in pci-xtalk-bridge.c

Thomas.

-- 
SUSE Software Solutions Germany GmbH
HRB 247165 (AG München)
Geschäftsführer: Felix Imendörffer

      reply	other threads:[~2019-10-14 11:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-09 15:59 [PATCH] MIPS: add support for SGI Octane (IP30) Thomas Bogendoerfer
2019-10-09 18:43 ` Christoph Hellwig
2019-10-10 13:01   ` Thomas Bogendoerfer
2019-10-10 13:53     ` Christoph Hellwig
2019-10-10 14:48       ` Thomas Bogendoerfer
2019-10-10 14:58         ` Carlo Pisani
2019-10-12  0:33   ` Joshua Kinard
2019-10-14 11:34     ` Thomas Bogendoerfer [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=20191014133408.24fb17711d942effc92e27ee@suse.de \
    --to=tbogendoerfer@suse.de \
    --cc=hch@infradead.org \
    --cc=jhogan@kernel.org \
    --cc=kumba@gentoo.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=paul.burton@mips.com \
    --cc=ralf@linux-mips.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).