xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Gordan Bobic <gordan@bobich.net>
To: xen-devel@lists.xen.org
Subject: Re: AMD GPU passthrough in Xen
Date: Tue, 23 Sep 2014 15:44:16 +0100	[thread overview]
Message-ID: <3303c9875d883a2714fcfeca233d50ba@mail.shatteredsilicon.net> (raw)
In-Reply-To: <494115233.20140923154510@eikelenboom.it>

On 2014-09-23 14:45, Sander Eikelenboom wrote:
> Good to know there is interest from AMD into this area :-)
> 
> I'm experimenting for a while with:
> 
> - xen-unstable (and thus xl)
> - latest kernels (both dom0 and domU)
> - qemu-xen
> - Radeon HD 6570
> - secondary passthrough
> - Debian linux (sid) with the opensource (in kernel) radeon driver
>   (i also tried fglrx with succes, but it's a real PITA to build with 
> every
>   new kernel, so i ditched that)
> 
> It used to work, but something broke at the moment, but that could also 
> be the
> changes to the systemd cruft that Debian jessie/sid is currently 
> undergoing (or
> something else since i regularly update all components).
> 
> The problems are mostly with restarting the domU, it differs a bit:
> - sometimes screen goes ok, sometimes it's garbage.
> - the radeon powercontrols only seem to work on the first boot and
> give errors on any subsequent one.
> 
> But when it works it does:
> - the powercontrol.
> - opengl and opencl benchmarks with (near) native results.
> - hardware video acceleration in xbmc for instance.
> 
> So one of the main problems at present seems to be proper resetting of
> the whole
> device on domain shutdown/start. I did do some experiments with the 
> opensource
> radeon driver, but didn't get conclusive results out of that yet.

Interestingly, on my machine this seems to be down to the lack of
reset knowledge on part of xen-pciback. In dom0:

# lspci -nn | grep ATI
0e:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Caicos [Radeon HD 6450/7450/8450] [1002:6779]
0e:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] 
Caicos HDMI Audio [Radeon HD 6400 Series] [1002:aa98]

# ls -la 
/sys/devices/pci0000:00/0000:00:03.0/0000:0a:00.0/0000:0b:00.0/0000:0e:00.0/reset
--w------- 1 root root 4096 Sep 23 15:39 
/sys/devices/pci0000:00/0000:00:03.0/0000:0a:00.0/0000:0b:00.0/0000:0e:00.0/reset

# cat 
/sys/devices/pci0000:00/0000:00:03.0/0000:0a:00.0/0000:0b:00.0/0000:0e:00.0/d3cold_allowed
1

# uname -a
Linux normandy 3.14.12-1.el6xen.x86_64 #1 SMP Fri Jul 11 19:30:39 EST 
2014 x86_64 x86_64 x86_64 GNU/Linux

But IIRC if I unbind the radeon (open source) driver and bind
xen-pciback to the device, the reset node disappears (not in a
position to try it right now).

Gordan

  reply	other threads:[~2014-09-23 14:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 12:16 AMD GPU passthrough in Xen Peter Kay
2014-09-22 12:38 ` Sander Eikelenboom
2014-09-22 14:31   ` Peter Kay
2014-09-22 15:05     ` Gordan Bobic
2014-09-23 11:22       ` Peter Kay
2014-09-23 13:19   ` Zytaruk, Kelly
2014-09-23 13:45     ` Sander Eikelenboom
2014-09-23 14:44       ` Gordan Bobic [this message]
2014-09-24 12:12       ` Zytaruk, Kelly
2014-09-24 12:56         ` Gordan Bobic
2014-09-24 13:31           ` Zytaruk, Kelly
2014-09-24 13:35             ` Gordan Bobic
2014-09-24 13:21         ` Sander Eikelenboom
2014-09-24 13:58           ` Zytaruk, Kelly
2014-09-24 14:16             ` Sander Eikelenboom
2014-09-24 15:10               ` Zytaruk, Kelly
2014-09-24 15:35                 ` Sander Eikelenboom

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=3303c9875d883a2714fcfeca233d50ba@mail.shatteredsilicon.net \
    --to=gordan@bobich.net \
    --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).