All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Scott Parish" <srparish@us.ibm.com>
To: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
	xen-devel@lists.xensource.com, Scott Parish <srparish@us.ibm.com>
Subject: Re: Xen 3.0 Status update
Date: Thu, 28 Jul 2005 21:55:39 +0000	[thread overview]
Message-ID: <20050728215538.GI4224@us.ibm.com> (raw)
In-Reply-To: <200507282357.28053.mark.williamson@cl.cam.ac.uk>

On Thu, Jul 28, 2005 at 11:57:27PM +0100, Mark Williamson wrote:

> > I have a patch that introduces zones into xen, and a hypercall to
> > request dmaable memory, which i've made xen_contig_memory() use.
> > Unfortunately, there still seems to be some places where kmallocs are
> > done for dma buffers. (i tried putting all linux memory into ZONE_NORMAL
> > and caught a couple of these places)
> 
> The Linux USB stack uses kmalloc-ed memory as DMA buffers as standard 
> practice.  This should still be dealt with correctly by bounce buffer code, 
> though.

I'll have to look at that code. The place i caught was
drivers/scsi/sd.c:1471:

	buffer = kmalloc(512, GFP_KERNEL | __GFP_DMA);

I've tried fixing the page allocator to xen_contig_memory() pages that
are requested __GFP_DMA, but now get a null pointer dereference i
haven't shaken out yet. (i'm not suggesting that xen_contig_memory() is
the appropriate long term solution, but for prototyping it should work)

sRp

-- 
Scott Parish
Signed-off-by: srparish@us.ibm.com

  reply	other threads:[~2005-07-28 21:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 22:39 Xen 3.0 Status update Ian Pratt
2005-07-28 21:43 ` Scott Parish
2005-07-28 22:57   ` Mark Williamson
2005-07-28 21:55     ` Scott Parish [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-29 11:16 Ian Pratt
2005-07-29 12:58 ` Gerd Knorr
2005-07-28 23:31 Ian Pratt
2005-07-28 23:05 Ian Pratt
2005-07-28 21:59 ` Scott Parish
2005-07-29  9:06 ` Gerd Knorr
2005-07-29 10:17   ` Keir Fraser
2005-07-28 21:35 Ian Pratt
2005-07-28 20:30 ` Scott Parish
2005-07-28 21:15 Ian Pratt
2005-07-28 20:09 ` Scott Parish
2005-07-28 21:01 Walker, Bruce J (HP-Labs)
2005-07-28 11:52 Ian Pratt
2005-07-29  2:30 ` aq
2005-07-27 23:34 Ian Pratt
2005-07-28  4:28 ` aq

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=20050728215538.GI4224@us.ibm.com \
    --to=srparish@us.ibm.com \
    --cc=m+Ian.Pratt@cl.cam.ac.uk \
    --cc=mark.williamson@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.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 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.