All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Carsten Schiers <carsten@schiers.de>
Cc: "xen.lists" <xen.lists@burns.me.uk>,
	xen-devel <xen-devel@lists.xensource.com>,
	"Ian.Campbell" <Ian.Campbell@citrix.com>
Subject: Re: Re: Re: PCI passthrough stopped working, brainache!
Date: Wed, 19 Oct 2011 23:40:00 -0400	[thread overview]
Message-ID: <20111020034000.GA2401@phenom.dumpdata.com> (raw)
In-Reply-To: <H0000067000c72b1.1318693040.uhura.space.zz@MHS>

On Sat, Oct 15, 2011 at 05:37:20PM +0200, Carsten Schiers wrote:
> Interesting. Konrad, do you remember that one of my DVB cards did 
> consume double CPU time 
> as compared to a) old Xenified 2.6.18 b) Xenified 2.6.34 and c) mem=2G 

Well, your DVB cards started consuming when you added more than 4GB to your
box. I don't remember the 2.6.18 figuring in this picture.

> Dom0? Maybe these
> observations are somehow connected.
> 
> It did work, though... Unfortunately, I sold these cards to have only 
> one, which is 

.. which is?

.. snip..
> A coconut for the gentleman!

Beer!
> 
> Working in dom0 and (with page-alignment of the PCI BARs) in the domU,
> I did check a couple of reboots and a cold start too, just in case!
> 
> So what's to look at for the real cause?

There can be one more test to conclude this and that is to raise right about 4GB
(ought to work) or perhaps to 5GB (it should fail there) under Xen .
Either way it sounds like a DMA issue - either we are:

 1). Not having the right dma_mask set. Check the /sys/bus/pci/devices/<BDF>/dma_mask
     and coherent_dma_mask. Both values should be the same and it ought to be 32
 
 2). The driver is not doing pci_sync_range .. which you should be able
     to easily find out. Try booting the Linux kernel in baremetal, with
     8GB and with "iommu=soft swiotlb=force". That will bounce buffer _everything_
     - which might show the same problem. It also might show problems with some
     other drivers.

 3). I can send you some patches to instrument Xen SWIOTLB to see what DMA pages
     (and where in the driver code is doing it) are using bounce buffer and not
     properly doing 2).

  reply	other threads:[~2011-10-20  3:40 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-10 19:45 PCI passthrough stopped working, brainache! Andy Burns
2011-10-10 22:02 ` Andy Burns
2011-10-11  8:32   ` Ian Campbell
2011-10-11 15:54     ` Konrad Rzeszutek Wilk
2011-10-11 21:25 ` Andy Burns
2011-10-11 21:49   ` Andy Burns
2011-10-12  3:50     ` Konrad Rzeszutek Wilk
2011-10-12  8:01       ` Andy Burns
2011-10-12 21:36         ` Andy Burns
2011-10-13 18:15           ` Konrad Rzeszutek Wilk
2011-10-13 20:22             ` Andy Burns
2011-10-13 20:28             ` Andy Burns
2011-10-14 15:55               ` Konrad Rzeszutek Wilk
2011-10-14 16:38                 ` Andy Burns
2011-10-15 10:07             ` Andy Burns
2011-10-15 10:36               ` Ian Campbell
2011-10-15 10:54                 ` Andy Burns
2011-10-15 12:15                   ` Ian Campbell
2011-10-15 11:27                 ` Andy Burns
2011-10-15 12:17                   ` Ian Campbell
2011-10-15 15:37                   ` AW: " Carsten Schiers
2011-10-20  3:40                     ` Konrad Rzeszutek Wilk [this message]
2011-10-24 11:30                   ` Andy Burns
2011-10-26  8:04                     ` Ian Campbell
2011-12-05 16:10                       ` Taylor, Neal E
2011-12-05 21:09                         ` Konrad Rzeszutek Wilk
2011-12-06 23:49                           ` Taylor, Neal E

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=20111020034000.GA2401@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=carsten@schiers.de \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen.lists@burns.me.uk \
    /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.