From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 111229] Unable to unbind GPU from amdgpu
Date: Sat, 27 Jul 2019 04:14:03 +0000 [thread overview]
Message-ID: <bug-111229-502@http.bugs.freedesktop.org/> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1933 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=111229
Bug ID: 111229
Summary: Unable to unbind GPU from amdgpu
Product: DRI
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: dri-devel@lists.freedesktop.org
Reporter: wedens13@yandex.ru
Created attachment 144877
--> https://bugs.freedesktop.org/attachment.cgi?id=144877&action=edit
dmesg kernel 5.2.1
Arch linux
Kernel version: 5.2.1
I have two GPUs in my system: integrated Intel and Sapphire Pulse Vega 56.
I boot with Intel as my primary gpu and I use Vega for VFIO (gpu passthrough)
and gpu offloading.
What I'm trying to do is to boot with amdgpu driver for Vega and bind it to
vfio-pci when I start VM (qemu).
The problem occurs when I try to unbind Vega from amdgpu driver using this
command:
echo -n "0000:03:00.0" > /sys/bus/pci/drivers/amdgpu/unbind
It results in segfault with following error in dmesg (full dmesg from boot to
shutdown is attached):
[drm:amdgpu_pci_remove [amdgpu]] *ERROR* Device removal is currently not
supported outside of fbcon
After that I'm unable to rebind device back to amdgpu or any other driver:
echo "0000:03:00.0" > /sys/bus/pci/drivers/amdgpu/bind
bash: echo: write error: No such device
Also I'm unable to shutdown properly. Shutdown process becomes stuck at some
point and only holding the button helps.
I've attached relevant lspci -vvv output before and after attempt to unbind, in
case it's useful.
Another thing I've tried is to unbind using kernel 4.19.60 and it just hangs
after executing the command. I've attached the log of this attempt (error is
different from 5.2.1).
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3367 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2019-07-27 4:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-27 4:14 bugzilla-daemon [this message]
2019-07-27 4:14 ` [Bug 111229] Unable to unbind GPU from amdgpu bugzilla-daemon
2019-07-27 4:14 ` bugzilla-daemon
2019-07-27 4:15 ` bugzilla-daemon
2019-07-27 5:47 ` bugzilla-daemon
2019-07-27 5:47 ` bugzilla-daemon
2019-07-27 5:49 ` bugzilla-daemon
2019-07-28 11:35 ` bugzilla-daemon
2019-07-28 18:38 ` bugzilla-daemon
2019-07-29 8:54 ` bugzilla-daemon
2019-07-29 8:54 ` bugzilla-daemon
2019-07-29 13:09 ` bugzilla-daemon
2019-08-06 0:14 ` bugzilla-daemon
2019-09-03 19:06 ` bugzilla-daemon
2019-10-05 22:13 ` bugzilla-daemon
2019-10-21 7:22 ` bugzilla-daemon
2019-11-04 4:08 ` bugzilla-daemon
2019-11-04 4:09 ` bugzilla-daemon
2019-11-05 10:28 ` bugzilla-daemon
2019-11-19 9:37 ` bugzilla-daemon
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=bug-111229-502@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.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