]> git.baikalelectronics.ru Git - kernel.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)
commit4c52ecc7981534574f1421f4404a078f753ba9b0
treee6c45b234f2af49d0a4fb4634954042daa64c06e
parentd1daaeb44708cff97963a3e4fffaadb4bc80bcae
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