xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Gordan Bobic <gordan@bobich.net>
To: Andrew Bobulsky <rulerof@gmail.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	xudong.hao@intel.com, Yanqiangjun <yanqiangjun@huawei.com>,
	Luonengjun <luonengjun@huawei.com>,
	Wangzhenguo <wangzhenguo@huawei.com>,
	Yangxiaowei <xiaowei.yang@huawei.com>,
	"Gonglei (Arei)" <arei.gonglei@huawei.com>,
	Anthony Perard <anthony.perard@citrix.com>,
	xen-devel@lists.xen.org, Hanweidong <hanweidong@huawei.com>,
	xiantao.zhang@intel.com
Subject: Re: GPU passthrough issue when VM is configured with 4G memory
Date: Wed, 22 May 2013 19:41:50 +0100	[thread overview]
Message-ID: <519D116E.3040402@bobich.net> (raw)
In-Reply-To: <CAN1tX1hT5nXpaV6Qp=UDB971X36fgQtKHwqRGNUvUm0iC8EUxQ@mail.gmail.com>

On 05/22/2013 07:11 PM, Andrew Bobulsky wrote:
> On Wed, May 22, 2013 at 11:17 AM, Gordan Bobic <gordan@bobich.net
> <mailto:gordan@bobich.net>> wrote:
>
>     On Tue, 21 May 2013 04:09:25 +0000, Hanweidong
>     <hanweidong@huawei.com <mailto:hanweidong@huawei.com>> wrote:
>
>             -----Original Message-----
>             From: Gordan Bobic [mailto:gordan@bobich.net
>             <mailto:gordan@bobich.net>]
>             Sent: 2013年5月21日 2:43
>             To: George Dunlap
>             Cc: Hanweidong; Stefano Stabellini; xudong.hao@intel.com
>             <mailto:xudong.hao@intel.com>; Yanqiangjun;
>             Luonengjun; Wangzhenguo; Yangxiaowei; Gonglei (Arei);
>             Anthony Perard;
>             xen-devel@lists.xen.org <mailto:xen-devel@lists.xen.org>;
>             xiantao.zhang@intel.com <mailto:xiantao.zhang@intel.com>
>             Subject: Re: [Xen-devel] GPU passthrough issue when VM is
>             configured
>             with 4G memory
>
>             I'd also like to stress this is not only an issue for > 4GB
>             of RAM in
>             domU - I am seeing the issue with > 2GB of RAM in domU.
>
>
>         What's the total mmio size of you domU?
>
>
>     How can I find that out?
>
>
>         When RAM of domU overlaps
>         with pci_mem_start, hvmloader will relocate RAM, and it will cause
>         problem due to hvmloader and QEMU don't setup the memory layout
>         consistently. I suspect the mmio size of your domU is close to 2GB.
>         When you configured RAM > 2G, then RAM of your domU overlapped with
>         pci_mem_start, and resulted in failure.
>
>
>     Is there a way to force a hole between, say, 2GB and 4GB explicitly
>     to avoid the PCI memory being clobbered?
>
> I'll second that question!
> Gordan, one thing I didn't think of until now: the card I was having
> trouble with, a Radeon 6990, is a 4GB card, laid out as two 2GB GPUs.
> The card with which I don't have issues (aside from the occasional need
> to reboot the whole system to get it to work right), a Radeon 5850, is a
> 1GB card.  If as this thread has suggested, along with what I've read
> about the PCI Hole, the memory on the GPU determines the "clobber size"
> (yes I made that term up :P),

I'm pretty sure the GPU RAM size is not relevant. I've seen this with 
the 1GB Nvidia Quadro 2000, 1GB ATI 7450 and the 6GB 7970. The GPU 
memory size does not affect the aperture size or location. I for one 
would love it if all of the GPU RAM was in fact mapped as a BAR - that 
would open up some very funky approaches to processing large amounts of 
data, e.g. by just mapping the data straight to the GPU. It would also 
make it trivially easy to use all that RAM as a RAM disk when the GPU 
isn't being used (e.g. you can use the RAM for fast swap for normal 
desktop tasks, and free it up when gaming). but that's a whole different 
topic.

Gordan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-05-22 18:41 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-04  8:10 GPU passthrough issue when VM is configured with 4G memory Gonglei (Arei)
2013-03-05  9:50 ` Pasi Kärkkäinen
2013-03-05 12:44   ` Hanweidong
2013-03-05 13:20     ` Pasi Kärkkäinen
2013-03-05 14:21       ` Matthias
2013-03-05 14:27         ` Pasi Kärkkäinen
2013-03-05 14:41           ` Matthias
2013-03-06 11:35       ` Hanweidong
2013-03-05 12:59 ` George Dunlap
2013-03-06 11:38   ` Hanweidong
2013-03-06 12:43     ` George Dunlap
2013-03-06 14:04       ` Pasi Kärkkäinen
2013-03-06 19:45         ` Konrad Rzeszutek Wilk
2013-03-07  7:51       ` Hanweidong
2013-03-07 10:16         ` George Dunlap
2013-03-12  5:45           ` Hanweidong
2013-03-12 10:39             ` George Dunlap
2013-03-13 13:23               ` Hanweidong
2013-03-16 23:41                 ` youenn.gestin
2013-03-17 17:32                   ` Pasi Kärkkäinen
2013-03-18 22:43                     ` youenn.gestin
2013-03-19  7:28                       ` David TECHER
2013-03-18 12:02                 ` Stefano Stabellini
2013-03-18 15:40                   ` Hao, Xudong
2013-03-19  0:34                   ` Hanweidong
2013-03-26  9:37                   ` Hanweidong
2013-04-15 21:22                     ` Pasi Kärkkäinen
2013-04-16  0:44                       ` David TECHER
2013-04-16  3:54                         ` Pasi Kärkkäinen
2013-04-16  9:21                           ` David TECHER
2013-04-16 12:45                             ` Hanweidong
2013-04-16 12:37                       ` George Dunlap
2013-04-16 12:46                         ` Ian Campbell
2013-04-25  3:46                     ` Hanweidong
2013-04-25  8:12                       ` Hao, Xudong
2013-04-25 14:23                         ` Hanweidong
2013-04-25 10:29                       ` George Dunlap
2013-04-25 14:24                         ` Hanweidong
2013-05-09 16:49                           ` Pasi Kärkkäinen
2013-05-17  7:10                             ` Hanweidong
2013-05-17  7:37                               ` Gordan Bobic
2013-05-20  8:20                               ` Pasi Kärkkäinen
2013-05-20 11:29                               ` George Dunlap
2013-05-20 13:00                                 ` Stefano Stabellini
2013-05-20 18:43                                 ` Gordan Bobic
2013-05-21  4:09                                   ` Hanweidong
2013-05-22 15:17                                     ` Gordan Bobic
2013-05-22 18:11                                       ` Andrew Bobulsky
2013-05-22 18:41                                         ` Gordan Bobic [this message]
2013-05-23 14:38                                       ` Hanweidong
2013-05-29 16:18                       ` Stefano Stabellini
2013-05-30  1:29                         ` Hanweidong
2013-05-30 10:27                           ` GPU passthrough issue when VM is configured with 4G memoryo Stefano Stabellini
2013-05-30 10:45                             ` Hanweidong
2013-06-03 13:11                         ` GPU passthrough issue when VM is configured with 4G memory Konrad Rzeszutek Wilk
2013-06-03 15:14                           ` Stefano Stabellini
2013-09-26 20:09                         ` GPU passthrough issue when VM is configured with 4G memory / Xen 4.4 Pasi Kärkkäinen

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=519D116E.3040402@bobich.net \
    --to=gordan@bobich.net \
    --cc=anthony.perard@citrix.com \
    --cc=arei.gonglei@huawei.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=hanweidong@huawei.com \
    --cc=luonengjun@huawei.com \
    --cc=rulerof@gmail.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wangzhenguo@huawei.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xiantao.zhang@intel.com \
    --cc=xiaowei.yang@huawei.com \
    --cc=xudong.hao@intel.com \
    --cc=yanqiangjun@huawei.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 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).