xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Gordan Bobic <gordan@bobich.net>
To: Matthias <matthias.kannenberg@googlemail.com>
Cc: David Vrabel <david.vrabel@citrix.com>,
	Ross Philipson <ross.philipson@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Status of FLR in Xen 4.4
Date: Thu, 26 Sep 2013 20:13:10 +0100	[thread overview]
Message-ID: <52448746.6050504@bobich.net> (raw)
In-Reply-To: <CABoYbGrLLt6Qm3Pg-cbc=eNS=Ja3HNASFCDw5cmxm_a0MdXiUw@mail.gmail.com>

On 09/26/2013 07:41 PM, Matthias wrote:
> Hi,
>
> thanks for your answers, the cards are a AMD HD 5750 and a HD 5400, both
> with dual functions (due to audio capabilities), both co-assigned to
> their respective domU and both not capable of FLR from lspci -vvv output.
>
> also, @Ross, I'm running a 3.8.2 Kernel, so this should be fine, but I
> assume that the 'official' command where xl asks the dom0 about the
> reset do not work (if I have understand david correctly) since it's dual
> function so no dual bus reset is actually executed causing the
> misbehaviour, and on the other side xm doing a bus reset so it works in
> this specific case.
>
> I'm currently recompiling the kernel to see if your patch works David.
>
> Also, just to understand it better, is the secondary bus reset the thing
> which you can manually invoke via /sys/bus/pci/devices/.../reset ?
>
> So as a workaround, would the following work in principle?
>
> xl pci-assignable-remove 0X:00.0
> xl pci-assignable-remove 0X:00.1
> echo "1" > /sys/bus/pci/devices/0X:00.0/reset
> echo "1" > /sys/bus/pci/devices/0X:00.1/reset

This bit is up to the driver to implement. Since pciback is a 
placeholder rather than a driver that knows about the hardware the reset 
node won't be there.

You could try to do something with setpci to force the registers between 
D0 and D3 power states in a vague hope that might do something, but I 
doubt it.

The reason nvidia cards work OK is because the domU driver knows how to 
reinitialize the hardware and acts accordingly. If the manufacturer 
won't implement a standard function to reset the hardware, then it is up 
to their drivers to handle the situation.

As a workaround, if (on Windows domUs) ejecting the card before 
shutdown/reboot of domU works, you could probably write some powershell 
magic that does that on shutdown/reboot as a reasonable workaround.

Gordan

  reply	other threads:[~2013-09-26 19:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26 16:05 Status of FLR in Xen 4.4 Matthias
2013-09-26 16:16 ` Ian Campbell
2013-09-26 17:59   ` Matthias
2013-09-27 13:34     ` Konrad Rzeszutek Wilk
2013-09-27 17:07       ` Matthias
2013-09-27 17:28         ` Sander Eikelenboom
2013-09-27 19:19           ` Matthias
2013-09-27 19:33             ` Sander Eikelenboom
2013-09-27 19:48               ` Matthias
2013-09-27 20:06                 ` Sander Eikelenboom
2013-09-27 17:53         ` Is: RCU callback detects an RCU hang with Linux 3.12+ Was: " Konrad Rzeszutek Wilk
2013-10-03 22:34           ` Matthias
2013-10-04  6:07             ` Pasi Kärkkäinen
2013-09-26 16:20 ` David Vrabel
2013-09-26 17:48   ` Ross Philipson
2013-09-26 18:01     ` David Vrabel
2013-09-26 18:41       ` Matthias
2013-09-26 19:13         ` Gordan Bobic [this message]
2013-09-27 12:26           ` Matthias
2013-09-27 13:27             ` Gordan Bobic
2013-09-27 13:48               ` Konrad Rzeszutek Wilk
2013-09-27 14:00                 ` Gordan Bobic
2013-10-03 22:20       ` Matthias

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=52448746.6050504@bobich.net \
    --to=gordan@bobich.net \
    --cc=david.vrabel@citrix.com \
    --cc=matthias.kannenberg@googlemail.com \
    --cc=ross.philipson@citrix.com \
    --cc=xen-devel@lists.xen.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 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).