All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen@lists.fedoraproject.org" <xen@lists.fedoraproject.org>,
	Robin Axelsson <gu99roax@student.chalmers.se>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Xen PCI passthru supported reset methods (d3d0, FLR, bus reset, link reset)
Date: Mon, 17 Sep 2012 15:15:57 -0400	[thread overview]
Message-ID: <20120917191556.GB18552@phenom.dumpdata.com> (raw)
In-Reply-To: <1347885774.14977.64.camel@zakaz.uk.xensource.com>

On Mon, Sep 17, 2012 at 01:42:54PM +0100, Ian Campbell wrote:
> On Mon, 2012-09-17 at 13:32 +0100, Pasi Kärkkäinen wrote:
> > On Mon, Sep 17, 2012 at 01:51:03PM +0200, Robin Axelsson wrote:
> > > 
> > > There is one thing I wonder though when it comes to PCI passthrough:
> > > 
> > > Can Xen reset hardware through the d3d0 in the ACPI interface and/or
> > > through a 'bus reset' or a 'link reset'? Or can it reset hardware
> > > that is marked for passthrough only through FLR?
> > > 
> > > For details see e.g.
> > > http://www.vmware.com/files/pdf/techpaper/vsp_4_vmdirectpath_host.pdf
> > >
> > 
> > I added xen-devel to the CC-list.
> > Hopefully someone there can reply this question.
> 
> With a pvops dom0 Xen resets devices by writing to its "reset" node in
> sysfs so it will reset the device using whatever method the dom0 kernel
> supports for that device.

And if you use Xen PCI-back it has this enabled so you don't even
need the 'reset' functionality.
> 
> The version of Linux I have to hand has, in __pci_dev_reset, calls to
> the following in this order and stops after the first one which
> succeeds:
>       * pci_dev_specific_reset (AKA per device quirks)
>       * pcie_flr
>       * pci_af_flr
>       * pci_pm_reset
>       * pci_parent_bus_reset
> 
> See drivers/pci/pci.c in the kernel for more info.
> 
> IIRC classic Xen kernels had similar code in pciback, although I don't
> know which specific sets of actions or in which order they were tried.
> 
> Ian.
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
> 

  reply	other threads:[~2012-09-17 19:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120917113833.GH8912@reaktio.net>
     [not found] ` <50570EA7.8060509@student.chalmers.se>
2012-09-17 12:32   ` Xen PCI passthru supported reset methods (d3d0, FLR, bus reset, link reset) Pasi Kärkkäinen
     [not found]   ` <20120917123205.GJ8912@reaktio.net>
2012-09-17 12:42     ` Ian Campbell
2012-09-17 19:15       ` Konrad Rzeszutek Wilk [this message]
2012-09-18 11:19         ` Robin Axelsson
     [not found]         ` <505858C3.9080303@student.chalmers.se>
2012-09-18 11:39           ` Pasi Kärkkäinen
     [not found]           ` <20120918113911.GM8912@reaktio.net>
2012-09-18 15:02             ` Robin Axelsson

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=20120917191556.GB18552@phenom.dumpdata.com \
    --to=konrad@kernel.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=gu99roax@student.chalmers.se \
    --cc=xen-devel@lists.xen.org \
    --cc=xen@lists.fedoraproject.org \
    /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.