]> git.openfabrics.org - ~emulex/infiniband.git/commit
drm/nouveau: add support for MSI
authorBen Skeggs <bskeggs@redhat.com>
Thu, 21 Oct 2010 04:07:03 +0000 (14:07 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 3 Dec 2010 05:11:03 +0000 (15:11 +1000)
commit35fa2f2ad161024e735fb0cd571cb92e50171afd
treee6c45b234f2af49d0a4fb4634954042daa64c06e
parent01d63187d1aad6236dd229d5824c61a60f1ab42c
drm/nouveau: add support for MSI

Only supported on NV50+ so far, and disabled by default currently.  The
module parameter "msi=1" will enable it.

There's a kernel bug which will cause this to fail if the module (or the
NVIDIA binary driver) has ever been loaded before loading nouveau with
MSI enabled.  As such, this is only safe to enable if you have nouveau
load on boot, and don't wish to ever reload it.

The workaround is to "echo 0 > /sys/bus/pci/devices/<device>/enable"
until the enable count reads 0.  Then you should be able to load nouveau
with MSI enabled.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_irq.c
drivers/gpu/drm/nouveau/nouveau_state.c