Bug 101261

Summary: Radeon - Kernel warning when driver is unbound from secondary GPU
Product: Drivers Reporter: Beau V.C. Bellamy (bellamy.beau)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: normal CC: szg00000
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.0.7 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg output
Script to unbind and start VM

Description Beau V.C. Bellamy 2015-07-09 08:05:23 UTC
Created attachment 182281 [details]
dmesg output
Comment 1 Beau V.C. Bellamy 2015-07-09 08:06:12 UTC
Created attachment 182291 [details]
Script to unbind and start VM
Comment 2 Beau V.C. Bellamy 2015-07-09 08:19:03 UTC
When unbinding the radeon driver from a second GPU in order to bind to the vfio-pci driver (so it can be used on a virtual machine), the linux kernel will display several warnings.  It looks like some resources may be double-freed.  The GPU will otherwise work flawlessly in the VM with full acceleration on the stock AMD windows drivers.

This actually shows up on all kernels that I've tried: 4.1.0, 3.19, 3.18, etc.

I'm not sure it's related, but the first GPU when running X on the host will have some difficulties getting OpenGL working (I have a routine that involves a dance with glxgears and firefox) and will work for some time and then take the entire system down hard.  If I avoid anything OpenGL/DRM, the system will run indefinitely.