lkml.org 
[lkml]   [2019]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] MIPS: add support for SGI Octane (IP30)
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

\
 
 \ /
  Last update: 2019-10-14 13:34    [W:0.117 / U:1.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site