From: bugzilla-daemon@freedesktop.org Subject: [Bug 101946] Rebinding AMDGPU causes initialization errors [R9 290] Date: Tue, 01 Aug 2017 16:58:07 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0230528262==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 63A6B6EDA8 for ; Tue, 1 Aug 2017 16:58:07 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0230528262== Content-Type: multipart/alternative; boundary="15016066870.ADaC9a9.27375"; charset="UTF-8" --15016066870.ADaC9a9.27375 Date: Tue, 1 Aug 2017 16:58:07 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101946 --- Comment #26 from Robin --- (In reply to Luke A. Guest from comment #25) > I have 2 AMD GPU's, R9 390 (host) and R9 380 (guest). I boot with the 380 > being passed over to vfio-pci. On exit the VM sets the 380 back to vfio-p= ci. FWIW I don't think any of these patches are relevant to you then. The reset logic for your 380 would be coming from the guest's driver + vfio-pci. Where vfio in theory should only try to get the 380's state back = to how it would be if you actually rebooted and leave the more sophisticated w= ork to the guest driver. Though as mentioned here https://www.spinics.net/lists/kvm/msg116277.html vfio-pci may employ hardware specific solutions if there's no good blanket solution. --- For my scenario I have the Intel iGPU and the R9 290. So I am trying to fin= d a setup where I can use the 290 for gaming on both the host and the guest. On= ce the 290 is bound to vfio-pci I have no issues with the VM. Reboot, force of= f, as many times as I like and no problems. It's when I am done with the VMs and try to give the 290 back to amdgpu I h= ad init issues. Which my comment 20 patch does resolve, even if it is a carpet bomb approach to solving it. --=20 You are receiving this mail because: You are the assignee for the bug.= --15016066870.ADaC9a9.27375 Date: Tue, 1 Aug 2017 16:58:07 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 26 on bug 10194= 6 from Robin
(In reply to Luke A. Guest from comment #25)
> I have 2 AMD GPU's, R9 390 (host) and R9 380 (gu=
est). I boot with the 380
> being passed over to vfio-pci. On exit the VM sets the 380 back to vfi=
o-pci.

FWIW I don't think any of these patches are relevant to you then.
The reset logic for your 380 would be coming from the guest's driver +
vfio-pci. Where vfio in theory should only try to get the 380's state back =
to
how it would be if you actually rebooted and leave the more sophisticated w=
ork
to the guest driver.

Though as mentioned here https://www.spinics.net/lists/kvm/msg116277.html
vfio-pci may employ hardware specific solutions if there's no good blanket
solution.

---

For my scenario I have the Intel iGPU and the R9 290. So I am trying to fin=
d a
setup where I can use the 290 for gaming on both the host and the guest. On=
ce
the 290 is bound to vfio-pci I have no issues with the VM. Reboot, force of=
f,
as many times as I like and no problems.

It's when I am done with the VMs and try to give the 290 back to amdgpu I h=
ad
init issues. Which my comment 20 patch does resolve, even if it is a carpet
bomb approach to solving it.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15016066870.ADaC9a9.27375-- --===============0230528262== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0230528262==--