From: Jacob Gorm Hansen <jacobg@diku.dk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
xen-devel <xen-devel@lists.sourceforge.net>
Subject: Re: Failure to get memory for GATT table, again
Date: Wed, 2 Feb 2005 00:29:45 +0100 [thread overview]
Message-ID: <20050201232945.GC15851@diku.dk> (raw)
In-Reply-To: <E1Cw7Hb-0003vB-00@mta1.cl.cam.ac.uk>
On Tue, Feb 01, 2005 at 11:18:07PM +0000, Ian Pratt wrote:
>
> > > The AGP aperture needs a set of machine contiguous pages, whereas
> > > get_free_pages will only give you pseudo-physical contiguous.
> > >
> > > Drivers are supposed to use the former (for reasons of ensuring
> > > DMA coherence) , but the agp drivers seem particularly shoddy,
> > > probably because they've only ever been used on x86.
> >
> > Hmm but it seems that dev->dma_mem is never set for the device, causing a fallback to
> > __get_free_pages(). Should the driver have set this?
>
> dma_alloc_coherent allocates some pages, then calls
> xen_contig_memory which swaps them for machine contiguous ones.
>
> You should be able to call ioremap_nocache on the virt_to_bus'ed
> address you get back from xen_contig_memory.
Apparently this is where things go wrong; the pages I get from __get_free_pages
seem to always be a the top of dom0 mem (probably because order is 6), and when
converted with virt_to_bus I get an mfn which Xen thinks is not owned by dom0.
> Ian
Jacob
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
next prev parent reply other threads:[~2005-02-01 23:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-01 21:25 Failure to get memory for GATT table, again Ian Pratt
2005-02-01 22:15 ` Jacob Gorm Hansen
2005-02-01 22:45 ` Ian Pratt
2005-02-01 22:52 ` Jacob Gorm Hansen
2005-02-01 23:18 ` Ian Pratt
2005-02-01 23:29 ` Jacob Gorm Hansen [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-02 22:38 Ian Pratt
2005-02-02 23:55 ` Jacob Gorm Hansen
2005-02-02 0:01 Ian Pratt
2005-02-02 0:55 ` Jacob Gorm Hansen
2005-02-02 21:28 ` Jacob Gorm Hansen
2005-02-01 16:39 Ian Pratt
2005-02-01 20:08 ` Jacob Gorm Hansen
2005-02-01 7:27 Ian Pratt
2005-02-01 8:23 ` Jacob Gorm Hansen
2005-02-01 8:46 ` Jacob Gorm Hansen
2005-02-01 8:59 ` Jacob Gorm Hansen
2005-02-01 4:29 Jacob Gorm Hansen
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=20050201232945.GC15851@diku.dk \
--to=jacobg@diku.dk \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.