diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-11-05 08:13:52 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-11-05 08:13:52 +0000 |
commit | 66c9e3053f857df340a982edaa8ea57b229efeed (patch) | |
tree | f1ba7392f422b2687952f0242c6916d1ac766fea /linux/i810_dma.c | |
parent | 19ee64add26773f4436440f8fa405a1011eea4c4 (diff) |
- Tie the DRM to a specific device: setunique no longer succeeds when given
a busid that doesn't correspond to the device the DRM is attached to.
This is a breaking of backwards-compatibility only for the
multiple-DRI-head case with X Servers that don't use interface 1.1.
- Move irq_busid to drm_irq.h and make it only return the IRQ for the
current device. Retains compatibility with previous X Servers, cleans
up unnecessary code. This means no irq_busid on !__HAVE_IRQ, but can be
changed if necessary.
- Bump interface version to 1.2. This version when set signifies that the
control ioctl should ignore the irq number passed in and enable the
interrupt handler for the attached device. Otherwise it errors out when
the passed-in irq is not equal to the device's.
- Store the highest version the interface has been set to in the device.
- Fix a recursion on DRM_LOCK in irq_uninstall on FreeBSD. This leaves
irq_uninstall being done without the lock in some cases, but it was
racey anyways.
Diffstat (limited to 'linux/i810_dma.c')
-rw-r--r-- | linux/i810_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/i810_dma.c b/linux/i810_dma.c index 1eeb4a3f..b46c3a39 100644 --- a/linux/i810_dma.c +++ b/linux/i810_dma.c @@ -244,7 +244,7 @@ int i810_dma_cleanup(drm_device_t *dev) * may not have been called from userspace and after dev_private * is freed, it's too late. */ - if (dev->irq) DRM(irq_uninstall)(dev); + if (dev->irq_enabled) DRM(irq_uninstall)(dev); #endif if (dev->dev_private) { |