From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 101946] Rebinding AMDGPU causes initialization errors [R9 290 / 4.10 kernel]
Date: Thu, 27 Jul 2017 11:46:28 +0000 [thread overview]
Message-ID: <bug-101946-502@http.bugs.freedesktop.org/> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2457 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101946
Bug ID: 101946
Summary: Rebinding AMDGPU causes initialization errors [R9 290
/ 4.10 kernel]
Product: DRI
Version: XOrg git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: dri-devel@lists.freedesktop.org
Reporter: beanow@oscp.info
Created attachment 133068
--> https://bugs.freedesktop.org/attachment.cgi?id=133068&action=edit
The script used to reproduce the error.
As I attempted to hotplug my R9 290 for a VM gaming setup, I stumbled on this
issue.
The main kern.log error to come up is:
> [ 160.013733] [drm:ci_dpm_enable [amdgpu]] *ERROR* ci_start_dpm failed
> [ 160.014134] [drm:amdgpu_device_init [amdgpu]] *ERROR* hw_init of IP block <amdgpu_powerplay> failed -22
> [ 160.014531] amdgpu 0000:01:00.0: amdgpu_init failed
For my setup I use a Kaby Lake iGPU running i915.
With the R9 290 using vfio-pci / amdgpu.
Ubuntu 17.04 (4.10.0-28-generic).
Mesa 17.1.4 from the padoka stable PPA.
I'm able to reproduce this as follows.
1. Boot with vfio-pci capturing the card and amdgpu blacklisted. Kernel flags:
> intel_iommu=on iommu=pt vfio-pci.ids=1002:67b1,1002:aac8
2. Since I run Gnome3 on Ubuntu 17.04, this will bring me to a wayland greeter
which uses my iGPU. Drop to a free TTY, without logging in. This prevents Xorg
from responding to the AMD card becoming available.
3. Run the attached script "rebind-amd.sh" as root to bind back and forth
between vfio-pci and amdgpu in an infinite loop.
This will:
A. modprobe both drivers to be sure they're loaded.
B. Print information about the driver and card usage.
C. Use the new_id > unbind > bind > remove_id sequence to switch drivers.
What happens is:
vfio-pci -> vfio-pci, Gives no problems, of course.
vfio-pci -> amdgpu, This works and the amdgpu driver initializes the card.
Attached monitor(s) start searching for signals.
amdgpu -> vfio-pci, Since no Xorg is using the dGPU this works without
problems.
vfio-pci -> amdgpu, Fails to initialize dGPU with the kernel error above.
I've attached the script, the output of the script and the full kern.log.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 4027 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2017-07-27 11:46 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-27 11:46 bugzilla-daemon [this message]
2017-07-27 11:47 ` [Bug 101946] Rebinding AMDGPU causes initialization errors [R9 290 / 4.10 kernel] bugzilla-daemon
2017-07-27 11:47 ` bugzilla-daemon
2017-07-27 11:47 ` bugzilla-daemon
2017-07-27 12:00 ` bugzilla-daemon
2017-07-27 14:42 ` bugzilla-daemon
2017-07-27 14:42 ` bugzilla-daemon
2017-07-28 10:26 ` bugzilla-daemon
2017-07-28 11:46 ` bugzilla-daemon
2017-07-28 14:24 ` bugzilla-daemon
2017-07-28 15:19 ` bugzilla-daemon
2017-07-28 15:37 ` bugzilla-daemon
2017-07-28 15:53 ` bugzilla-daemon
2017-07-28 17:26 ` bugzilla-daemon
2017-07-28 17:29 ` bugzilla-daemon
2017-07-28 20:55 ` bugzilla-daemon
2017-07-28 21:06 ` bugzilla-daemon
2017-07-28 21:17 ` bugzilla-daemon
2017-07-28 21:55 ` bugzilla-daemon
2017-07-28 23:06 ` [Bug 101946] Rebinding AMDGPU causes initialization errors [R9 290] bugzilla-daemon
2017-07-29 16:05 ` bugzilla-daemon
2017-07-29 17:20 ` bugzilla-daemon
2017-07-29 22:22 ` bugzilla-daemon
2017-08-01 14:28 ` bugzilla-daemon
2017-08-01 14:59 ` bugzilla-daemon
2017-08-01 15:16 ` bugzilla-daemon
2017-08-01 16:16 ` bugzilla-daemon
2017-08-01 16:30 ` bugzilla-daemon
2017-08-01 16:58 ` bugzilla-daemon
2017-08-01 17:47 ` bugzilla-daemon
2017-08-02 6:37 ` bugzilla-daemon
2017-08-30 20:55 ` bugzilla-daemon
2019-07-27 5:47 ` bugzilla-daemon
2019-11-19 8:20 ` 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-101946-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