* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
@ 2017-06-10 19:29 ` bugzilla-daemon
2017-07-01 15:14 ` bugzilla-daemon
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-06-10 19:29 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 505 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #1 from jimijames.bove@gmail.com ---
Me and many other people have been having this issue as well, and I only
recently learned that freedesktop.org, NOT kernel.org, is the proper place to
report it. Here's my bug report that's been getting ignored for almost a year
and hopefully has extra information:
https://bugzilla.kernel.org/show_bug.cgi?id=150731
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1327 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
2017-06-10 19:29 ` bugzilla-daemon
@ 2017-07-01 15:14 ` bugzilla-daemon
2017-07-03 3:32 ` bugzilla-daemon
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-01 15:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1441 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #2 from Luke A. Guest <laguest@archeia.com> ---
I can confirm that the OS completely hangs when unbinding R9 380 (Tonga Pro)
with X running. Works fine with X off.
Thought I'd add my post from the linked thread, so I can be updated.
------------------
I have amdgpu and vfio-pci both in kernel, used the following to unbind it.
#!/bin/bash
for dev in "$@"; do
vendor=$(cat /sys/bus/pci/devices/$dev/vendor)
device=$(cat /sys/bus/pci/devices/$dev/device)
if [ -e /sys/bus/pci/devices/$dev/driver ]; then
echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
fi
echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id
done
lspci -nnk shows:
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Tonga PRO [Radeon R9 285/380] [1002:6939] (rev f1)
Subsystem: PC Partner Limited / Sapphire Technology Radeon R9 380 Nitro
4G D5 [174b:e308]
Kernel driver in use: vfio-pci
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Tonga HDMI
Audio [Radeon R9 285/380] [1002:aad8]
Subsystem: PC Partner Limited / Sapphire Technology Radeon R9 285/380
HDMI Audio [174b:aad8]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2229 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
2017-06-10 19:29 ` bugzilla-daemon
2017-07-01 15:14 ` bugzilla-daemon
@ 2017-07-03 3:32 ` bugzilla-daemon
2017-07-05 6:45 ` bugzilla-daemon
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-03 3:32 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 367 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #3 from Michel Dänzer <michel@daenzer.net> ---
FWIW, I don't think unbinding is supposed to be possible while Xorg (or
anything else) is using the GPU. Sounds like there's something missing
somewhere to prevent that.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1135 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (2 preceding siblings ...)
2017-07-03 3:32 ` bugzilla-daemon
@ 2017-07-05 6:45 ` bugzilla-daemon
2017-07-05 7:25 ` bugzilla-daemon
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-05 6:45 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 972 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #4 from jimijames.bove@gmail.com ---
(In reply to Michel Dänzer from comment #3)
> FWIW, I don't think unbinding is supposed to be possible while Xorg (or
> anything else) is using the GPU. Sounds like there's something missing
> somewhere to prevent that.
Before I switched to AMD, I was passing an NVidia GPU (GTX 660) into my virtual
machine, and I could unbind and rebind it between nouveau and vfio-pci as much
as I wanted. No trouble at all. Even while X was running, once DRI3 support
came. I switched to AMD expecting the same functionality. Thankfully, not
having said functionality isn't the end of the world, but having to reboot my
computer every time I want to play a game in Windows right after playing a game
in Linux is exactly the kind of pain that I spent a summer setting up the VM to
avoid.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1806 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (3 preceding siblings ...)
2017-07-05 6:45 ` bugzilla-daemon
@ 2017-07-05 7:25 ` bugzilla-daemon
2017-07-05 7:56 ` bugzilla-daemon
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-05 7:25 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 697 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #5 from Michel Dänzer <michel@daenzer.net> ---
(In reply to jimijames.bove from comment #4)
> Before I switched to AMD, I was passing an NVidia GPU (GTX 660) into my
> virtual machine, and I could unbind and rebind it between nouveau and
> vfio-pci as much as I wanted. No trouble at all. Even while X was running,
> once DRI3 support came.
You can still do that with DRI3, you just have to prevent Xorg from using the
secondary GPU, e.g. via
Section "ServerFlags"
Option "AutoAddGPU" "off"
EndSection
in /etc/X11/xorg.conf.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1575 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (4 preceding siblings ...)
2017-07-05 7:25 ` bugzilla-daemon
@ 2017-07-05 7:56 ` bugzilla-daemon
2017-07-05 7:57 ` bugzilla-daemon
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-05 7:56 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #6 from jimijames.bove@gmail.com ---
(In reply to Michel Dänzer from comment #5)
> (In reply to jimijames.bove from comment #4)
> > Before I switched to AMD, I was passing an NVidia GPU (GTX 660) into my
> > virtual machine, and I could unbind and rebind it between nouveau and
> > vfio-pci as much as I wanted. No trouble at all. Even while X was running,
> > once DRI3 support came.
>
> You can still do that with DRI3, you just have to prevent Xorg from using
> the secondary GPU, e.g. via
>
> Section "ServerFlags"
> Option "AutoAddGPU" "off"
> EndSection
>
> in /etc/X11/xorg.conf.
Well, sort of. That option is what allows me to bind the card to amdgpu without
X crashing (even though I've been told in the past that I shouldn't need that
option for that functionality), but this bug--not being able to UNbind it from
amdgpu--does not go away with that option.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1995 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (5 preceding siblings ...)
2017-07-05 7:56 ` bugzilla-daemon
@ 2017-07-05 7:57 ` bugzilla-daemon
2017-07-05 8:09 ` bugzilla-daemon
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-05 7:57 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 723 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #7 from jimijames.bove@gmail.com ---
(In reply to jimijames.bove from comment #6)
> Well, sort of. That option is what allows me to bind the card to amdgpu
> without X crashing (even though I've been told in the past that I shouldn't
> need that option for that functionality), but this bug--not being able to
> UNbind it from amdgpu--does not go away with that option.
Actually, sorry, I just remembered, I *don't* need that option anymore to bind
it to amdgpu while X is running. That did get fixed. But back then and also
right now, it still doesn't fix this bug.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1560 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (6 preceding siblings ...)
2017-07-05 7:57 ` bugzilla-daemon
@ 2017-07-05 8:09 ` bugzilla-daemon
2017-07-05 8:14 ` bugzilla-daemon
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-05 8:09 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 388 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #8 from Michel Dänzer <michel@daenzer.net> ---
Make sure nothing else (e.g. gdm in Wayland mode) is using the GPU you're
trying to unbind either. Something like
sudo lsof /dev/dri/*
shows which process is using which GPU device(s).
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1156 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (7 preceding siblings ...)
2017-07-05 8:09 ` bugzilla-daemon
@ 2017-07-05 8:14 ` bugzilla-daemon
2017-07-19 20:04 ` bugzilla-daemon
2019-11-19 8:14 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-05 8:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 621 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #9 from jimijames.bove@gmail.com ---
(In reply to Michel Dänzer from comment #8)
> Make sure nothing else (e.g. gdm in Wayland mode) is using the GPU you're
> trying to unbind either. Something like
>
> sudo lsof /dev/dri/*
>
> shows which process is using which GPU device(s).
I did that way back when I first discovered this bug. I'll do it again just to
make sure when I'm back with the computer that has the virtual machine and AMD
GPU in a couple weeks.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1464 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (8 preceding siblings ...)
2017-07-05 8:14 ` bugzilla-daemon
@ 2017-07-19 20:04 ` bugzilla-daemon
2019-11-19 8:14 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-07-19 20:04 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1043 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
--- Comment #10 from jimijames.bove@gmail.com ---
OK, that's weird. Running sudo lsof /dev/dri/* doesn't get me any info about
the AMD card at all. I ran it at boot, when it's bound to vfio-pci (I set it up
to be that way at boot), then I ran it after unbinding it to that and binding
it to amdgpu, and then I ran it after attempting (and failing due to this bug)
to unbind it from amdgpu. All 3 times, I got these lines, which are referring
to my NVidia GT 740 (card0), and absolutely no lines that have anything to do
with Xorg or any other video card:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Xorg 597 root mem CHR 226,0 14346 /dev/dri/card0
Xorg 597 root 14u CHR 226,0 0t0 14346 /dev/dri/card0
Xorg 597 root 16u CHR 226,0 0t0 14346 /dev/dri/card0
Xorg 597 root 17u CHR 226,0 0t0 14346 /dev/dri/card0
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1801 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
^ permalink raw reply [flat|nested] 12+ messages in thread* [Bug 100399] Kernel invalid opcode on unbinding amdgpu
2017-03-26 3:03 [Bug 100399] Kernel invalid opcode on unbinding amdgpu bugzilla-daemon
` (9 preceding siblings ...)
2017-07-19 20:04 ` bugzilla-daemon
@ 2019-11-19 8:14 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2019-11-19 8:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 806 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=100399
Martin Peres <martin.peres@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |MOVED
--- Comment #11 from Martin Peres <martin.peres@free.fr> ---
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.
You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/149.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2349 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
^ permalink raw reply [flat|nested] 12+ messages in thread