2008-03-07 23:21:18

by Andi Kleen

[permalink] [raw]
Subject: Re: [PATCH] x86_64: reserve dma32 early for gart

On Saturday 08 March 2008 00:02:50 Yinghai Lu wrote:
>
>



>solution will be:
>1. make memmap allocation get memory above 4G...
>2. reserve some dma32 range early before we try to set up memmap for all.
>and release that before pci_iommu_alloc, so gart or swiotlb could get some
>range under 4g limit for sure.

Funny we had (1) before vmemmap for some time, but it looks like
that regressed with vmemmap Anyways I think (1) alone should be enough, is (2)
really needed?

-Andi

2008-03-08 01:46:07

by Yinghai Lu

[permalink] [raw]
Subject: Re: [PATCH] x86_64: reserve dma32 early for gart

On Fri, Mar 7, 2008 at 3:20 PM, Andi Kleen <[email protected]> wrote:
> On Saturday 08 March 2008 00:02:50 Yinghai Lu wrote:
> >
> >
>
>
>
> >solution will be:
> >1. make memmap allocation get memory above 4G...
> >2. reserve some dma32 range early before we try to set up memmap for all.
> >and release that before pci_iommu_alloc, so gart or swiotlb could get some
> >range under 4g limit for sure.
>
> Funny we had (1) before vmemmap for some time, but it looks like
> that regressed with vmemmap Anyways I think (1) alone should be enough, is (2)
> really needed?

even vmemmap is disabled, still need (2).

(1) is not there yet.

YH